• Bug#265236: geneweb: Possibility to bind to a specific address

    From Peter Gervai@1:229/2 to All on Thu Aug 12 12:20:06 2004
    From: [email protected]

    Package: geneweb
    Version: 4.09-25
    Severity: wishlist
    Tags: patch

    As you may know gwd can bind to a specific address. When running in
    daemon mode it is sometimes desired to bind it to port 80 of only one
    IP of the machine, to peacefully co-exist next to a real apache server.
    That's all about the option "-a <addr>".

    The following pacthes supposed to do just that. Be aware, however, that
    the patch is only for observation, as it was neither thoroughly tested
    nor the fluff removed (like language 'hu').

    This is for init.d/geneweb:

    --- geneweb 2004-03-03 15:11:29 +0100
    +++ gene2web 2004-08-12 11:48:38 +0200
    @@ -9,15 +9,16 @@
    GENEWEBDB=/var/lib/geneweb
    GENEWEBUSER=geneweb
    DAEMON=/usr/bin/gwd
    -WRAPPER=/usr/lib/geneweb/gwd.wrapper
    -NAME=geneweb
    +WRAPPER=/usr/lib/geneweb/gwd.wrapper2
    +NAME=geneweb2
    LOGFILE=/var/log/$NAME.log

    # Defaults
    # The port which the daemon listens to
    -PORT=2317
    +PORT=80
    +ADDR=193.262.4.1
    # The default language
    -LANG=en
    +LANG=hu
    # Run Mode : if anything else than "daemon", no daemon will be
    # launched automatically
    RUN_MODE="Always on"
    @@ -26,7 +27,7 @@
    [ -r /etc/default/geneweb ] && . /etc/default/geneweb

    # Export variables so that they may be used by the wrapper script
    -export LANG PORT LOGFILE NAME DAEMON GENEWEBDB GENEWEBDOC GENEWEBSHARE GENEWEBOPTS
    +export LANG PORT LOGFILE NAME DAEMON GENEWEBDB GENEWEBDOC GENEWEBSHARE GENEWEBOPTS ADDR

    trap "" 1



    This is for usr/lib/geneweb/gwd.wrapper:

    --- gwd.wrapper 2004-05-17 23:34:48 +0200
    +++ gwd.wrapper2 2004-08-12 11
  • From Christian Perrier@1:229/2 to All on Sun Aug 15 10:10:05 2004
    From: [email protected]

    Quoting Peter Gervai ([email protected]):
    Package: geneweb
    Version: 4.09-25
    Severity: wishlist
    Tags: patch

    As you may know gwd can bind to a specific address. When running in
    daemon mode it is sometimes desired to bind it to port 80 of only one
    IP of the machine, to peacefully co-exist next to a real apache server. That's all about the option "-a <addr>".

    The following pacthes supposed to do just that. Be aware, however, that
    the patch is only for observation, as it was neither thoroughly tested
    nor the fluff removed (like language 'hu').

    Thanks for the suggestion.

    It will need more investigation from myself as, obviously, I cannot
    hardcode addresses in init scripts....

    So, I may need one more debconf question for asking about which
    address geneweb has to be binded to.

    This requires changes to configuration scripts as well as one more
    debconf screen.

    As a consequence, I will delay this to post-sarge.

    BTS, Peter, if you have some time, I would appreciate to get one
    Hungarian translation of the debconf templates.....






    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)