summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2003-09-05 04:27:55 +0000
committerNed Ludd <solar@gentoo.org>2003-09-05 04:27:55 +0000
commit7e492b17b45453c39b2bdd784f9aa4e440b1eb86 (patch)
tree18256575833dadb75b7aa898edaa8ecb3cb1aec2 /net-misc/zebra
parentPlease note this is the last planned zebra release that Gentoo should support. (diff)
downloadhistorical-7e492b17b45453c39b2bdd784f9aa4e440b1eb86.tar.gz
historical-7e492b17b45453c39b2bdd784f9aa4e440b1eb86.tar.bz2
historical-7e492b17b45453c39b2bdd784f9aa4e440b1eb86.zip
Please note this is the last planned zebra release that Gentoo should support.
GNU Zebra almost does not qualify as GNU Software, read the zebra mailing list for more info. Gentoo will continue it's support of routing software using Quagga a GNU Zebra fork
Diffstat (limited to 'net-misc/zebra')
-rw-r--r--net-misc/zebra/Manifest6
-rw-r--r--net-misc/zebra/files/digest-zebra-0.93b-r22
-rw-r--r--net-misc/zebra/zebra-0.93b-r1.ebuild7
-rw-r--r--net-misc/zebra/zebra-0.93b-r2.ebuild110
4 files changed, 118 insertions, 7 deletions
diff --git a/net-misc/zebra/Manifest b/net-misc/zebra/Manifest
index 3db0aa46faad..837d9cf3498b 100644
--- a/net-misc/zebra/Manifest
+++ b/net-misc/zebra/Manifest
@@ -1,9 +1,9 @@
-MD5 7790a7194f2baf448f1a37875001bb61 ChangeLog 1745
+MD5 cfb22b2a415389098102e1a940ff1ae2 ChangeLog 1745
MD5 8672c40f7bd4f41d8559cc13e8dd8e9c metadata.xml 787
MD5 26520e91b02ea3be788d7de3202eef27 zebra-0.93a.ebuild 1423
-MD5 0e19578e505f9d0f0e7f1a95f6ae88f2 zebra-0.93b-r1.ebuild 3184
+MD5 9a86fe143abfb97e7b2af4fd465fcc12 zebra-0.93b-r1.ebuild 3185
MD5 e69ac830c8e5d21dace738e0aa0bfcf5 zebra-0.93b.ebuild 1423
-MD5 ccefbda053d732d72194ad505ae99966 zebra-0.93b-r2.ebuild 3492
+MD5 59cb2b3241562b5a1672edf465f12908 zebra-0.93b-r2.ebuild 3493
MD5 1aea49f1bd903cd18e3a3ff2292c2639 files/digest-zebra-0.93a 64
MD5 0fd0812e7d1180d5965b9b997cd10011 files/digest-zebra-0.93b 64
MD5 16170ddbb0a330871df900b828e5eb9e files/digest-zebra-0.93b-r1 147
diff --git a/net-misc/zebra/files/digest-zebra-0.93b-r2 b/net-misc/zebra/files/digest-zebra-0.93b-r2
new file mode 100644
index 000000000000..efb6e070d4b2
--- /dev/null
+++ b/net-misc/zebra/files/digest-zebra-0.93b-r2
@@ -0,0 +1,2 @@
+MD5 9ca7dc5e0afb9b6470e4b1e21c271fe1 zebra-0.93b.tar.gz 1340359
+MD5 f594257d34f92de76afb7cc5db12cd48 ospfapi-release_0_93b-2003-01-25.tar.gz 99139
diff --git a/net-misc/zebra/zebra-0.93b-r1.ebuild b/net-misc/zebra/zebra-0.93b-r1.ebuild
index 00ea63cc4fc7..6ab6f64a05e5 100644
--- a/net-misc/zebra/zebra-0.93b-r1.ebuild
+++ b/net-misc/zebra/zebra-0.93b-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/zebra/zebra-0.93b-r1.ebuild,v 1.4 2003/07/13 14:31:36 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/zebra/zebra-0.93b-r1.ebuild,v 1.5 2003/09/05 04:27:52 solar Exp $
S=${WORKDIR}/${P}
IUSE="pam snmp ipv6 ospfapi"
@@ -28,9 +28,8 @@ src_unpack() {
cd ${WORKDIR}
ln -s ${S} zebra
- if [ `use ospfapi` ] ; then
+ [ `use ospfapi` ] &&
epatch ospfapi-release_*-200[3-9]-[0-9][0-9]-[0-9][0-9].patch
- fi
##################################
# This fix is for zebra-0.93b only
@@ -38,7 +37,7 @@ src_unpack() {
cd ${S}/ospfd || die
epatch ${FILESDIR}/${P}/ospfd-assert-fix.patch
epatch ${FILESDIR}/${P}/ospfd-nbr-fix.patch
- ##################################
+ ##################################
}
src_compile() {
diff --git a/net-misc/zebra/zebra-0.93b-r2.ebuild b/net-misc/zebra/zebra-0.93b-r2.ebuild
new file mode 100644
index 000000000000..869bcdace93c
--- /dev/null
+++ b/net-misc/zebra/zebra-0.93b-r2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/zebra/zebra-0.93b-r2.ebuild,v 1.1 2003/09/05 04:27:52 solar Exp $
+
+inherit eutils
+S=${WORKDIR}/${P}
+IUSE="pam snmp ipv6 ospfapi"
+
+DESCRIPTION="Multithreaded TCP/IP Routing Software that supports BGP-4, RIPv1, RIPv2 and OSPFv2. Includes OSPFAPI"
+SRC_URI="ftp://ftp.zebra.org/pub/zebra/${P}.tar.gz \
+ ospfapi? ( http://www.tik.ee.ethz.ch/~keller/ospfapi/src/ospfapi-release_0_93b-2003-01-25.tar.gz )"
+
+HOMEPAGE="http://www.zebra.org"
+# Homepage for ospfapi
+HOMEPAGE="${HOMEPAGE} http://www.tik.ee.ethz.ch/~keller/ospfapi"
+KEYWORDS="~x86 ~sparc"
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND="virtual/glibc
+ sys-devel/binutils
+ pam? ( >=pam-0.75-r11 )
+ snmp? ( virtual/snmp )"
+
+RDEPEND="virtual/glibc
+ sys-devel/binutils"
+
+src_unpack() {
+ unpack ${A} || die
+ cd ${WORKDIR}
+ ln -s ${S} zebra
+ if [ `use ospfapi` ]; then
+ epatch ospfapi-release_*-200[3-9]-[0-9][0-9]-[0-9][0-9].patch
+ else
+ # This fix is for zebra-0.93b only
+ cd ${S}/ospfd || die
+ [ -f ${FILESDIR}/${P}/ospfd-assert-fix.patch ] &&
+ epatch ${FILESDIR}/${P}/ospfd-assert-fix.patch
+ [ -f ${FILESDIR}/${P}/ospfd-nbr-fix.patch ] &&
+ epatch ${FILESDIR}/${P}/ospfd-nbr-fix.patch
+ fi
+}
+
+src_compile() {
+ local myconf="--enable-vtysh --enable-tcp-zebra"
+
+ # use libpam for PAM support in vtysh
+ use pam && myconf="${myconf} --with-libpam" || myconf="${myconf} --disable-pam"
+ use snmp && myconf="${myconf} --enable-snmp" || myconf="${myconf} --disable-snmp"
+ use ipv6 && myconf="${myconf} --enable-ipv6" || myconf="${myconf} --disable-ipv6"
+
+ use ospfapi && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te \
+ --enable-nssa"
+ use ospfapi && ./update-autotools
+
+ econf --prefix=/usr --sysconfdir=/etc/zebra ${myconf} || \
+ die "econf failed"
+ emake || die "emake failed"
+
+ if [ `use ospfapi` ] ; then
+ cd apiclient
+ econf --prefix=/usr --sysconfdir=/etc/zebra ${myconf} || \
+ die "econf failed in ospsapi-apiclient"
+ emake || die "emake failed in ospsapi-apiclient"
+ cd ..
+ fi
+}
+
+src_install() {
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc/zebra \
+ localstatedir=${D}/var \
+ infodir=${D}/usr/share/info \
+ mandir=${D}/usr/share/man \
+ install || die "zebra installation failed"
+
+ mkdir -p ${D}/etc/zebra/sample
+ # dodir ${D}/etc/ {D}/etc/zebra/ ${D}/etc/zebra/sample
+ cp */*.conf.sample* ${D}/etc/zebra/
+ mv ${D}/etc/zebra/*.conf.sample* ${D}/etc/zebra/sample
+
+ for proto in zebra bgpd ospfd ripd; do
+ insinto /etc/conf.d
+ newins ${FILESDIR}/conf.d/${proto}.confd ${proto}
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/init.d/${proto}.initd ${proto}
+ done
+
+ # second loop for ipv6
+ use ipv6 && for proto in ospf6d ripngd; do
+ insinto /etc/conf.d
+ newins ${FILESDIR}/conf.d/${proto}.confd ${proto}
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/init.d/${proto}.initd ${proto}
+ done
+
+ dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README REPORTING-BUGS SERVICES TODO
+}
+
+pkg_postinst() {
+ einfo "Sample configuration files can be found in /etc/zebra/sample"
+ einfo "You have to create config files in /etc/zebra before"
+ einfo "starting any one of the daemons."
+ echo
+ einfo "Please note this is the last planned zebra release that Gentoo should support"
+ einfo "GNU Zebra almost does not qualify as GNU Software, read the zebra mailing list for more info."
+ einfo "Gentoo will continue it's support of routing software using Quagga a GNU Zebra fork"
+
+}