Signed-off-by: Pierre Habouzit <madcoder@debian.org>
+xinetd (1:2.3.14-7) unstable; urgency=low
+
+ * Update init.d to test if ipv6 support is built in the kernel before
+ activating it by default (Closes: 472755).
+
+ -- Pierre Habouzit <madcoder@debian.org> Wed, 26 Mar 2008 17:46:54 +0100
+
xinetd (1:2.3.14-6) unstable; urgency=low
* Add patch from David Madore so that xinetd groks an -inetd_ipv6 mode, that
test -x "$DAEMON" || exit 0
test -e /etc/default/$NAME && . /etc/default/$NAME
-case "$INETD_COMPAT" in [Yy]*) XINETD_OPTS="$XINETD_OPTS -inetd_compat -inetd_ipv6";; esac
+case "$INETD_COMPAT" in
+ [Yy]*)
+ XINETD_OPTS="$XINETD_OPTS -inetd_compat"
+ if perl -MSocket -e 'exit (!socket($sock, AF_INET6, SOCK_STREAM, 0))'; then
+ XINETD_OPTS="$XINETD_OPTS -inetd_ipv6"
+ fi
+ ;;
+esac
. /lib/lsb/init-functions