Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-16 Thread Ondřej Surý
Ah, sorry for that. I took different approach.

Unbound is enabled by default (in /etc/default/unbound) and
dh_installinit is called
with parameter --error-handler=true

That way, you can disable running unbound by default, but it doesn't
stop installation
and deinstallation process. I took this approach from lighttpd.

The fact is that it could be quite common scenario to install bind9
and unbound and/or
nsd2/3 on one machine (well at least in world where I live :-))), so
solution to conflict
with each other is not really an option.

Ondrej.

On Tue, Dec 16, 2008 at 10:56 AM, Robert Edmonds edmo...@debian.org wrote:
 Ondřej Surý wrote:
 Here is the patch used for NMU.

 please upload -1.2 fixing #508884.

 --
 Robert Edmonds
 edmo...@debian.org

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)

 iD8DBQFJR3tJdp+/SHMBQJERAotBAJ4ojcAlD80lxi9FNl79SybO3ujMrQCgiIIj
 dZbt2A6KZXaghA/1O98Ffuw=
 =HdMk
 -END PGP SIGNATURE-





-- 
Ondřej Surý ond...@sury.org


Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-16 Thread Robert Edmonds
Ondřej Surý wrote:
 Here is the patch used for NMU.

please upload -1.2 fixing #508884.

-- 
Robert Edmonds
edmo...@debian.org


signature.asc
Description: Digital signature


Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-15 Thread Hideki Yamane
On Thu, 4 Dec 2008 11:47:02 +0100
Ondřej Surý ond...@sury.org wrote:
 I am going to NMU on Sunday to fix this issue unless Robert responds
 that he is working to resolve this issue.

 Here is updated (and missing $UNBOUND_CONFIG_FILE is fixed) version
 patch.


-- 
Regards,

 Hideki Yamane henrich @ debian.or.jp/iijmio-mail.jp
 http://wiki.debian.org/HidekiYamane
diff -urN unbound-1.0.2.orig/debian/changelog unbound-1.0.2/debian/changelog
--- unbound-1.0.2.orig/debian/changelog	2008-12-16 03:32:19.0 +0900
+++ unbound-1.0.2/debian/changelog	2008-12-16 03:23:26.0 +0900
@@ -1,3 +1,14 @@
+unbound (1.0.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/{unbound.init,unbound.default}
++ set not start by default, to avoid that port 53 blocking by other name
+  servers will cause install problems
+  * debian/unbound.prerm
++ fix lintian unbound: maintainer-script-hides-init-failure prerm:5 error
+
+ -- Hideki Yamane (Debian-JP) henr...@debian.or.jp  Sun, 09 Nov 2008 10:52:13 +0900
+
 unbound (1.0.2-1) unstable; urgency=low
 
   * New upstream release;
diff -urN unbound-1.0.2.orig/debian/unbound.default unbound-1.0.2/debian/unbound.default
--- unbound-1.0.2.orig/debian/unbound.default	2008-12-16 03:32:19.0 +0900
+++ unbound-1.0.2/debian/unbound.default	2008-12-16 03:23:26.0 +0900
@@ -1,3 +1,11 @@
+# Do you want to start unbound?
+#  only allowed values are true and false.
+#  if you already use other DNS server, they would listen port 53,
+#  so unbound fails to start. Please adjust, then set true.
+
+UNBOUND_ENABLE=false
+
+
 # config file path
 #DAEMON_OPTS=-c /etc/unbound/unbound.conf
 
diff -urN unbound-1.0.2.orig/debian/unbound.init unbound-1.0.2/debian/unbound.init
--- unbound-1.0.2.orig/debian/unbound.init	2008-12-16 03:32:19.0 +0900
+++ unbound-1.0.2/debian/unbound.init	2008-12-16 03:34:27.0 +0900
@@ -1,16 +1,51 @@
 #!/bin/sh
+set -e
+
+### BEGIN INIT INFO
+# Provides:  unbound
+# Required-Start:$network $remote_fs $syslog
+# Required-Stop: $network $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+# Short-Description: validating, recursive, caching DNS resolver
+# Description:   Unbound is a recursive-only caching DNS server which can
+#optionally perform DNSSEC validation of results. It 
+#implements only a minimum amount of authoritative service
+#to prevent leakage to the root nameservers: forward lookups
+#for localhost, reverse for 127.0.0.1 and ::1, and NXDOMAIN
+#for zones served by AS112. Stub and forward zones are 
+#supported.
+#Unbound implements a number of security features, including
+#chrooting and privilege dropping. The Debian init script
+#will populate a chroot by default.
+#
+### END INIT INFO
+
 
 NAME=unbound
+UNBOUND_ENABLE=false
 DESC=recursive DNS server
-DAEMON=/usr/sbin/unbound
-CHROOT_DIR=/var/lib/unbound
-PIDFILE=$CHROOT_DIR/unbound.pid
+DAEMON=/usr/sbin/$NAME
+CHROOT_DIR=/var/lib/$NAME
+PIDFILE=$CHROOT_DIR/$NAME.pid
+UNBOUND_CONFIG_FILE=/etc/$NAME.conf
 
 test -x $DAEMON || exit 0
 
 . /lib/lsb/init-functions
 
-test -f /etc/default/$NAME  . /etc/default/$NAME
+if [ -f /etc/default/$NAME ]; then
+  . /etc/default/$NAME
+  case x$UNBOUND_ENABLE in 
+   xtrue|xfalse) ;;
+   *) log_failure_msg \
+   Value of UNBOUND_ENABLE in /etc/default/$NAME must be either 'true' or 'false';
+  log_failure_msg \
+   not starting unbound daemon.
+  exit 1;
+  ;;
+   esac
+fi
 
 install_chroot() {
 if [ $CHROOT != no ]; then
@@ -40,14 +75,22 @@
 
 case $1 in
 start)
