diff options
author | Tony Vroon <chainsaw@gentoo.org> | 2006-07-10 09:20:42 +0000 |
---|---|---|
committer | Tony Vroon <chainsaw@gentoo.org> | 2006-07-10 09:20:42 +0000 |
commit | d57e04c7da73b7f6e5efb6213eabf2dab17bd290 (patch) | |
tree | 0e71994013ff70a1c6fcb37d88b5016e36435dec /net-misc/bird | |
parent | Marked ~hppa (bug #137617). (diff) | |
download | gentoo-2-d57e04c7da73b7f6e5efb6213eabf2dab17bd290.tar.gz gentoo-2-d57e04c7da73b7f6e5efb6213eabf2dab17bd290.tar.bz2 gentoo-2-d57e04c7da73b7f6e5efb6213eabf2dab17bd290.zip |
Initial commit. Ebuild based on the one by Chet McNeill <chet@somedec.com> in bug #122823.
(Portage version: 2.1.1_pre2-r4)
Diffstat (limited to 'net-misc/bird')
-rw-r--r-- | net-misc/bird/ChangeLog | 12 | ||||
-rw-r--r-- | net-misc/bird/Manifest | 32 | ||||
-rw-r--r-- | net-misc/bird/bird-1.0.11.ebuild | 39 | ||||
-rw-r--r-- | net-misc/bird/files/1.0.11-destdir.patch | 30 | ||||
-rw-r--r-- | net-misc/bird/files/1.0.11-flex-args.patch | 10 | ||||
-rw-r--r-- | net-misc/bird/files/1.0.11-nostrip.patch | 14 | ||||
-rw-r--r-- | net-misc/bird/files/digest-bird-1.0.11 | 3 | ||||
-rw-r--r-- | net-misc/bird/files/initrd-bird-1.0.11 | 43 | ||||
-rw-r--r-- | net-misc/bird/metadata.xml | 10 |
9 files changed, 193 insertions, 0 deletions
diff --git a/net-misc/bird/ChangeLog b/net-misc/bird/ChangeLog new file mode 100644 index 000000000000..738de0b42e70 --- /dev/null +++ b/net-misc/bird/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for net-misc/bird +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bird/ChangeLog,v 1.1 2006/07/10 09:20:42 chainsaw Exp $ + +*bird-1.0.11 (10 Jul 2006) + + 10 Jul 2006; Tony Vroon <chainsaw@gentoo.org> +files/1.0.11-destdir.patch, + +files/1.0.11-flex-args.patch, +files/1.0.11-nostrip.patch, + +files/initrd-bird-1.0.11, +metadata.xml, +bird-1.0.11.ebuild: + Initial commit. Ebuild based on the one by Chet McNeill <chet@somedec.com> + in bug #122823. + diff --git a/net-misc/bird/Manifest b/net-misc/bird/Manifest new file mode 100644 index 000000000000..2135c8e2c1f7 --- /dev/null +++ b/net-misc/bird/Manifest @@ -0,0 +1,32 @@ +AUX 1.0.11-destdir.patch 1289 RMD160 5a73cb9d5639c516a21ef742b03ec14185ea7ff4 SHA1 645cdc524e1cbbb6f47185fd9fb2dbc038eb9218 SHA256 9ddd9b61f95daec64292240f9b8c7a56b1772b7bfe267153eb2efbfdc5ffd9dc +MD5 13e17f9a0ba39ccfbb7fa58e359db8d6 files/1.0.11-destdir.patch 1289 +RMD160 5a73cb9d5639c516a21ef742b03ec14185ea7ff4 files/1.0.11-destdir.patch 1289 +SHA256 9ddd9b61f95daec64292240f9b8c7a56b1772b7bfe267153eb2efbfdc5ffd9dc files/1.0.11-destdir.patch 1289 +AUX 1.0.11-flex-args.patch 433 RMD160 9099d2962e11d3b30526ce7c2c1a2ccc97d4be2d SHA1 08a0c77d278d2ee38632e7baf03f242e99cabaa2 SHA256 c960f3ff42a839da04718bebb4b5fd73c2b6ca103457090d267bd0d6eeb894f1 +MD5 c66fbdae2cca641c5448671a2b3b12f2 files/1.0.11-flex-args.patch 433 +RMD160 9099d2962e11d3b30526ce7c2c1a2ccc97d4be2d files/1.0.11-flex-args.patch 433 +SHA256 c960f3ff42a839da04718bebb4b5fd73c2b6ca103457090d267bd0d6eeb894f1 files/1.0.11-flex-args.patch 433 +AUX 1.0.11-nostrip.patch 696 RMD160 db155bc5e1cedeed0ec5ebf8fa4bab531de8a0f1 SHA1 0a485a7237d68b95198cd9439ec2d2966a05b76a SHA256 eaf20cc0d8cd4e3b1d8cadef8a94086d774e91040d0ab063a3a29ae35c62b373 +MD5 c59f0def2bcd00acc61b3757769c23cf files/1.0.11-nostrip.patch 696 +RMD160 db155bc5e1cedeed0ec5ebf8fa4bab531de8a0f1 files/1.0.11-nostrip.patch 696 +SHA256 eaf20cc0d8cd4e3b1d8cadef8a94086d774e91040d0ab063a3a29ae35c62b373 files/1.0.11-nostrip.patch 696 +AUX initrd-bird-1.0.11 722 RMD160 d713d4e06b7aa8a7fdd5d9dac5af3361ee16ff3d SHA1 b7b490b5cb7d85bf2cbe4785d9874b9dde72386c SHA256 7197c4f6f6ca3d3ce655999e1be202b2f8d2439981ffcf8d4f0a52a8c650293c +MD5 f886a497ebac24df49ca762bd0905e29 files/initrd-bird-1.0.11 722 +RMD160 d713d4e06b7aa8a7fdd5d9dac5af3361ee16ff3d files/initrd-bird-1.0.11 722 +SHA256 7197c4f6f6ca3d3ce655999e1be202b2f8d2439981ffcf8d4f0a52a8c650293c files/initrd-bird-1.0.11 722 +DIST bird-1.0.11.tar.gz 573041 RMD160 d1c8b4ef4cc89dab5c6b3ea8d5986a8c0b4d6861 SHA1 f2d38772dfe55319ee8da151cec7b021c6eb3cb6 SHA256 2aeceab428fbef05c546f96842ba9edb2f51d548e333fce8c625d2185f1fc856 +EBUILD bird-1.0.11.ebuild 868 RMD160 b9dc97105a0cc538131c14b379642f6c62a247d2 SHA1 6005a2138fca1678c6e561c255a6df08a836617d SHA256 fe9bcdce6f97538bad419b4f1149772c2827fcaeae6d72518ab82c9f7c089c8e +MD5 3bf64cdf10fc0edb7c18fe8ef7c0907a bird-1.0.11.ebuild 868 +RMD160 b9dc97105a0cc538131c14b379642f6c62a247d2 bird-1.0.11.ebuild 868 +SHA256 fe9bcdce6f97538bad419b4f1149772c2827fcaeae6d72518ab82c9f7c089c8e bird-1.0.11.ebuild 868 +MISC ChangeLog 442 RMD160 4cb99a6f069e825b6ad97b976c253cb7fda5c553 SHA1 719f04347f8d2b98aee36b7c88131f02193dc738 SHA256 f412d16e9dfc5f6c55801e082490b48d6c5af3dfb96065ed0f0419c5cd4fedce +MD5 4589b504b622ac85600390ba30fc5aeb ChangeLog 442 +RMD160 4cb99a6f069e825b6ad97b976c253cb7fda5c553 ChangeLog 442 +SHA256 f412d16e9dfc5f6c55801e082490b48d6c5af3dfb96065ed0f0419c5cd4fedce ChangeLog 442 +MISC metadata.xml 254 RMD160 ebd2451da81fa7f48f21992950c89af93d25868f SHA1 cd5bc39a659f7a1d39ee67831ef1cde244000f99 SHA256 2e90ce8a0cde160b1c9cc2400c418b97c6e5fd6f36bb4d35a78d90c08cfc4125 +MD5 ce03eb3b9c43ea1ba8257a897331c8fd metadata.xml 254 +RMD160 ebd2451da81fa7f48f21992950c89af93d25868f metadata.xml 254 +SHA256 2e90ce8a0cde160b1c9cc2400c418b97c6e5fd6f36bb4d35a78d90c08cfc4125 metadata.xml 254 +MD5 f7a17f56cad984474bb7f2f79483f001 files/digest-bird-1.0.11 235 +RMD160 57fcec9712cd1240b8ca671cf9c5313b3a581df6 files/digest-bird-1.0.11 235 +SHA256 5f6bdeced727205fa2619e5baa0d52230f467e5558e01100ae975e6a41721069 files/digest-bird-1.0.11 235 diff --git a/net-misc/bird/bird-1.0.11.ebuild b/net-misc/bird/bird-1.0.11.ebuild new file mode 100644 index 000000000000..f26a2e53260b --- /dev/null +++ b/net-misc/bird/bird-1.0.11.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bird/bird-1.0.11.ebuild,v 1.1 2006/07/10 09:20:42 chainsaw Exp $ + +inherit eutils + +DESCRIPTION="A routing daemon implementing OSPF, RIP/v2, BGP for IPv4 and IPv6" +HOMEPAGE="http://bird.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="ipv6only client" + +DEPEND="sys-devel/flex + sys-devel/bison + sys-devel/m4 + client? ( sys-libs/ncurses sys-libs/readline )" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-destdir.patch + epatch ${FILESDIR}/${PV}-flex-args.patch + epatch ${FILESDIR}/${PV}-nostrip.patch +} + +src_compile() { + econf \ + $(use_enable ipv6only ipv6) \ + $(use_enable client) || die "econf failed" + make || die "emake failed" +} + +src_install() { + make DESTDIR=${D} install || die + newinitd ${FILESDIR}/initrd-${P} bird +} diff --git a/net-misc/bird/files/1.0.11-destdir.patch b/net-misc/bird/files/1.0.11-destdir.patch new file mode 100644 index 000000000000..f9812363810f --- /dev/null +++ b/net-misc/bird/files/1.0.11-destdir.patch @@ -0,0 +1,30 @@ +--- bird-1.0.11.orig/tools/Makefile.in 2004-05-31 11:53:02.000000000 -0600 ++++ bird-1.0.11/tools/Makefile.in 2006-02-14 09:20:49.000000000 -0700 +@@ -5,6 +5,8 @@ + + .PHONY: all daemon client subdir depend clean distclean tags docs userdocs progdocs + ++DESTDIR = ++ + all: sysdep/paths.h .dep-stamp subdir daemon @CLIENT@ + + daemon: $(exedir)/bird +@@ -43,13 +45,13 @@ + cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]` + + install: all +- $(INSTALL) -d $(sbindir) $(sysconfdir) $(localstatedir) +- $(INSTALL_PROGRAM) -s $(exedir)/bird $(sbindir)/ ++ $(INSTALL) -d $(DESTDIR)$(sbindir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(localstatedir) ++ $(INSTALL_PROGRAM) -s $(exedir)/bird $(DESTDIR)$(sbindir)/ + if test -n "@CLIENT@" ; then \ +- $(INSTALL_PROGRAM) -s $(exedir)/birdc $(sbindir)/ ; \ ++ $(INSTALL_PROGRAM) -s $(exedir)/birdc $(DESTDIR)$(sbindir)/ ; \ + fi +- if ! test -f $(sysconfdir)/bird.conf ; then \ +- $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(sysconfdir)/bird.conf ; \ ++ if ! test -f $(DESTDIR)$(sysconfdir)/bird.conf ; then \ ++ $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)$(sysconfdir)/bird.conf ; \ + else \ + echo "Not overwriting old bird.conf" ; \ + fi diff --git a/net-misc/bird/files/1.0.11-flex-args.patch b/net-misc/bird/files/1.0.11-flex-args.patch new file mode 100644 index 000000000000..c8a333cb539c --- /dev/null +++ b/net-misc/bird/files/1.0.11-flex-args.patch @@ -0,0 +1,10 @@ +--- obj/conf/Makefile.orig 2006-07-10 09:49:07.000000000 +0100 ++++ obj/conf/Makefile 2006-07-10 09:49:34.000000000 +0100 +@@ -24,6 +24,6 @@ + $(M4) -P $(conf-src)/gen_commands.m4 $(srcdir)/client/cmds.m4 $(conf-fragments) | sort >commands.h + + cf-lex.c: cf-lex.l +- $(FLEX) $(FLEX_DEBUG) -sB8 -ocf-lex.c -Pcf_ cf-lex.l ++ $(FLEX) $(FLEX_DEBUG) -s -B -8 -ocf-lex.c -Pcf_ cf-lex.l + + depend: keywords.h commands.h cf-parse.tab.c cf-lex.c diff --git a/net-misc/bird/files/1.0.11-nostrip.patch b/net-misc/bird/files/1.0.11-nostrip.patch new file mode 100644 index 000000000000..0cd7d499de5f --- /dev/null +++ b/net-misc/bird/files/1.0.11-nostrip.patch @@ -0,0 +1,14 @@ +--- tools/Makefile.in.orig 2006-07-10 09:59:49.000000000 +0100 ++++ tools/Makefile.in 2006-07-10 10:00:07.000000000 +0100 +@@ -46,9 +46,9 @@ + + install: all + $(INSTALL) -d $(DESTDIR)$(sbindir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(localstatedir) +- $(INSTALL_PROGRAM) -s $(exedir)/bird $(DESTDIR)$(sbindir)/ ++ $(INSTALL_PROGRAM) $(exedir)/bird $(DESTDIR)$(sbindir)/ + if test -n "@CLIENT@" ; then \ +- $(INSTALL_PROGRAM) -s $(exedir)/birdc $(DESTDIR)$(sbindir)/ ; \ ++ $(INSTALL_PROGRAM) $(exedir)/birdc $(DESTDIR)$(sbindir)/ ; \ + fi + if ! test -f $(DESTDIR)$(sysconfdir)/bird.conf ; then \ + $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)$(sysconfdir)/bird.conf ; \ diff --git a/net-misc/bird/files/digest-bird-1.0.11 b/net-misc/bird/files/digest-bird-1.0.11 new file mode 100644 index 000000000000..34cb199cc3ad --- /dev/null +++ b/net-misc/bird/files/digest-bird-1.0.11 @@ -0,0 +1,3 @@ +MD5 9f9dfe2af0bde45a0adbbd0ebc36f249 bird-1.0.11.tar.gz 573041 +RMD160 d1c8b4ef4cc89dab5c6b3ea8d5986a8c0b4d6861 bird-1.0.11.tar.gz 573041 +SHA256 2aeceab428fbef05c546f96842ba9edb2f51d548e333fce8c625d2185f1fc856 bird-1.0.11.tar.gz 573041 diff --git a/net-misc/bird/files/initrd-bird-1.0.11 b/net-misc/bird/files/initrd-bird-1.0.11 new file mode 100644 index 000000000000..cce3127be0ec --- /dev/null +++ b/net-misc/bird/files/initrd-bird-1.0.11 @@ -0,0 +1,43 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bird/files/initrd-bird-1.0.11,v 1.1 2006/07/10 09:20:42 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 +} + +reload() { + ebegin "Reloading BIRD configuration" + + eend $? "Failed to reload BIRD configuration" +} diff --git a/net-misc/bird/metadata.xml b/net-misc/bird/metadata.xml new file mode 100644 index 000000000000..92150723007d --- /dev/null +++ b/net-misc/bird/metadata.xml @@ -0,0 +1,10 @@ +<?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> |