debian/0000755000000000000000000000000012150457266007176 5ustar debian/control0000644000000000000000000000212212150457117010571 0ustar Source: ahcpd Section: net Priority: extra Maintainer: Stéphane Glondu Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: http://www.pps.jussieu.fr/~jch/software/ahcp/ Vcs-Browser: http://git.debian.org/?p=collab-maint/ahcpd.git Vcs-Git: git://git.debian.org/git/collab-maint/ahcpd.git Package: ahcpd Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Enhances: babeld Description: Ad-Hoc Configuration Protocol AHCP is an autoconfiguration protocol for IPv6 and dual-stack IPv6/IPv4 networks designed to be used in place of router discovery and DHCP on networks where it is difficult or impossible to configure a server within every link-layer broadcast domain, for example mobile ad-hoc networks. AHCP will automatically configure the IPv6 prefix, an IPv4 address for every host, the routing protocol, the DNS server and the NTP server. It is currently able to configure hosts for static routing, for use of the OLSR protocol, or for use of the Babel protocol. AHCP is extensible, so adding support for other routing protocols should be easy. debian/ahcpd.init0000644000000000000000000000551412150456656011151 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: ahcpd # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Initscript for ahcpd # Description: Initscript for Ad-Hoc Configuration Protocol daemon ### END INIT INFO # Author: Stéphane Glondu # Based on /etc/init.d/skeleton from initscripts_2.87dsf-10 and an # initscript provided by Juliusz Chroboczek. # Do NOT "set -e" # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Ad-Hoc Configuration Protocol daemon" NAME=ahcpd DAEMON=/usr/sbin/$NAME PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Exit if there is no interfaces if [ -z "$INTERFACES" ]; then echo "$DESC: no interfaces to operate on" exit 0 fi # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ -D -I $PIDFILE $DAEMON_ARGS $INTERFACES \ || return 2 # Wait for the daemon to be ready sleep 1 [ -e $PIDFILE ] || sleep 4 [ -e $PIDFILE ] || return 2 } do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/README.source0000644000000000000000000000111312150456656011353 0ustar Ahcpd Debian source package =========================== Patching upstream sources ------------------------- This source package uses quilt to apply and remove its patches. Please refer to `/usr/share/doc/quilt/README.source' for information about how to use quilt for source packages. The quilt series is generated from the Git repository, using dom-{apply,save}-patches, from the dh-ocaml (>= 0.5) package. Please refer to the appendix about Git in the Debian OCaml Packaging Policy (from the same package). -- Stéphane Glondu , Thu, 27 Aug 2009 17:02:26 +0200 debian/source/0000755000000000000000000000000012150456656010500 5ustar debian/source/format0000644000000000000000000000001412150456656011706 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000265712150457052011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Packaged-By: Stéphane Glondu Packaged-Date: Thu, 27 Aug 2009 13:46:26 +0200 Source: http://www.pps.jussieu.fr/~jch/software/ahcp/ Upstream-Author: Juliusz Chroboczek Files: * Copyright: 2007-2010, Juliusz Chroboczek License: MIT Files: debian/* Copyright: © 2009-2010 Stéphane Glondu License: MIT License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/ahcpd.postinst0000644000000000000000000000173312150456656012070 0ustar #!/bin/sh # postinst script for ahcpd # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) mkdir -p /var/lib/ahcpd ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/watch0000644000000000000000000000011312150456656010224 0ustar version=3 http://www.pps.jussieu.fr/~jch/software/files/ ahcpd-(.*).tar.gz debian/ahcpd.docs0000644000000000000000000000000712150456656011126 0ustar README debian/ahcpd.logrotate0000644000000000000000000000030012150456745012171 0ustar /var/log/ahcpd.log { weekly rotate 8 compress missingok notifempty postrotate [ -r /var/run/ahcpd.pid ] && kill -USR2 $(cat /var/run/ahcpd.pid) endscript } debian/compat0000644000000000000000000000000212150457111010361 0ustar 9 debian/rules0000755000000000000000000000043012150456656010255 0ustar #!/usr/bin/make -f DESTDIR := debian/ahcpd %: dh $@ .PHONY: override_dh_auto_install override_dh_auto_install: $(MAKE) install TARGET=$(DESTDIR) PREFIX=/usr mv $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin mkdir -p $(DESTDIR)/usr/share mv $(DESTDIR)/usr/man $(DESTDIR)/usr/share debian/gbp.conf0000644000000000000000000000003612150456656010616 0ustar [DEFAULT] pristine-tar = True debian/ahcpd.manpages0000644000000000000000000000001212150456656011765 0ustar ahcpd.man debian/ahcpd.postrm0000644000000000000000000000171212150456656011526 0ustar #!/bin/sh # postrm script for ahcpd # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge|remove) rm -Rf /var/lib/ahcpd ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/changelog0000644000000000000000000000214312150457171011043 0ustar ahcpd (0.53-2) unstable; urgency=low * Add logrotate support * Switch debian/copyright to format version 1.0 * Bump Standards-Version to 3.9.4 * Bump debhelper compat level to 9 -- Stéphane Glondu Sun, 26 May 2013 21:11:53 +0200 ahcpd (0.53-1) unstable; urgency=low * New upstream release -- Stéphane Glondu Sat, 10 Dec 2011 14:39:44 +0100 ahcpd (0.52-1) unstable; urgency=low * New upstream release * Bump Standards-Version to 3.9.2 (no changes) * Bump debhelper compatibility level to 8 -- Stéphane Glondu Thu, 28 Jul 2011 23:43:19 +0200 ahcpd (0.51-1) unstable; urgency=low * New upstream release (Closes: #568907): - remove patches (fixed upstream) * Add an initscript (Closes: #577286) * Switch to 3.0 (quilt) * Bump Standards-Version to 3.8.4 (no changes) * Upload to unstable -- Stéphane Glondu Sun, 11 Apr 2010 11:51:37 +0200 ahcpd (0.50-1) experimental; urgency=low * Initial release (Closes: #543378) -- Stéphane Glondu Fri, 28 Aug 2009 02:06:20 +0200 debian/ahcpd.default0000644000000000000000000000031212150456656011621 0ustar # Defaults for ahcpd initscript # sourced by /etc/init.d/ahcpd # List of interfaces on which the protocol should operate INTERFACES="" # Additional arguments DAEMON_ARGS="-i /var/lib/ahcpd/unique-id"