-log_daemon_msg Starting $DESC $NAME
-if daemon_stopped; then
-install_chroot
-fi
-if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --name $NAME --startas $DAEMON -- $DAEMON_OPTS; then
-log_end_msg 0
+if $UNBOUND_ENABLE; then
+  log_daemon_msg Starting $DESC $NAME
+  if daemon_stopped; then
+  install_chroot
+  fi
+  if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE \
+ --name $NAME --startas $DAEMON -- $DAEMON_OPTS; then
+  log_end_msg 0
+  else
+  log_end_msg 1
+  fi
 else
-log_end_msg 1
+ if [ ! -s $UNBOUND_CONFIG_FILE ]; then
+  log_warning_msg \
+   missing or empty config file $UNBOUND_CONFIG_FILE
+ fi
 fi
 ;;
 
@@ -61,14 +104,19 @@
 ;;
 
 restart|force-reload)
-log_daemon_msg Restarting $DESC $NAME
-start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME --retry 5
-uninstall_chroot
-install_chroot
-if start-stop-daemon --start 

Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-15 Thread Robert Edmonds
Hideki Yamane wrote:
  Here is updated (and missing $UNBOUND_CONFIG_FILE is fixed) version
  patch.

  NAME=unbound

 +UNBOUND_CONFIG_FILE=/etc/$NAME.conf

the unbound config file is /etc/unbound/unbound.conf.  did you even test
this?

-- 
Robert Edmonds
edmo...@debian.org


signature.asc
Description: Digital signature


Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-15 Thread Ondřej Surý
It's still wrong, but never mind, I just removed the if with
UNBOUND_CONFIG_FILE at all.
And you cannot use set -e when there are command which could fail (test -d).

It's compiling again and if I can successfully install it on my
system, I will do an upload.

Ondrej.

On Mon, Dec 15, 2008 at 7:37 PM, Hideki Yamane henr...@debian.or.jp wrote:
 On Thu, 4 Dec 2008 11:47:02 +0100
 Ondřej Surý ond...@sury.org wrote:
 I am going to NMU on Sunday to fix this issue unless Robert responds
 that he is working to resolve this issue.

  Here is updated (and missing $UNBOUND_CONFIG_FILE is fixed) version
  patch.


 --
 Regards,

  Hideki Yamane henrich @ debian.or.jp/iijmio-mail.jp
  http://wiki.debian.org/HidekiYamane




-- 
Ondřej Surý ond...@sury.org


Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-15 Thread Robert Edmonds
Ondřej Surý wrote:
 since you are obviously online now...  do you want to make regular release
 or you are just fine with my NMU?

i am fine with NMUs so long as they don't break anything.

-- 
Robert Edmonds
edmo...@debian.org


signature.asc
Description: Digital signature


Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-15 Thread Ondřej Surý
Hi Robert,

since you are obviously online now...  do you want to make regular release
or you are just fine with my NMU?

