debian/0000755000000000000000000000000012244663346007200 5ustar debian/bird-bgp.lintian-overrides0000644000000000000000000000030012244663264014236 0ustar bird-bgp: binary-without-manpage usr/sbin/bird bird-bgp: binary-without-manpage usr/sbin/bird6 bird-bgp: binary-without-manpage usr/sbin/birdc bird-bgp: binary-without-manpage usr/sbin/birdc6 debian/bird-big.preinst0000777000000000000000000000000012244663264014607 2bird.preinstustar debian/bird.lintian-overrides0000644000000000000000000000026012244663264013475 0ustar bird: binary-without-manpage usr/sbin/bird bird: binary-without-manpage usr/sbin/bird6 bird: binary-without-manpage usr/sbin/birdc bird: binary-without-manpage usr/sbin/birdc6 debian/bird.install0000644000000000000000000000022512244663264011506 0ustar etc/bird/bird.conf usr/sbin/bird usr/sbin/birdc etc/bird/bird6.conf usr/sbin/bird6 usr/sbin/birdc6 etc/bird/envvars usr/lib/bird/prepare-environment debian/bird.bird6.init0000644000000000000000000000621112244663264012011 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: bird6 # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO # Author: Ondřej Surý # # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="BIRD Internet Routing Daemon (IPv6)" NAME=bird6 DAEMON=/usr/sbin/$NAME BIRD_ARGS="" SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # read the RUN variables . /etc/bird/envvars # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # Create /run/bird with correct permissions /usr/lib/bird/prepare-environment # # Function that starts the daemon/service # 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 --name $NAME --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --name $NAME --exec $DAEMON -- \ -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP $BIRD_ARGS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # 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 --name $NAME --exec $DAEMON RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --name $NAME --exec $DAEMON [ "$?" = 2 ] && return 2 return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --name $NAME --exec $DAEMON return 0 } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # log_daemon_msg "Reloading $DESC" "$NAME" do_reload log_end_msg $? ;; restart) 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|restart|reload|force-reload}" >&2 exit 3 ;; esac : debian/bird.dirs0000644000000000000000000000002712244663264011001 0ustar usr/sbin usr/lib/bird/ debian/bird-bgp.install0000777000000000000000000000000012244663264014562 2bird.installustar debian/bird-big.postinst0000777000000000000000000000000012244663264015205 2bird.postinstustar debian/bird-big.postrm0000777000000000000000000000000012244663264014307 2bird.postrmustar debian/bird-bgp.bird6.upstart0000777000000000000000000000000012244663264016664 2bird.bird6.upstartustar debian/envvars0000644000000000000000000000006312244663264010605 0ustar BIRD_RUN_USER=bird BIRD_RUN_GROUP=bird #BIRD_ARGS= debian/bird.postrm0000644000000000000000000000113712244663264011367 0ustar #!/bin/sh set -e dpkg-maintscript-helper rm_conffile /etc/default/bird 1.3.11-5~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/bird.conf /etc/bird/bird.conf 1.3.11-5~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/bird6.conf /etc/bird/bird6.conf 1.3.11-5~ -- "$@" if test "$1" = "purge"; then dpkg-statoverride --remove /etc/bird/bird.conf >/dev/null 2>/dev/null || true dpkg-statoverride --remove /etc/bird/bird6.conf >/dev/null 2>/dev/null || true dpkg-statoverride --remove /etc/bird >/dev/null 2>/dev/null || true deluser --quiet bird > /dev/null || true fi #DEBHELPER# exit 0 debian/bird.bird.upstart0000644000000000000000000000056312244663264012466 0ustar # bird - BIRD Internet Routing Daemon (IPv4) description "BIRD Internet Routing Daemon (IPv4)" author "Ondřej Surý " start on runlevel [2345] stop on runlevel [016] respawn pre-start script /usr/lib/bird/prepare-environment /usr/sbin/bird -p end script script . /etc/bird/envvars /usr/sbin/bird -f -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP end script debian/bird.postinst0000644000000000000000000000150712244663264011727 0ustar #!/bin/sh set -e dpkg-maintscript-helper rm_conffile /etc/default/bird 1.3.11-5~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/bird.conf /etc/bird/bird.conf 1.3.11-5~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/bird6.conf /etc/bird/bird6.conf 1.3.11-5~ -- "$@" if [ "$1" = "configure" ]; then if ! getent passwd bird > /dev/null; then adduser --quiet --system --group --no-create-home --home /run/bird bird fi dpkg-statoverride --list /etc/bird/bird.conf > /dev/null || dpkg-statoverride --update --add bird bird 0640 /etc/bird/bird.conf dpkg-statoverride --list /etc/bird/bird6.conf > /dev/null || dpkg-statoverride --update --add bird bird 0640 /etc/bird/bird6.conf dpkg-statoverride --list /etc/bird > /dev/null || dpkg-statoverride --update --add bird bird 0750 /etc/bird fi #DEBHELPER# exit 0 debian/bird-bgp.dirs0000777000000000000000000000000012244663264013350 2bird.dirsustar debian/copyright0000644000000000000000000000255512244663264011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: bird Upstream-Contact: bird-users@bird.network.cz Source: http://bird.network.cz Files: * Copyright: 1998-2008 Martin Mareš 1998-2013 Ondřej Filip 1998-2000 Pavel Machek 2009-2013 Ondřej Zajíček License: GPL-2+ Files: ./lib/md5.c Copyright: 1993 Colin Plumb License: This code is in the public domain; do with it what you wish. Files: debian/* Copyright: 2010-2013 Ondřej Surý License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/bird-bgp.bird.upstart0000777000000000000000000000000012244663264016510 2bird.bird.upstartustar debian/bird.prerm0000644000000000000000000000044312244663264011167 0ustar #!/bin/sh set -e dpkg-maintscript-helper rm_conffile /etc/default/bird 1.3.11-5~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/bird.conf /etc/bird/bird.conf 1.3.11-5~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/bird6.conf /etc/bird/bird6.conf 1.3.11-5~ -- "$@" #DEBHELPER# exit 0 debian/bird-bgp.bird.init0000777000000000000000000000000012244663264015212 2bird.bird.initustar debian/bird.bird.service0000644000000000000000000000055712244663264012427 0ustar [Unit] Description=BIRD Internet Routing Daemon (IPv4) After=network.target [Service] EnvironmentFile=/etc/bird/envvars ExecStartPre=/usr/lib/bird/prepare-environment ExecStartPre=/usr/sbin/bird -p ExecReload=/usr/sbin/birdc configure ExecStart=/usr/sbin/bird -f -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP $BIRD_ARGS Restart=on-abort [Install] WantedBy=multi-user.target debian/source/0000755000000000000000000000000012244663264010477 5ustar debian/source/format0000644000000000000000000000001412244663264011705 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000003763612244663264011070 0ustar bird (1.4.0-1) unstable; urgency=low * New upstream version 1.4.0 * Remove no-strip-by-default and bird-foreground patches; merged upstream -- Ondřej Surý Mon, 25 Nov 2013 15:57:58 +0100 bird (1.3.11-7) unstable; urgency=low * Use autotools-dev debhelper add-on to update config.{sub,guess} (Closes: #727331) -- Ondřej Surý Thu, 24 Oct 2013 09:03:40 +0200 bird (1.3.11-6) unstable; urgency=low * Don't build on hurd, since bird does have a support only for linux and bsd kernels * Disable LTO for the moment since it doesn't play well with debugging information -- Ondřej Surý Sun, 06 Oct 2013 01:24:30 +0200 bird (1.3.11-5) unstable; urgency=low * Add NEWS file about changes in the packaging * Add privilege separation support + bird now runs under bird:bird user and group that gets created at package installation/upgrade time + the socket directory has changed to /run/bird + the configuration has moved into /etc/bird subdirectory * Move conffiles from /etc to /etc/bird * Add configuration files for other init systems + Upstart should work + Systemd config files are in place, but not used yed * Add support for running on foreground, needed for upstart/systemd -- Ondřej Surý Sat, 05 Oct 2013 22:23:34 +0200 bird (1.3.11-4) unstable; urgency=low * Don't drop default CFLAGS when using -flto * Remove redundant debian/patches/007-io.c_use_gnu.patch * Remove redundant debian/patches/008-io.c_pktinfo.patch * Link all.o with $(CC) again to try if sparc is ok now * Add -flto to LDFLAGS as well (not sure if needed though) * Add -fPIC to C/LDFLAGS * Enable hardening using the buildflags.mk -- Ondřej Surý Sat, 05 Oct 2013 19:50:51 +0200 bird (1.3.11-3) unstable; urgency=low * Add an LTO support detection * Fix versions in debian/control (Closes: #725319) -- Ondřej Surý Fri, 04 Oct 2013 08:10:16 +0200 bird (1.3.11-2) unstable; urgency=low * Convert package to 3.0 (quilt) source format * Merge bird6 package into bird and make bird6 package transitional * Add bird-bgp package that has only BGP protocol enabled * Remove --with quilt since it's not needed with higher dh compatibility levels * Remove README.source since quilt patches are now default * Also add bird-bgp-dbg package * Add some optimalizations to debian/rules default GCC flags * debian/rules: Reautoconfize the sources by default * Update copyright to machine readable format * Add build dependency on debhelper >= 9~ and drop quilt dependency * Drop support for $VERBOSE variable in init scripts and don't call internal init API anymore -- Ondřej Surý Mon, 30 Sep 2013 13:52:00 +0200 bird (1.3.11-1) unstable; urgency=low * New upstream version 1.3.11 * Update patches for 1.3.11 release -- Ondřej Surý Sun, 28 Jul 2013 21:17:09 +0200 bird (1.3.10-2) unstable; urgency=low * Reword the descriptions (Courtesy of Justin B Rye) (Closes: #651283) -- Ondřej Surý Fri, 21 Jun 2013 14:57:24 +0200 bird (1.3.10-1) unstable; urgency=low * Imported Upstream version 1.3.10 o Lightweight BIRD client for embedded environments. o Dynamic IPv6 router advertisements. o New 'next hop keep' option for BGP. o Smart default routing table for 'show route export/preexport/protocol'. o Automatic router ID selection could be configured to use address of loopback. o Allows configured global addresses of NBMA neighbors in OSPFv3. o Allows BIRD commands from UNIX shell even in restricted mode. o Route limits inherited from templates can be disabled. o Symbol names enclosed by apostrophes can contain dots. o Several bugfixes. -- Ondřej Surý Tue, 07 May 2013 13:49:15 +0200 bird (1.3.9-1) unstable; urgency=low * Imported Upstream version 1.3.9 o BIRD can be configured to keep and show filtered routes. o Separate receive and import limits. o Several new reconfiguration cmd options (undo, timeout, check). o Configurable automatic router ID selection. o Dragonfly BSD support. o Fixed OSPFv3 vlinks. o Several minor bugfixes. -- Ondřej Surý Mon, 14 Jan 2013 10:55:28 +0100 bird (1.3.8-1) unstable; urgency=low * Imported Upstream version 1.3.8 o Generalized import and export route limits. o RDNSS and DNSSL support for RAdv. o Include in config file support wildcards. o History deduplication in BIRD client. o New route attributes krt_source, krt_metric. o Different instance ID support for OSPFv3. o Real broadcast mode for OSPFv2. o Several minor bugfixes. -- Ondřej Surý Tue, 07 Aug 2012 13:16:15 +0200 bird (1.3.7-1) unstable; urgency=low * Imported Upstream version 1.3.7 + Route Origin Authorization basics. + RIPng working again. + Extended clist operations in filters. + Fixes several bugs in BSD iface handling. + Several minor bugfixes and enhancements. -- Ondřej Surý Thu, 22 Mar 2012 15:11:39 +0100 bird (1.3.6-1) unstable; urgency=low * Imported Upstream version 1.3.6 + Important bugfix in BGP. -- Ondřej Surý Fri, 20 Jan 2012 18:29:33 +0100 bird (1.3.5-1) unstable; urgency=low * Imported Upstream version 1.3.5 + Protocol templates + Deterministic MED option for BGP + Support for link-local addresses in BGP and static protocols -- Ondřej Surý Tue, 10 Jan 2012 16:17:42 +0100 bird (1.3.4-1) unstable; urgency=low * Imported Upstream version 1.3.4 + Static recursive routes added. + Minor bugfixes -- Ondřej Surý Mon, 10 Oct 2011 15:29:49 +0200 bird (1.3.3-1) unstable; urgency=low * New Upstream version 1.3.3 + OSPF NSSA + BGP extended communities + BGP TTL security + Configuration option "include" added (based on patch by Alexander V. Chernikov) + Some minor bugfixes. -- Ondřej Surý Mon, 12 Sep 2011 08:59:35 +0200 bird (1.3.2-2) unstable; urgency=low * Add default files for bird and bird6 packages and source them from init.d scripts -- Ondřej Surý Thu, 18 Aug 2011 11:25:21 +0200 bird (1.3.2-1) unstable; urgency=low * Imported Upstream version 1.3.2 -- Ondřej Surý Mon, 11 Jul 2011 08:46:35 +0200 bird (1.3.1-2) unstable; urgency=low * Debian packaging: + Update Vcs-* links + Add Homepage: link + dh7ize package + Bump standards to 3.9.2 + Install both builds to debian/tmp and use dh_install to split them to bird and bird6 packages * Remove install -s from upstream Makefile to not strip binaries by default * Add bird-dbg package with debugging symbols -- Ondřej Surý Tue, 31 May 2011 13:07:27 +0200 bird (1.3.1-1) unstable; urgency=low * Imported Upstream version 1.3.1 + Added Linux kernel route attributes krt_prefsrc and krt_realm + Added BGP option 'med metric' related to MED handling + Allows one to use constants from /etc/iproute2/rt_* files -- Ondřej Surý Mon, 02 May 2011 11:20:13 +0200 bird (1.3.0-1) unstable; urgency=low * Update description (Closes: #603494) * Imported Upstream version 1.3.0 -- Ondřej Surý Thu, 31 Mar 2011 15:17:19 +0200 bird (1.2.5-1) unstable; urgency=low * New upstream release * Bump standards version to 3.9.1 * Refresh patches to match upstream changes -- Ondřej Surý Thu, 21 Oct 2010 19:50:38 +0200 bird (1.2.4-1) unstable; urgency=low * New upstream release * Link with --as-needed -- Ondřej Surý Tue, 03 Aug 2010 18:09:35 +0200 bird (1.2.3-1) unstable; urgency=low * New upstream release * Add misc:Depends * Update copyright * Add debian source format -- Ondřej Surý Tue, 01 Jun 2010 08:42:57 +0200 bird (1.2.2-1) unstable; urgency=low * Imported Upstream version 1.2.2 * Convert dpatch to quilt * Add two new patches to fix ipv6 build in io.c * Remove useless patch to fix non-existant buffer overflow -- Ondřej Surý Mon, 12 Apr 2010 21:02:48 +0200 bird (1.2.1-1) unstable; urgency=low * New Upstream Version * Add debian/README.source with notes about quilt * Add OSPFv3 to description -- Ondřej Surý Thu, 11 Feb 2010 10:07:23 +0100 bird (1.2.0-1) unstable; urgency=low * New Upstream Version -- Ondřej Surý Thu, 14 Jan 2010 15:21:36 +0100 bird (1.1.7-1) unstable; urgency=low * New Upstream Version * Update build dependency on libreadline-dev (and stay friendly with backporters, ie. me) (Closes: #553734) * Description cleanup (Closes: #533210) (Courtesy of Dann Frazier) -- Ondřej Surý Mon, 21 Dec 2009 08:47:37 +0100 bird (1.1.6-1) unstable; urgency=low * New Upstream Version -- Ondřej Surý Fri, 20 Nov 2009 11:12:56 +0100 bird (1.1.5-1) unstable; urgency=low * New Upstream Version -- Ondřej Surý Mon, 02 Nov 2009 17:13:08 +0100 bird (1.1.4-1) unstable; urgency=low * New Upstream Version -- Ondřej Surý Fri, 02 Oct 2009 11:08:48 +0200 bird (1.1.3-1) unstable; urgency=low * New Upstream Version -- Ondřej Surý Fri, 11 Sep 2009 13:56:08 +0200 bird (1.1.2-1) unstable; urgency=low * New Upstream Version -- Ondřej Surý Sun, 23 Aug 2009 23:16:19 +0200 bird (1.1.1-1) unstable; urgency=low * New Upstream Version -- Ondřej Surý Mon, 17 Aug 2009 12:14:03 +0200 bird (1.1.0-1) unstable; urgency=low * New Upstream Version. -- Ondřej Surý Mon, 29 Jun 2009 17:19:30 +0200 bird (1.0.15-2) unstable; urgency=low * debian/patches/009_bird-ipv6-configure.patch - Enable IPv6 build - Binaries and config files are build with 6-suffix -- Ondřej Surý Tue, 02 Jun 2009 10:45:01 +0200 bird (1.0.15-1) unstable; urgency=low * New Upstream Version (Closes: #428865) * Disable IPv6 build (it was not installed anyway) -- Ondřej Surý Wed, 27 May 2009 13:57:08 +0200 bird (1.0.14-1) unstable; urgency=low * New Upstream Version -- Ondřej Surý Tue, 28 Apr 2009 14:48:36 +0200 bird (1.0.13-1) unstable; urgency=low * New upstream release -- Ondřej Surý Sun, 15 Mar 2009 00:27:28 +0100 bird (1.0.12-1) unstable; urgency=low * New upstream release. (Closes: #462341, #462344, #427772) * Acknowledge NMU * Fix typo in init.d script (Closes: #476752) * 002_add_DESTDIR.patch: + Honor nostrip option (Closes: #436590) * 005_fix-flex-params.patch, 000_update_config_guess_sub.patch + Removed, merged upstream. -- Ondřej Surý Wed, 12 Nov 2008 16:03:54 +0100 bird (1.0.11-4.1) unstable; urgency=low * Non-maintainer upload. * Added LSB formatted dependency info in init.d script (closes: #469618) -- Peter Eisentraut Fri, 04 Apr 2008 11:05:04 +0200 bird (1.0.11-4) unstable; urgency=low * Fix socket location to /var/run/bird.ctl (Closes: #382104) -- Ondřej Surý Thu, 26 Oct 2006 09:57:15 +0200 bird (1.0.11-3) unstable; urgency=low * Change priority from optional to extra. * Manually update config.{guess,sub} since dual build broke autoupdating (Closes: #378213, #378252) -- Ondřej Surý Thu, 13 Jul 2006 11:02:43 -0400 bird (1.0.11-2) unstable; urgency=low * 003_birdc-fix-buffer-overflow.patch: + Fix some command line buffer overflow condition (Closes: #317733) * 004_fix_ifr_storage_size_unknown.patch + Make IPv4 compilable again. * 005_fix-flex-params.patch + New flex is more picky about params, fix that. * 006_birdc-include-more-headers.patch + Fix some more warnings by including correct headers. * Prepare for dual IPv4 and IPv6 build: + Upload IPv4 version right now, previous one was only IPv6 by accident. -- Ondřej Surý Thu, 13 Jul 2006 11:02:40 -0400 bird (1.0.11-1) unstable; urgency=low * New upstream release. * New maintainer. * Acknowledge NMUs (Closes: #133400, #326383, #339663) * Update rules + Use CDBS + Autoupdates tools/config.{guess,sub} (Closes: #300437) * debian/patches/001_netlink.patch + Fixes FTBFS on recent systems * debian/patches/002_destdir.patch + Adds DESTDIR to install: and install-doc: targets in Makefile -- Ondřej Surý Sun, 9 Jul 2006 22:32:34 +0200 bird (1.0.4-8.1) unstable; urgency=high * Non-maintainer upload. * High-urgency upload for RC bugfix. * Build-depend on libreadline5-dev | libreadline-dev, instead of the removed libreadline4-dev. Closes: #326383. * Update debian/copyright to include a proper link to the GPL. Closes: #339663. -- Steve Langasek Thu, 17 Nov 2005 12:48:24 -0800 bird (1.0.4-8) unstable; urgency=low * Rebuild - upload problem -- Florian Lohoff Thu, 6 Jan 2005 17:30:01 +0000 bird (1.0.4-7) unstable; urgency=low * Dont link /usr/doc -> /usr/share/doc in postinst -- Florian Lohoff Thu, 6 Jan 2005 17:29:50 +0000 bird (1.0.4-6) unstable; urgency=low * Fix check for rtnetlink support - /proc/ksyms not on 2.6 Closes: Bug#248620 * Rewrite parts of the long description which hopefully is enough. Closes: Bug#135421 * Applied patch for FTBFS bug for gcc 3.4 and 4.0 Closes: Bug#266881 -- Florian Lohoff Thu, 6 Jan 2005 16:23:16 +0000 bird (1.0.4-5) unstable; urgency=low * Fix changed option parsing with flex Closes: Bug#191186 -- Florian Lohoff Tue, 29 Apr 2003 05:39:53 +0000 bird (1.0.4-4.4) unstable; urgency=low * Non-maintainer upload (BSP-2002-11). * Fixed bison files (closes: bug#166599). -- Aurelien Jarno Sat, 23 Nov 2002 00:31:39 +0100 bird (1.0.4-4.3) unstable; urgency=low * Non-maintainer upload. * conf/confbase.Y: include since FILE type is used. Closes: Bug#133400. -- Jerome Marant Sat, 16 Feb 2002 22:17:34 +0100 bird (1.0.4-4.2) unstable; urgency=low * Non-maintainer upload. * Really added build-depends on libreadline4-dev (closes: #100801) * fix install rule so conf file is installed to debian dir, rather than /etc -- Ryan Murray Wed, 15 Aug 2001 21:56:52 -0700 bird (1.0.4-4.1) unstable; urgency=low * Non-maintainer upload. * Add build-depends libreadline-4. Closes: #100801 * Should now include , not . * Run libtoolize to get support for new architectures. Closes: #104930 -- LaMont Jones Sat, 14 Jul 2001 01:28:52 -0600 bird (1.0.4-4) unstable; urgency=low * Another round of Build-Depends fixes - Thanks Roman (Closes: #71567) -- Florian Lohoff Wed, 13 Sep 2000 15:27:37 +0200 bird (1.0.4-3) unstable; urgency=low * Fixed Build-Depends - No need for specific kernel headers. (Closes: #71349) -- Florian Lohoff Mon, 11 Sep 2000 12:15:37 +0200 bird (1.0.4-2) unstable; urgency=low * Fixed copyright - Its GPL but wasnt stated in the copyright file * Fixed make distclean target -- Florian Lohoff Fri, 8 Sep 2000 14:07:10 +0200 bird (1.0.4-1) unstable; urgency=low * New upstream release -- Florian Lohoff Wed, 6 Sep 2000 18:14:01 +0200 bird (1.0.1-1) unstable; urgency=low * New upstream release hopefully fixing memory leaking bugs -- Florian Lohoff Wed, 21 Jun 2000 18:17:33 -0700 bird (1.0.0-1) unstable; urgency=low * Initial Release. -- Florian Lohoff Wed, 14 Jun 2000 17:53:15 +0200 Local variables: mode: debian-changelog End: debian/prepare-environment0000755000000000000000000000101112244663264013116 0ustar #!/bin/sh set -eu BIRD_RUN_DIR=/run/bird . /etc/bird/envvars mkdir --parents "$BIRD_RUN_DIR"; if [ -n "$BIRD_RUN_USER" ]; then if ! getent passwd $BIRD_RUN_USER >/dev/null; then echo "Configured user '$BIRD_RUN_USER' doesn't exist." exit 1 fi fi if [ -n "$BIRD_RUN_GROUP" ]; then if ! getent group $BIRD_RUN_GROUP >/dev/null; then echo "Configured group '$BIRD_RUN_GROUP' doesn't exist." exit 1 fi fi chown --silent "$BIRD_RUN_USER:$BIRD_RUN_GROUP" "$BIRD_RUN_DIR" chmod 775 "$BIRD_RUN_DIR" : debian/bird-bgp.bird6.init0000777000000000000000000000000012244663264015366 2bird.bird6.initustar debian/control0000644000000000000000000000617012244663264010606 0ustar Source: bird Section: net Priority: extra Build-Depends: quilt, dpkg-dev (>= 1.16.1.1~), debhelper (>= 9~), flex, bison, m4, libreadline-dev | libreadline6-dev | libreadline5-dev, libncurses5-dev, autotools-dev Maintainer: Ondřej Surý Standards-Version: 3.9.4 Vcs-Browser: http://git.debian.org/?p=users/ondrej/bird.git Vcs-Git: git://git.debian.org/users/ondrej/bird.git Homepage: http://bird.network.cz/ Package: bird Architecture: linux-any kfreebsd-any Depends: ${shlibs:Depends}, ${misc:Depends}, adduser Conflicts: zebra, routed Breaks: bird6 (<< 1.3.11-2~) Replaces: bird6 (<< 1.3.11-2~) Provides: bird6 Description: Internet Routing Daemon BIRD is an Internet routing daemon with full support for all the major routing protocols. It allows redistribution between protocols with a powerful route filtering syntax and an easy-to-use configuration interface. . This package supports IPv4 and IPv6 versions of OSPF, RIP and BGP. Package: bird-bgp Architecture: linux-any kfreebsd-any Depends: ${shlibs:Depends}, ${misc:Depends}, adduser Conflicts: zebra, routed, bird, bird6 Replaces: bird, bird6 Provides: bird, bird6 Description: Internet Routing Daemon [BGP-only version] BIRD is an Internet routing daemon with full support for all the major routing protocols. It allows redistribution between protocols with a powerful route filtering syntax and an easy-to-use configuration interface. . This package supports IPv4 and IPv6 versions of BGP. OSPF and RIP support has been disabled in this package to conserve the memory. Package: bird6 Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, bird (>= ${source:Version}) Section: oldlibs Description: Internet Routing Daemon [transitional packages] BIRD is an Internet routing daemon with full support for all the major routing protocols. It allows redistribution between protocols with a powerful route filtering syntax and an easy-to-use configuration interface. . This package is transitional only and can be safely removed. Package: bird-dbg Architecture: linux-any kfreebsd-any Depends: ${misc:Depends}, bird (= ${binary:Version}) Recommends: gdb Section: debug Priority: extra Description: Internet Routing Daemon - debug symbols BIRD is an Internet routing daemon with full support for all the major routing protocols. It allows redistribution between protocols with a powerful route filtering syntax and an easy-to-use configuration interface. . This package provides the symbols needed for debugging BIRD with gdb. Package: bird-bgp-dbg Architecture: linux-any kfreebsd-any Depends: ${misc:Depends}, bird-bgp (= ${binary:Version}) Recommends: gdb Conflicts: bird-dbg Replaces: bird-dbg Provides: bird-dbg Section: debug Priority: extra Description: Internet Routing Daemon - debug symbols [BGP-only version] BIRD is an Internet routing daemon with full support for all the major routing protocols. It allows redistribution between protocols with a powerful route filtering syntax and an easy-to-use configuration interface. . This package provides the symbols needed for debugging BIRD with gdb. debian/rules0000755000000000000000000000462112244663264010262 0ustar #!/usr/bin/make -f # -*- makefile -*- # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk COMMON_FLAGS= --prefix=/usr --sysconfdir=/etc/bird --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info --localstatedir=/var --with-runtimedir=/run/bird \ --enable-client CFLAGS += -g -O2 -fno-strict-aliasing -fno-strict-overflow -fPIC LDFLAGS += -g -O2 -fno-strict-aliasing -fno-strict-overflow -fPIC -Wl,-z,defs -Wl,--as-needed %: dh $@ --with autotools_dev override_dh_auto_configure: CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" dh_auto_configure -Bbuild-ipv4 -- $(COMMON_FLAGS) --disable-ipv6 --with-protocols=all CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" dh_auto_configure -Bbuild-ipv6 -- $(COMMON_FLAGS) --enable-ipv6 --with-protocols=all CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" dh_auto_configure -Bbuild-ipv4-bgp -- $(COMMON_FLAGS) --disable-ipv6 --with-protocols=bgp,pipe,static CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" dh_auto_configure -Bbuild-ipv6-bgp -- $(COMMON_FLAGS) --enable-ipv6 --with-protocols=bgp,pipe,static override_dh_auto_build: dh_auto_build -Bbuild-ipv4 dh_auto_build -Bbuild-ipv6 dh_auto_build -Bbuild-ipv4-bgp dh_auto_build -Bbuild-ipv6-bgp override_dh_auto_clean: dh_auto_clean -Bbuild-ipv4 dh_auto_clean -Bbuild-ipv6 dh_auto_clean -Bbuild-ipv4-bgp dh_auto_clean -Bbuild-ipv6-bgp override_dh_auto_install: dh_auto_install -Bbuild-ipv4 dh_auto_install -Bbuild-ipv6 dh_auto_install -Bbuild-ipv4-bgp --destdir=debian/bgp dh_auto_install -Bbuild-ipv6-bgp --destdir=debian/bgp override_dh_install: for d in tmp bgp; do \ install -d -m 755 debian/$$d/etc/bird; \ install -m 644 debian/envvars debian/$$d/etc/bird/envvars; \ install -d -m 755 debian/$$d/usr/lib/bird; \ install -m 755 debian/prepare-environment debian/$$d/usr/lib/bird/prepare-environment; \ done dh_install -pbird --sourcedir=debian/tmp dh_install -pbird-bgp --sourcedir=debian/bgp override_dh_strip: dh_strip -pbird --dbg-package=bird-dbg dh_strip -pbird-bgp --dbg-package=bird-bgp-dbg override_dh_installinit: dh_installinit --name=bird dh_installinit --name=bird6 debian/bird.preinst0000644000000000000000000000044312244663264011526 0ustar #!/bin/sh set -e dpkg-maintscript-helper rm_conffile /etc/default/bird 1.3.11-5~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/bird.conf /etc/bird/bird.conf 1.3.11-5~ -- "$@" dpkg-maintscript-helper mv_conffile /etc/bird6.conf /etc/bird/bird6.conf 1.3.11-5~ -- "$@" #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000012244663264010626 5ustar debian/patches/series0000644000000000000000000000003012244663264012034 0ustar 009-link_using_ld.patch debian/patches/009-link_using_ld.patch0000644000000000000000000000046112244663264014777 0ustar --- bird.orig/tools/Rules.in +++ bird/tools/Rules.in @@ -66,9 +66,9 @@ else subdir: all.o all.o: $(objs) -# $(LD) -r -o $@ $^ +# $(LD) -r -o $@ $^ # Changed to $(CC) because $(LD) has problems with crosscompiling - $(CC) -nostdlib -r -o $@ $^ + $(CC) $(CFLAGS) -nostdlib -r -o $@ $^ endif debian/gbp.conf0000644000000000000000000000025012244663264010613 0ustar [DEFAULT] debian-branch = master debian-tag = debian/%(version)s upstream-branch = upstream upstream-tag = upstream/%(version)s pristine-tar = True [git-dch] meta = 1 debian/bird.bird6.service0000644000000000000000000000056212244663264012511 0ustar [Unit] Description=BIRD Internet Routing Daemon (IPv6) After=network.target [Service] EnvironmentFile=/etc/bird/envvars ExecStartPre=/usr/lib/bird/prepare-environment ExecStartPre=/usr/sbin/bird6 -p ExecReload=/usr/sbin/birdc6 configure ExecStart=/usr/sbin/bird6 -f -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP $BIRD_ARGS Restart=on-abort [Install] WantedBy=multi-user.target debian/compat0000644000000000000000000000000212244663264010375 0ustar 9 debian/bird.bird.init0000644000000000000000000000620712244663264011730 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: bird # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO # Author: Ondřej Surý # # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="BIRD Internet Routing Daemon (IPv4)" NAME=bird DAEMON=/usr/sbin/$NAME BIRD_ARGS="" SCRIPTNAME=/etc/init.d/$NAME # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # read the RUN variables . /etc/bird/envvars # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # Create /run/bird with correct permissions /usr/lib/bird/prepare-environment # # Function that starts the daemon/service # 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 --name $NAME --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --name $NAME --exec $DAEMON -- \ -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP $BIRD_ARGS \ || return 2 # Add code here, if necessary, that waits for the process to be ready # to handle requests from services started subsequently which depend # on this one. As a last resort, sleep for some time. } # # Function that stops the daemon/service # 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 --name $NAME --exec $DAEMON RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --name $NAME --exec $DAEMON [ "$?" = 2 ] && return 2 return "$RETVAL" } # # Function that sends a SIGHUP to the daemon/service # do_reload() { # # If the daemon can reload its configuration without # restarting (for example, when it is sent a SIGHUP), # then implement that here. # start-stop-daemon --stop --signal 1 --quiet --name $NAME --exec $DAEMON return 0 } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # log_daemon_msg "Reloading $DESC" "$NAME" do_reload log_end_msg $? ;; restart) 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|restart|reload|force-reload}" >&2 exit 3 ;; esac : debian/bird-big.prerm0000777000000000000000000000000012244663264013711 2bird.prermustar debian/NEWS0000644000000000000000000000115012244663264007673 0ustar bird (1.3.11-5) unstable; urgency=low BIRD now uses privilege separation to increase the security, so the daemon doesn't run with root privileges anymore. This change also required to rework the packaging a little bit, so you need to be aware of: * The directory with configuration files had moved from /etc to /etc/bird/ * The daemon now runs as bird:bird, the user and group can be configured in the /etc/bird/envvars configuration file * The run directory where control socket resides has been moved to /run/bird/ -- Ondřej Surý Sat, 05 Oct 2013 22:27:45 +0200 debian/bird.bird6.upstart0000644000000000000000000000056512244663264012556 0ustar # bird - BIRD Internet Routing Daemon (IPv6) description "BIRD Internet Routing Daemon (IPv6)" author "Ondřej Surý " start on runlevel [2345] stop on runlevel [016] respawn pre-start script /usr/lib/bird/prepare-environment /usr/sbin/bird6 -p end script script . /etc/bird/envvars /usr/sbin/bird6 -f -u $BIRD_RUN_USER -g $BIRD_RUN_GROUP end script