--- radvd-1.0.orig/debian/patches/03-if-names-relax.patch +++ radvd-1.0/debian/patches/03-if-names-relax.patch @@ -0,0 +1,12 @@ +diff -ruN radvd-0.7.2.orig/scanner.l radvd-0.7.2/scanner.l +--- radvd-0.7.2.orig/scanner.l 2002-07-11 23:26:16.000000000 +0200 ++++ radvd-0.7.2/scanner.l 2004-02-22 16:53:10.000000000 +0100 +@@ -34,7 +34,7 @@ + addr3 ({hexdigit}{1,4}":"){7}{hexdigit}{1,4} + addr ({addr1}|{addr2}|{addr3}|"::") + whitespace ([ \t])+ +-string [a-z]([a-z]|{digit}|_)*([:.]{digit}+)? ++string [a-z]([a-z:._-]|{digit})*([:.]{digit}+)? + %% + + #.*$ {/* ignore comments */} --- radvd-1.0.orig/debian/README.Debian +++ radvd-1.0/debian/README.Debian @@ -0,0 +1,20 @@ +radvd for Debian +---------------- + +radvd comes with a example configuration in +/usr/share/doc/radvd/examples/simple-radvd.conf that advertises +non-routable addresses (see rfc3849) on eth0. For details of the +configuration file format see radvd.conf(5). + +Furthermore, radvd needs IPv6 forwarding enabled; this can be set by +adding the following line to /etc/sysctl.conf: + +,---- +| net.ipv6.conf.default.forwarding=1 +`---- + +If starting radvd fails, please have a look at /var/log/syslog, since radvd +doesn't output startup failures to the terminal. + + -- Andreas Rottmann , Thu, 7 Jun 2007 18:32:54 +0200 + --- radvd-1.0.orig/debian/changelog +++ radvd-1.0/debian/changelog @@ -0,0 +1,254 @@ +radvd (1:1.0-2ubuntu1) gutsy; urgency=low + + * Merge from Debian; remaining changes: + - Create /var/run/radvd in the init script. + + -- Matthias Klose Mon, 11 Jun 2007 18:12:07 +0200 + +radvd (1:1.0-2) unstable; urgency=low + + * Don't enable forwarding in the initscript, as suggested by Marco + d'Itri; this should be done via /etc/sysctl.conf (closes: #413669). + * README.Debian updated to reflect this. + * simple-radvd.conf: Fix netmask (/64 instead of /32). + + -- Andreas Rottmann Thu, 07 Jun 2007 18:34:48 +0200 + +radvd (1:1.0-1ubuntu2) feisty; urgency=low + + * Rebuild for changes in the amd64 toolchain. + * Set Ubuntu maintainer address. + + -- Matthias Klose Mon, 5 Mar 2007 01:25:13 +0000 + +radvd (1:1.0-1ubuntu1) feisty; urgency=low + + * Merge from debian unstable, remaining changes: + - create /var/run/radvd in the init script + + -- Scott James Remnant Tue, 28 Nov 2006 12:35:47 +0000 + +radvd (1:1.0-1) unstable; urgency=low + + * New upstream release (closes: #396441). + * Removed patch 01-linux-2.6.patch, as it is integrated upstream. + * Bumped standards-version to 3.7.2 (no changes). + * Added "INIT INFO" block to initscript. + + -- Andreas Rottmann Wed, 1 Nov 2006 16:47:28 +0100 + +radvd (1:0.8-1ubuntu2) dapper; urgency=low + + * Fix permissions of /var/run/radvd + + -- Scott James Remnant Wed, 19 Apr 2006 14:43:59 +0100 + +radvd (1:0.8-1ubuntu1) dapper; urgency=low + + * Create /var/run/radvd in the init script. + + -- Scott James Remnant Tue, 11 Apr 2006 02:20:48 +0100 + +radvd (1:0.8-1) unstable; urgency=low + + * New upstream release. + - Fixes adress garbling issue (closes: #301543). + * Bumped standards-version to 3.6.2. + * Added missing adduser dependency (thanks, lintian!). + * Make download URL version independendent in copyright. + + -- Andreas Rottmann Thu, 11 Aug 2005 20:59:53 +0200 + +radvd (1:0.7.3-1) unstable; urgency=low + + * New upstream release. + * Upload to unstable. + + -- Andreas Rottmann Tue, 22 Feb 2005 19:47:02 +0100 + +radvd (1:0.7.2+0.7.3rc1-1) experimental; urgency=low + + * New upstream release (0.7.3 release candidate). + - Fixes hang/sendmsg issue (closes: #287863). + - Drop patches integrated upstream: 02-radvd_conf_man.patch. + * Now runs as user radvd (closes: #242471). + * radvd.init: check for and remove stale pidfile (closes: #293789). + * control: tighten dependency on debhelper. + + -- Andreas Rottmann Sat, 19 Feb 2005 12:56:08 +0100 + +radvd (1:0.7.2-7) unstable; urgency=low + + * Fix restart initscript action (closes: #278369). + + -- Andreas Rottmann Mon, 29 Nov 2004 14:30:26 +0100 + +radvd (1:0.7.2-6) unstable; urgency=low + + * Applied patch by Fabio Massimo Di Nitto, thanks. (closes: #273892). + * Now using documentation prefix instead of deprectated + site-local prefix (closes: #242473). + * Also install the upstream example (radvd.conf.example). + + -- Andreas Rottmann Sun, 3 Oct 2004 17:27:35 +0200 + +radvd (1:0.7.2-5) unstable; urgency=low + + * Don't install a config file in /etc anymore (see, + and closes: #225558). Instead output a more verbose message in + the init script, telling the user how to configure it. + Config file previously in /etc now shipped in + /usr/share/doc/radvd/examples/simple-radvd.conf. + + -- Andreas Rottmann Mon, 1 Mar 2004 21:54:24 +0100 + +radvd (1:0.7.2-4) unstable; urgency=low + + * debian/init: Don't try to restore state of interfaces that are down + (closes: #233499). + * New patch 03-if-names-relax.patch, which allows [:.-_] to be used in + interface names (closes: #200868). + + -- Andreas Rottmann Sun, 22 Feb 2004 16:47:01 +0100 + +radvd (1:0.7.2-3) unstable; urgency=low + + * New patch 02-radvd_conf_man.patch, fixes AdvValidLifetime default + manpage error (closes: #226027). + * New patch 01-linux-2.6.patch, which fixes the warning on Linux 2.6 + (posted on radvd-devel-l by Pekka Savola ). + * debian/rules: Include simple-patchsys.mk. + * debian/init: Save forwarding configuration of interfaces at start time + and restore them at stop time (closes: #224197). + * debian/README: Document that the forwarding state is safed/restored. + * debian/copyright: + + Point to download dir, not file. + + Remove "no modification was needed" line. + + -- Andreas Rottmann Thu, 1 Jan 2004 21:16:33 +0100 + +radvd (1:0.7.2-2) unstable; urgency=low + + * radvd.8.man: Fixed --method, which should read --logmethod + (closes: #221246). + * debian/control: Standards-Version 3.5.1 (no changes). + * debian/rules: Switched to CDBS (from CBS). + + -- Andreas Rottmann Wed, 19 Nov 2003 23:22:30 +0100 + +radvd (1:0.7.2-1) unstable; urgency=low + + * New upstream release. + + Adds support for VLANs (closes: #166002). + * Now using CBS. + + Build-Depend on autotools-dev, so CBS can use current + config.{guess,sub}. + * Build-Depend on debhelper v4. + + -- Andreas Rottmann Sun, 23 Feb 2003 21:09:47 +0100 + +radvd (1:0.7.1-6) unstable; urgency=low + + * Now checking wether IPv6 is enabled in init script. (closes: #155961) + + -- Andreas Rottmann Fri, 9 Aug 2002 15:21:59 +0200 + +radvd (1:0.7.1-5) unstable; urgency=low + + * Corrected spelling in package description. (closes: #140978) + + -- Andreas Rottmann Wed, 3 Apr 2002 11:21:14 +0200 + +radvd (1:0.7.1-4) unstable; urgency=low + + * Init script now enables IPv6 forwarding. (closes: #134740) + * Updated debian/copyright. + * Added debian/README.Debian. + + -- Andreas Rottmann Sun, 3 Mar 2002 16:31:24 +0100 + +radvd (1:0.7.1-3) unstable; urgency=low + + * Rewrote complicated init script. (closes: #116038) + + -- Andreas Rottmann Sun, 17 Feb 2002 18:50:36 +0100 + +radvd (1:0.7.1-2) unstable; urgency=low + + * Fixed typo in debian/control 'Maintainer:' field. + + -- Andreas Rottmann Wed, 6 Feb 2002 18:51:51 +0100 + +radvd (1:0.7.1-1) unstable; urgency=low + + * New maintainer. (closes: #131640) + * New upstream. (closes: #115992) + * Fixed build for ash. (closes: #116443) + * Fixed postinst script. (closes: #116405) + * Fixed init script. (closes: #108486) + + -- Andreas Rottmann Mon, 4 Feb 2002 16:51:44 +0100 + +radvd (1:0.6.2pl4-1.1) unstable; urgency=low + + * NMU + * New config.guess and config.sub, as a patch. Closes: #115992 + + -- LaMont Jones Sat, 20 Oct 2001 21:16:17 -0600 + +radvd (1:0.6.2pl4-1) unstable; urgency=low + + * New upstream. Closes: #115430 + * Mistakenly uploaded 0.6.2 last time around, with an epoch, even tho it + was going backwards. :( Closes: #107953. + * Apply buffer overrun fixes from radvd mailing list. + * Added build-depends on flex and bison. Closes: #104018. + * Don't start radvd if the config file doesn't exist or is empty. + Closes: #99009. + * Handle varied /proc/net/if_inet6 on linux(fixed upstream). + Closes: #99005. + * Upstream uses daemon(3) to detach from the terminal, so + std{in,out,err} get closed correctly. Closes: #108485. + * Rewrote init script, to support reload(sends SIGHUP). + * List both the offical location and the location for the patchlevels + in copyright. Closes: #115428. + + -- Adam Heath Mon, 15 Oct 2001 12:32:31 -0500 + +radvd (1:0.6.2-1) unstable; urgency=low + + * New upstream. + + -- Adam Heath Sat, 7 Jul 2001 15:07:29 -0500 + +radvd (0.6.2pl3-1) unstable; urgency=low + + * New upstream. Closes: #84317, #97048. + * Check for existance and size of /etc/radvd.conf, before starting + the daemon, in the init script. Closes: #98102. + + -- Adam Heath Fri, 12 Jan 2001 00:53:23 -0600 + +radvd (0.5.0-2) unstable; urgency=low + + * Updated config.guess and config.sub. Closes: #78566. + + -- Adam Heath Fri, 12 Jan 2001 00:53:23 -0600 + +radvd (0.5.0-1) unstable; urgency=low + + * New upstream version. + * Created new debian/rules. + * Uses dbs. + * Added a binary-static target to debian/rules. This is not the + normal target, however. Useful when installing this deb on + older, pre-glibc 2.1 machines. + + -- Adam Heath Fri, 4 Aug 2000 00:29:37 -0500 + +radvd (0.4.2-1) unstable; urgency=low + + * Initial Release. + + -- Anthony Towns Fri, 26 Mar 1999 00:13:21 +1000 + --- radvd-1.0.orig/debian/control +++ radvd-1.0/debian/control @@ -0,0 +1,21 @@ +Source: radvd +Section: net +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Andreas Rottmann +Standards-Version: 3.7.2 +Build-Depends: autotools-dev, debhelper (>= 4.1.0), cdbs, flex, bison + +Package: radvd +Architecture: any +Depends: ${shlibs:Depends}, adduser +Description: Router Advertisement Daemon + IPv6 has a lot more support for autoconfiguration than IPv4. But + for this autoconfiguration to work on the hosts of a network, the + routers of the local network have to run a program which answers + the autoconfiguration requests of the hosts. + . + On Linux this program is called radvd, which stands for Router + ADVertisement Daemon. This daemon listens to router solicitations (RS) + and answers with router advertisement (RA). Furthermore unsolicited + RAs are also sent from time to time. --- radvd-1.0.orig/debian/copyright.in +++ radvd-1.0/debian/copyright.in @@ -0,0 +1,13 @@ +This is radvd. It was originally packaged by Adam Heath, on Fri Aug 4 21:45:09 CDT 2000. +and is now maintained by Andreas Rottmann . + +It was downloaded from + +http://v6web.litech.org/radvd/dist/radvd-0.7.1.tar.gz + +No modifications where needed for debian integration. + +The upstream copyright follows: + +---- + --- radvd-1.0.orig/debian/radvd.dirs +++ radvd-1.0/debian/radvd.dirs @@ -0,0 +1,5 @@ +usr/bin +usr/sbin +etc +usr/share/doc/radvd/examples +var/run/radvd --- radvd-1.0.orig/debian/radvd.init +++ radvd-1.0/debian/radvd.init @@ -0,0 +1,91 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Provides: radvd +# Required-Start: $syslog $local_fs $network +# Required-Stop: $syslog $local_fs $network +# Default-Start: S 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Router Advertising Daemon +### END INIT INFO + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/radvd +NAME=radvd +DESC=radvd +CONFIG=/etc/radvd.conf +PIDFILE=/var/run/radvd/radvd.pid +OPTIONS="-u radvd -p $PIDFILE" + +test -x $DAEMON || exit 0 + +set -e + +if [ ! -d /var/run/radvd ]; then + mkdir /var/run/radvd + chown radvd:root /var/run/radvd +fi + +# Check for IPv6 support in kernel +if test \! -e /proc/sys/net/ipv6; then + echo "IPv6 support must be enabled in the kernel for $DESC to work." + exit +fi + +chkconfig() { + if [ ! -e $CONFIG -o ! -s $CONFIG ]; then + echo "" + echo "* $CONFIG does not exist or is empty." + echo "* See /usr/share/doc/radvd/README.Debian" + echo "* radvd will *not* be started." + exit 0 + fi +} + +case "$1" in + start) + echo -n "Starting $DESC: " + chkconfig + + # We must enable IPv6 forwarding for radvd to work + echo 1 > /proc/sys/net/ipv6/conf/all/forwarding + + # Check for stale pidfile; radvd won't start if one is lying around + if [ -f $PIDFILE ] && ! ps `cat $PIDFILE` > /dev/null; then + rm -f $PIDFILE + fi + if ! start-stop-daemon --oknodo --start --pidfile $PIDFILE \ + --exec $DAEMON -- $OPTIONS; then + echo "failed." && exit 1 + fi + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: " + start-stop-daemon --oknodo --stop --pidfile $PIDFILE \ + --exec $DAEMON + echo "$NAME." + ;; + reload|force-reload) + echo "Reloading $DESC configuration files." + start-stop-daemon --stop --signal HUP --quiet --pidfile \ + $PIDFILE --exec $DAEMON + ;; + restart) + chkconfig + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile \ + $PIDFILE --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet --pidfile \ + $PIDFILE --exec $DAEMON -- $OPTIONS + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- radvd-1.0.orig/debian/radvd.postinst +++ radvd-1.0/debian/radvd.postinst @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +if [ "$1" = configure ]; then + if ! getent passwd radvd >/dev/null; then + adduser --quiet --system --no-create-home --home /var/run/radvd radvd + fi + for i in /var/run/radvd; do + if ! dpkg-statoverride --list $i >/dev/null; then + dpkg-statoverride --update --add radvd root 4755 $i + fi + done +fi + +#DEBHELPER# --- radvd-1.0.orig/debian/radvd.postrm +++ radvd-1.0/debian/radvd.postrm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +if [ "$1" = purge ]; then + dpkg-statoverride --remove /var/run/radvd +fi --- radvd-1.0.orig/debian/rules +++ radvd-1.0/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/buildcore.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_UPDATE_RCD_PARAMS = defaults 50 + +debian/copyright: debian/copyright.in COPYRIGHT + cat $^ > $@ + +pre-build:: debian/copyright + +clean:: + rm -f gram.c gram.h scanner.c + +common-install-prehook-arch:: + install -m 644 debian/simple-radvd.conf `pwd`/debian/radvd/usr/share/doc/radvd/examples/ + install -m 644 radvd.conf.example `pwd`/debian/radvd/usr/share/doc/radvd/examples/ --- radvd-1.0.orig/debian/simple-radvd.conf +++ radvd-1.0/debian/simple-radvd.conf @@ -0,0 +1,7 @@ +interface eth0 +{ + AdvSendAdvert on; + prefix 2001:db8::/64 + { + }; +}; --- radvd-1.0.orig/debian/compat +++ radvd-1.0/debian/compat @@ -0,0 +1 @@ +4 --- radvd-1.0.orig/debian/copyright +++ radvd-1.0/debian/copyright @@ -0,0 +1,50 @@ +This is radvd. It was originally packaged by Adam Heath, on Fri Aug 4 21:45:09 CDT 2000. +and is now maintained by Andreas Rottmann . + +It was downloaded from + +http://v6web.litech.org/radvd/dist/ + +No modifications where needed for debian integration. + +The upstream copyright follows: + +---- + + The author(s) grant permission for redistribution and use in source and +binary forms, with or without modification, of the software and documentation +provided that the following conditions are met: + +0. If you receive a version of the software that is specifically labelled + as not being for redistribution (check the version message and/or README), + you are not permitted to redistribute that version of the software in any + way or form. +1. All terms of all other applicable copyrights and licenses must be + followed. +2. Redistributions of source code must retain the authors' copyright + notice(s), this list of conditions, and the following disclaimer. +3. Redistributions in binary form must reproduce the authors' copyright + notice(s), this list of conditions, and the following disclaimer in the + documentation and/or other materials provided with the distribution. +4. All advertising materials mentioning features or use of this software + must display the following acknowledgement with the name(s) of the + authors as specified in the copyright notice(s) substituted where + indicated: + + This product includes software developed by the authors which are + mentioned at the start of the source files and other contributors. + +5. Neither the name(s) of the author(s) nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY ITS AUTHORS AND CONTRIBUTORS ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.