Ondrej.

On Mon, Dec 15, 2008 at 7:45 PM, Robert Edmonds edmo...@debian.org wrote:
 Hideki Yamane wrote:
  Here is updated (and missing $UNBOUND_CONFIG_FILE is fixed) version
  patch.

  NAME=unbound

 +UNBOUND_CONFIG_FILE=/etc/$NAME.conf

 the unbound config file is /etc/unbound/unbound.conf.  did you even test
 this?

 --
 Robert Edmonds
 edmo...@debian.org

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)

 iD8DBQFJRqW3dp+/SHMBQJERAgsPAJwIeFBwfDxmunFDQNmJYWLTU+OZqgCcDitP
 TUYiWUyKYQAjFzq1g6IzjC0=
 =yNLp
 -END PGP SIGNATURE-





-- 
Ondřej Surý ond...@sury.org


Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-15 Thread Hideki Yamane
On Mon, 15 Dec 2008 13:45:11 -0500
Robert Edmonds edmo...@debian.org wrote: 
 the unbound config file is /etc/unbound/unbound.conf.  did you even test
 this?

 Um, tested but not with previous patch..., I'm a moron.


-- 
Regards,

 Hideki Yamane henrich @ debian.or.jp/iijmio-mail.jp
 http://wiki.debian.org/HidekiYamane
diff -urN unbound-1.0.2.orig/debian/changelog unbound-1.0.2/debian/changelog
--- unbound-1.0.2.orig/debian/changelog	2008-12-16 03:32:19.0 +0900
+++ unbound-1.0.2/debian/changelog	2008-12-16 03:23:26.0 +0900
@@ -1,3 +1,14 @@
+unbound (1.0.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/{unbound.init,unbound.default}
++ set not start by default, to avoid that port 53 blocking by other name
+  servers will cause install problems
+  * debian/unbound.prerm
++ fix lintian unbound: maintainer-script-hides-init-failure prerm:5 error
+
+ -- Hideki Yamane (Debian-JP) henr...@debian.or.jp  Sun, 09 Nov 2008 10:52:13 +0900
+
 unbound (1.0.2-1) unstable; urgency=low
 
   * New upstream release;
diff -urN unbound-1.0.2.orig/debian/unbound.default unbound-1.0.2/debian/unbound.default
--- unbound-1.0.2.orig/debian/unbound.default	2008-12-16 03:32:19.0 +0900
+++ unbound-1.0.2/debian/unbound.default	2008-12-16 03:23:26.0 +0900
@@ -1,3 +1,11 @@
+# Do you want to start unbound?
+#  only allowed values are true and false.
+#  if you already use other DNS server, they would listen port 53,
+#  so unbound fails to start. Please adjust, then set true.
+
+UNBOUND_ENABLE=false
+
+
 # config file path
 #DAEMON_OPTS=-c /etc/unbound/unbound.conf
 
diff -urN unbound-1.0.2.orig/debian/unbound.init unbound-1.0.2/debian/unbound.init
--- unbound-1.0.2.orig/debian/unbound.init	2008-12-16 03:32:19.0 +0900
+++ unbound-1.0.2/debian/unbound.init	2008-12-16 03:53:49.0 +0900
@@ -1,16 +1,51 @@
 #!/bin/sh
+set -e
+
+### BEGIN INIT INFO
+# Provides:  unbound
+# Required-Start:$network $remote_fs $syslog
+# Required-Stop: $network $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+# Short-Description: validating, recursive, caching DNS resolver
+# Description:   Unbound is a recursive-only caching DNS server which can
+#optionally perform DNSSEC validation of results. It 
+#implements only a minimum amount of authoritative service
+#to prevent leakage to the root nameservers: forward lookups
+#for localhost, reverse for 127.0.0.1 and ::1, and NXDOMAIN
+#for zones served by AS112. Stub and forward zones are 
+#supported.
+#Unbound implements a number of security features, including
+#chrooting and privilege dropping. The Debian init script
+#will populate a chroot by default.
+#
+### END INIT INFO
+
 
 NAME=unbound
+UNBOUND_ENABLE=false
 DESC=recursive DNS server
-DAEMON=/usr/sbin/unbound
-CHROOT_DIR=/var/lib/unbound
-PIDFILE=$CHROOT_DIR/unbound.pid
+DAEMON=/usr/sbin/$NAME
+CHROOT_DIR=/var/lib/$NAME
+PIDFILE=$CHROOT_DIR/$NAME.pid
+UNBOUND_CONFIG_FILE=/etc/$NAME/$NAME.conf
 
 test -x $DAEMON || exit 0
 
 . /lib/lsb/init-functions
 
-test -f /etc/default/$NAME  . /etc/default/$NAME
+if [ -f /etc/default/$NAME ]; then
+  . /etc/default/$NAME
+  case x$UNBOUND_ENABLE in 
+   xtrue|xfalse) ;;
+   *) log_failure_msg \
+   Value of UNBOUND_ENABLE in /etc/default/$NAME must be either 'true' or 'false';
+  log_failure_msg \
+   not starting unbound daemon.
+  exit 1;
+  ;;
+   esac
+fi
 
 install_chroot() {
 if [ $CHROOT != no ]; then
@@ -40,14 +75,22 @@
 
 case $1 in
 start)
