diff options
Diffstat (limited to 'net-misc/bird/files')
-rw-r--r-- | net-misc/bird/files/1.1.3-nostrip.patch | 15 | ||||
-rw-r--r-- | net-misc/bird/files/initd-v4-bird-1.1.3 | 39 | ||||
-rw-r--r-- | net-misc/bird/files/initd-v6-bird-1.1.3 | 39 |
3 files changed, 93 insertions, 0 deletions
diff --git a/net-misc/bird/files/1.1.3-nostrip.patch b/net-misc/bird/files/1.1.3-nostrip.patch new file mode 100644 index 000000000000..36d1ef3b195d --- /dev/null +++ b/net-misc/bird/files/1.1.3-nostrip.patch @@ -0,0 +1,15 @@ +diff -uNr bird-1.1.3.ORIG/tools/Makefile.in bird-1.1.3/tools/Makefile.in +--- bird-1.1.3.ORIG/tools/Makefile.in 2009-09-11 14:56:23.000000000 +0100 ++++ bird-1.1.3/tools/Makefile.in 2009-09-11 14:56:38.000000000 +0100 +@@ -56,9 +56,9 @@ + + install: all + $(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/$(localstatedir) +- $(INSTALL_PROGRAM) -s $(exedir)/bird $(DESTDIR)/$(sbindir)/bird@SUFFIX6@ ++ $(INSTALL_PROGRAM) $(exedir)/bird $(DESTDIR)/$(sbindir)/bird@SUFFIX6@ + if test -n "@CLIENT@" ; then \ +- $(INSTALL_PROGRAM) -s $(exedir)/birdc $(DESTDIR)/$(sbindir)/birdc@SUFFIX6@ ; \ ++ $(INSTALL_PROGRAM) $(exedir)/birdc $(DESTDIR)/$(sbindir)/birdc@SUFFIX6@ ; \ + fi + if ! test -f $(DESTDIR)/$(sysconfdir)/bird@SUFFIX6@.conf ; then \ + $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)/$(sysconfdir)/bird@SUFFIX6@.conf ; \ diff --git a/net-misc/bird/files/initd-v4-bird-1.1.3 b/net-misc/bird/files/initd-v4-bird-1.1.3 new file mode 100644 index 000000000000..4009648b72d6 --- /dev/null +++ b/net-misc/bird/files/initd-v4-bird-1.1.3 @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bird/files/initd-v4-bird-1.1.3,v 1.1 2009/09/11 14:01:51 chainsaw Exp $ + +EXE=bird +CLI=birdc +SOCK="/var/run/${EXE}.ctl" + +depend() { + need net + use logger +} + +checkconfig() { + if [ ! -f "/etc/${EXE}.conf" ]; then + eerror "Please create /etc/${EXE}.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Starting BIRD" + "/usr/sbin/${EXE}" -c "/etc/${EXE}.conf" -s "${SOCK}" + eend $? "Failed to start BIRD" +} + +stop() { + ebegin "Stopping BIRD" + if [ -f "${SOCK}" ]; then + echo "down" | "/usr/sbin/${CLI}" -s "${SOCK}" &>/dev/null + eend $? "Failed to stop BIRD" + else + eend 0 + fi +} diff --git a/net-misc/bird/files/initd-v6-bird-1.1.3 b/net-misc/bird/files/initd-v6-bird-1.1.3 new file mode 100644 index 000000000000..0784c6d359ea --- /dev/null +++ b/net-misc/bird/files/initd-v6-bird-1.1.3 @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bird/files/initd-v6-bird-1.1.3,v 1.1 2009/09/11 14:01:51 chainsaw Exp $ + +EXE=bird6 +CLI=birdc6 +SOCK="/var/run/${EXE}.ctl" + +depend() { + need net + use logger +} + +checkconfig() { + if [ ! -f "/etc/${EXE}.conf" ]; then + eerror "Please create /etc/${EXE}.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Starting BIRD" + "/usr/sbin/${EXE}" -c "/etc/${EXE}.conf" -s "${SOCK}" + eend $? "Failed to start BIRD" +} + +stop() { + ebegin "Stopping BIRD" + if [ -f "${SOCK}" ]; then + echo "down" | "/usr/sbin/${CLI}" -s "${SOCK}" &>/dev/null + eend $? "Failed to stop BIRD" + else + eend 0 + fi +} |