diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2009-07-22 12:20:53 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2009-07-22 12:20:53 +0000 |
commit | 4f1b01509d771a09920f25f67534fe39f5c0e30c (patch) | |
tree | 8b4bab4f3cf08b4a2b4f7db42df76b15f8437560 /net-misc/bird | |
parent | fix Manfiest (diff) | |
download | gentoo-2-4f1b01509d771a09920f25f67534fe39f5c0e30c.tar.gz gentoo-2-4f1b01509d771a09920f25f67534fe39f5c0e30c.tar.bz2 gentoo-2-4f1b01509d771a09920f25f67534fe39f5c0e30c.zip |
Resurrected ebuild that was in the tree earlier. With thanks to Chet McNeill <chet@somedec.com> in bug #122823 for an initial ebuild and patch set.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/bird')
-rw-r--r-- | net-misc/bird/ChangeLog | 12 | ||||
-rw-r--r-- | net-misc/bird/bird-1.1.0.ebuild | 40 | ||||
-rw-r--r-- | net-misc/bird/files/1.1.0-nostrip.patch | 15 | ||||
-rw-r--r-- | net-misc/bird/files/initd-bird-1.1.0 | 37 | ||||
-rw-r--r-- | net-misc/bird/metadata.xml | 9 |
5 files changed, 113 insertions, 0 deletions
diff --git a/net-misc/bird/ChangeLog b/net-misc/bird/ChangeLog new file mode 100644 index 000000000000..bff206e1eca7 --- /dev/null +++ b/net-misc/bird/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for net-misc/bird +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bird/ChangeLog,v 1.3 2009/07/22 12:20:53 chainsaw Exp $ + +*bird-1.1.0 (22 Jul 2009) + + 22 Jul 2009; <chainsaw@gentoo.org> +files/1.1.0-nostrip.patch, + +files/initd-bird-1.1.0, +bird-1.1.0.ebuild, +metadata.xml: + Resurrected ebuild that was in the tree earlier. With thanks to Chet + McNeill <chet@somedec.com> in bug #122823 for an initial ebuild and patch + set. + diff --git a/net-misc/bird/bird-1.1.0.ebuild b/net-misc/bird/bird-1.1.0.ebuild new file mode 100644 index 000000000000..f49100004310 --- /dev/null +++ b/net-misc/bird/bird-1.1.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bird/bird-1.1.0.ebuild,v 1.1 2009/07/22 12:20:53 chainsaw Exp $ + +inherit eutils + +DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 or IPv6" +HOMEPAGE="http://bird.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64" +IUSE="ipv6" + +RDEPEND="sys-libs/ncurses + sys-libs/readline + ${DEPEND}" +DEPEND="sys-devel/flex + sys-devel/bison + sys-devel/m4" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PV}-nostrip.patch" +} + +src_compile() { + econf \ + --enable-client \ + $(use_enable ipv6) \ + || die "Configuration stage failed" + emake -j1 || die "Compilation stage failed" +} + +src_install() { + emake DESTDIR="${D}" install || die + newinitd "${FILESDIR}/initd-${P}" bird +} diff --git a/net-misc/bird/files/1.1.0-nostrip.patch b/net-misc/bird/files/1.1.0-nostrip.patch new file mode 100644 index 000000000000..9555c89b56bc --- /dev/null +++ b/net-misc/bird/files/1.1.0-nostrip.patch @@ -0,0 +1,15 @@ +diff -uNr bird-1.1.0.ORIG/tools/Makefile.in bird-1.1.0/tools/Makefile.in +--- bird-1.1.0.ORIG/tools/Makefile.in 2009-07-22 12:23:19.000000000 +0100 ++++ bird-1.1.0/tools/Makefile.in 2009-07-22 12:25:50.000000000 +0100 +@@ -44,9 +44,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-bird-1.1.0 b/net-misc/bird/files/initd-bird-1.1.0 new file mode 100644 index 000000000000..0beaa89d8bd3 --- /dev/null +++ b/net-misc/bird/files/initd-bird-1.1.0 @@ -0,0 +1,37 @@ +#!/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-bird-1.1.0,v 1.1 2009/07/22 12:20:53 chainsaw Exp $ + +SOCK=/var/lib/run/bird.ctl + +depend() { + need net + use logger +} + +checkconfig() { + if [ ! -f /etc/bird.conf ]; then + eerror "Please create /etc/bird.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Starting BIRD" + /usr/sbin/bird -c /etc/bird.conf -s "${SOCK}" + eend $? "Failed to start BIRD" +} + +stop() { + ebegin "Stopping BIRD" + if [ -f "${SOCK}" ]; then + echo "down" | /usr/sbin/birdc &>/dev/null + eend $? "Failed to stop BIRD" + else + eend 0 + fi +} diff --git a/net-misc/bird/metadata.xml b/net-misc/bird/metadata.xml new file mode 100644 index 000000000000..b7c7dd56afb9 --- /dev/null +++ b/net-misc/bird/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> + </maintainer> +</pkgmetadata>
\ No newline at end of file |