-log_daemon_msg Starting $DESC $NAME
-if daemon_stopped; then
-install_chroot
-fi
-if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --name $NAME --startas $DAEMON -- $DAEMON_OPTS; then
-log_end_msg 0
+if $UNBOUND_ENABLE; then
+  log_daemon_msg Starting $DESC $NAME
+  if daemon_stopped; then
+  install_chroot
+  fi
+  if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE \
+ --name $NAME --startas $DAEMON -- $DAEMON_OPTS; then
+  log_end_msg 0
+  else
+  log_end_msg 1
+  fi
 else
-log_end_msg 1
+ if [ ! -s $UNBOUND_CONFIG_FILE ]; then
+  log_warning_msg \
+   missing or empty config file $UNBOUND_CONFIG_FILE
+ fi
 fi
 ;;
 
@@ -61,14 +104,19 @@
 ;;
 
 restart|force-reload)
-log_daemon_msg Restarting $DESC $NAME
-start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME --retry 5
-uninstall_chroot
-install_chroot
-if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --name 

Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-15 Thread Ondřej Surý
Here is the patch used for NMU.

Ondrej.
-- 
Ondřej Surý ond...@sury.org
diff -urNap unbound-1.0.2/debian/changelog unbound-1.0.2~nmu/debian/changelog
--- unbound-1.0.2/debian/changelog	2008-12-15 19:59:32.0 +0100
+++ unbound-1.0.2~nmu/debian/changelog	2008-12-15 19:55:08.0 +0100
@@ -1,3 +1,18 @@
+unbound (1.0.2-1.1) unstable; urgency=low
+
+  [ Hideki Yamane (Debian-JP) ]
+  * debian/{unbound.init,unbound.default}
++ set not start by default, to avoid that port 53 blocking by other name
+  servers will cause install problems
+  * debian/unbound.prerm
++ fix lintian unbound: maintainer-script-hides-init-failure prerm:5 error
+
+  [ Ondřej Surý ]
+  * Non-maintainer upload.
+  * Minor tweaks to patched init.d file to make it work.
+
+ -- Ondřej Surý ond...@debian.org  Mon, 15 Dec 2008 19:54:44 +0100
+
 unbound (1.0.2-1) unstable; urgency=low
 
   * New upstream release;
diff -urNap unbound-1.0.2/debian/unbound.default unbound-1.0.2~nmu/debian/unbound.default
--- unbound-1.0.2/debian/unbound.default	2008-12-15 19:59:32.0 +0100
+++ unbound-1.0.2~nmu/debian/unbound.default	2008-12-15 11:44:41.0 +0100
@@ -1,3 +1,11 @@
+# Do you want to start unbound?
+#  only allowed values are true and false.
+#  if you already use other DNS server, they would listen port 53,
+#  so unbound fails to start. Please adjust, then set true.
+
+UNBOUND_ENABLE=false
+
+
 # config file path
 #DAEMON_OPTS=-c /etc/unbound/unbound.conf
 
diff -urNap unbound-1.0.2/debian/unbound.init unbound-1.0.2~nmu/debian/unbound.init
--- unbound-1.0.2/debian/unbound.init	2008-12-15 19:59:32.0 +0100
+++ unbound-1.0.2~nmu/debian/unbound.init	2008-12-15 19:54:37.0 +0100
@@ -1,6 +1,28 @@
 #!/bin/sh
 
