Attached is the diff with which I'm about to an NMU in a moment to fix
#353823 (Port 8080 needs to be configurable). It is very simple, so
should be safe. I've tested it, obviously, but only the part that I
changed, as I don't have a way to test asterisk and such stuff myself.
--
Talk is cheap. Whining is actually free.
diff -u destar-0.1.1/debian/changelog destar-0.1.1/debian/changelog
--- destar-0.1.1/debian/changelog
+++ destar-0.1.1/debian/changelog
@@ -1,3 +1,14 @@
+destar (0.1.1-3.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * debian/patches/30_add_port_option.dpatch: Made the port number
+ configurable. Closes: #353823.
+ * debian/init.d: Added --port=8080 to the default options. This doesn't
+ change the default port number, but nicely points out where the port
+ number is to be changed, if it needs to be changed.
+
+ -- Lars Wirzenius <[EMAIL PROTECTED]> Thu, 16 Mar 2006 22:35:00 +0200
+
destar (0.1.1-3) unstable; urgency=low
* Asterisk removed from build-depends.
diff -u destar-0.1.1/debian/init.d destar-0.1.1/debian/init.d
--- destar-0.1.1/debian/init.d
+++ destar-0.1.1/debian/init.d
@@ -7,7 +7,7 @@
NAME=destar
DESC="Asterisk Web GUI DeStar"
PIDFILE=/var/run/$NAME/$NAME.pid
-DAEMON_OPTS="--daemonize --pid=$PIDFILE"
+DAEMON_OPTS="--daemonize --pid=$PIDFILE --port=8080"
test -x $DAEMON || exit 0
diff -u destar-0.1.1/debian/patches/00list destar-0.1.1/debian/patches/00list
--- destar-0.1.1/debian/patches/00list
+++ destar-0.1.1/debian/patches/00list
@@ -5,0 +6 @@
+30_add_port_option.dpatch
only in patch2:
unchanged:
--- destar-0.1.1.orig/debian/patches/30_add_port_option.dpatch
+++ destar-0.1.1/debian/patches/30_add_port_option.dpatch
@@ -0,0 +1,50 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 30_add_port_option.dpatch by <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Add -P|--port option to destar.
+
[EMAIL PROTECTED]@
+
+--- destar-0.1.1.unchanged/destar 2005-11-13 04:00:41.000000000 +0200
++++ destar-0.1.1/destar 2006-03-16 22:59:48.000000000 +0200
+@@ -33,6 +33,7 @@
+ import daemonize
+ be_daemon = False
+ pid_file = '/var/run/destar.pid'
++port = 8080
+
+
+ def print_version():
+@@ -57,8 +58,8 @@
+
+
+ try:
+- opts,args = getopt.getopt(sys.argv[1:],'dhp:v',
+- ['daemonize','help','pid=', 'version'])
++ opts,args = getopt.getopt(sys.argv[1:],'dhp:vP:',
++ ['daemonize','help','pid=', 'version', 'port='])
+ except getopt.GetoptError:
+ print "DeStar: Command-line parsing error. Aborting."
+ print_usage()
+@@ -75,6 +76,11 @@
+ if opt in ('-v', '--version'):
+ print_version()
+ sys.exit(0)
++ if opt in ('-P', '--port'):
++ try:
++ port = int(val)
++ except ValueError:
++ pass
+
+
+ print_version()
+@@ -100,7 +106,7 @@
+ # 'Publisher.py' contains our session management, 'page_main' contains
+ # the start page.
+ import Server, Publisher
+-pub = Server.Server("page_main", port=8080, publisher=Publisher.DeStarPublisher)
++pub = Server.Server("page_main", port=port, publisher=Publisher.DeStarPublisher)
+
+
+