+### BEGIN INIT INFO
+# Provides:  unbound
+# Required-Start:$network $remote_fs $syslog
+# Required-Stop: $network $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+# Short-Description: validating, recursive, caching DNS resolver
+# Description:   Unbound is a recursive-only caching DNS server which can
+#optionally perform DNSSEC validation of results. It 
+#implements only a minimum amount of authoritative service
+#to prevent leakage to the root nameservers: forward lookups
+#for localhost, reverse for 127.0.0.1 and ::1, and NXDOMAIN
+#for zones served by AS112. Stub and forward zones are 
+#supported.
+#Unbound implements a number of security features, including
+#chrooting and privilege dropping. The Debian init script
+#will populate a chroot by default.
+#
+### END INIT INFO
+
+
 NAME=unbound
+UNBOUND_ENABLE=false
 DESC=recursive DNS server
 DAEMON=/usr/sbin/unbound
 CHROOT_DIR=/var/lib/unbound
@@ -10,7 +32,18 @@ test -x $DAEMON || exit 0
 
 . /lib/lsb/init-functions
 
-test -f /etc/default/$NAME  . /etc/default/$NAME
+if [ -f /etc/default/$NAME ]; then
+  . /etc/default/$NAME
+  case x$UNBOUND_ENABLE in 
+   xtrue|xfalse) ;;
+   *) log_failure_msg \
+   Value of UNBOUND_ENABLE in /etc/default/$NAME must be either 'true' or 'false';
+  log_failure_msg \
+   not starting unbound daemon.
+  exit 1;
+  ;;
+   esac
+fi
 
 install_chroot() {
 if [ $CHROOT != no ]; then
@@ -40,14 +73,20 @@ daemon_stopped() {
 
 case $1 in
 start)
-log_daemon_msg Starting $DESC $NAME
-if daemon_stopped; then
-install_chroot
-fi
-if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --name $NAME --startas $DAEMON -- $DAEMON_OPTS; then
-log_end_msg 0
+if $UNBOUND_ENABLE; then
+  log_daemon_msg Starting $DESC $NAME
+  if daemon_stopped; then
+  install_chroot
+  fi
+  if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE \
+ --name $NAME --startas $DAEMON -- $DAEMON_OPTS; then
+  log_end_msg 0
+  else
+  log_end_msg 1
+  fi
 else
-log_end_msg 1
+ log_warning_msg \
+  $NAME daemon is not enabled in /etc/default/$NAME, not starting...
 fi
 ;;
 
@@ -61,14 +100,19 @@ case $1 in
 ;;
 
 restart|force-reload)
-log_daemon_msg Restarting $DESC $NAME
-start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME --retry 5
-uninstall_chroot
-install_chroot
-if start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --name $NAME --startas $DAEMON -- $DAEMON_OPTS; then
-log_end_msg 0
-else
-log_end_msg 1
+set +e
+
+if $UNBOUND_ENABLE; then
+  log_daemon_msg Restarting $DESC $NAME
+  start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME --retry 5
+  

Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-15 Thread Hideki Yamane
Hi all,

 Sorry, I've made it again, it is tested one, works for me.
 please test it.

-- 
Regards,

 Hideki Yamane henrich @ debian.or.jp/iijmio-mail.jp
 http://wiki.debian.org/HidekiYamane
diff -urN unbound-1.0.2.orig/debian/changelog unbound-1.0.2/debian/changelog
--- unbound-1.0.2.orig/debian/changelog	2008-12-16 06:09:32.0 +0900
+++ unbound-1.0.2/debian/changelog	2008-12-16 06:09:51.0 +0900
@@ -1,3 +1,18 @@
+unbound (1.0.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/{unbound.init,unbound.default}
++ set not start by default, to avoid that port 53 blocking by other name
+  servers will cause install problems
+  * debian/unbound.prerm
++ fix lintian unbound: maintainer-script-hides-init-failure prerm:5 error
+  * debian/control
+- add ${misc:Depends} 
+  * debian/watch
+- add debian uupdate
+
+ -- Hideki Yamane (Debian-JP) henr...@debian.or.jp  Tue, 16 Dec 2008 05:03:43 +0900
+
 unbound (1.0.2-1) unstable; urgency=low
 
   * New upstream release;
diff -urN unbound-1.0.2.orig/debian/control unbound-1.0.2/debian/control
--- unbound-1.0.2.orig/debian/control	2008-12-16 06:09:32.0 +0900
+++ unbound-1.0.2/debian/control	2008-12-16 06:09:51.0 +0900
@@ -10,7 +10,7 @@
 Package: unbound
 Section: net
 Architecture: any
-Depends: ${shlibs:Depends}, adduser
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
 Description: validating, recursive, caching DNS resolver
  Unbound is a recursive-only caching DNS server which can optionally
  perform DNSSEC validation of results. It implements only a minimum amount
@@ -26,7 +26,7 @@
 Package: unbound-host
 Section: net
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: reimplementation of the 'host' command
  This package provides the 'unbound-host' program that is bundled with the
  Unbound domain name server. This version differs from the one provided in the
@@ -36,7 +36,7 @@
 Package: libunbound0
 Section: libs
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: library implementing DNS resolution and validation
  libunbound performs and validates DNS lookups; it can be used to convert
  hostnames to IP addresses and back, and obtain other information from the
@@ -45,7 +45,7 @@
 Package: libunbound-dev
 Section: libdevel
 Architecture: any
-Depends: libunbound0 (= ${binary:Version})
+Depends: libunbound0 (= ${binary:Version}), ${misc:Depends}
 Description: static library, header files, and docs for libunbound
  Static library, header files, and documentation for libunbound.
  .
diff -urN unbound-1.0.2.orig/debian/unbound.default unbound-1.0.2/debian/unbound.default
--- unbound-1.0.2.orig/debian/unbound.default	2008-12-16 06:09:32.0 +0900
+++ unbound-1.0.2/debian/unbound.default	2008-12-16 06:09:51.0 +0900
@@ -1,3 +1,11 @@
+# Do you want to start unbound?
+#  only allowed values are true and false.
+#  if you already use other DNS server, they would listen port 53,
+#  so unbound fails to start. Please adjust, then set true.
+
+UNBOUND_ENABLE=false
+
+
 # config file path
 #DAEMON_OPTS=-c /etc/unbound/unbound.conf
 
diff -urN unbound-1.0.2.orig/debian/unbound.init unbound-1.0.2/debian/unbound.init
--- unbound-1.0.2.orig/debian/unbound.init	2008-12-16 06:09:32.0 +0900
+++ unbound-1.0.2/debian/unbound.init	2008-12-16 06:09:51.0 +0900
@@ -1,38 +1,64 @@
 #!/bin/sh
+set -e
+
+### BEGIN INIT INFO
+# Provides:  unbound
+# Required-Start:$network $remote_fs $syslog
+# Required-Stop: $network $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+# Short-Description: validating, recursive, caching DNS resolver
+# Description:   Unbound is a recursive-only caching DNS server which can
+#optionally perform DNSSEC validation of results. It 
+#implements only a minimum amount of authoritative service
+#to prevent leakage to the root nameservers: forward lookups
+#for localhost, reverse for 127.0.0.1 and ::1, and NXDOMAIN
+#for zones served by AS112. Stub and forward zones are 
+#supported.
+#Unbound implements a number of security features, including
+#chrooting and privilege dropping. The Debian init script
+#will populate a chroot by default.
+#
+### END INIT INFO
+
 
 NAME=unbound
+UNBOUND_ENABLE=false
 DESC=recursive DNS server
-DAEMON=/usr/sbin/unbound
-CHROOT_DIR=/var/lib/unbound
-PIDFILE=$CHROOT_DIR/unbound.pid
+DAEMON=/usr/sbin/$NAME
+CHROOT_DIR=/var/lib/$NAME
+PIDFILE=$CHROOT_DIR/$NAME.pid
+UNBOUND_CONFIG_FILE=/etc/$NAME/$NAME.conf
 
 test -x $DAEMON || exit 0
 
 . /lib/lsb/init-functions
 
-test -f /etc/default/$NAME  . /etc/default/$NAME
+if [ -f /etc/default/$NAME ]; then
+  . /etc/default/$NAME
+  case 

Bug#500176: Going to NMU (#500176: other daemons prevent successful installation)

2008-12-04 Thread Ondřej Surý
Hi,

I am going to NMU on Sunday to fix this issue unless Robert responds
that he is working to resolve this issue.

Hmm, is it just me, or Last Seen in people.debian.org is broken?

Ondrej.
-- 
Ondřej Surý [EMAIL PROTECTED]