Add autoconf-wrapper and libtool to DEPEND. Version bump.
authorAlin Năstac <mrness@gentoo.org>
Thu, 10 Nov 2005 05:19:51 +0000 (05:19 +0000)
committerAlin Năstac <mrness@gentoo.org>
Thu, 10 Nov 2005 05:19:51 +0000 (05:19 +0000)
Package-Manager: portage-2.0.51.22-r3

net-misc/quagga/ChangeLog
net-misc/quagga/Manifest
net-misc/quagga/files/digest-quagga-0.98.5 [new file with mode: 0644]
net-misc/quagga/quagga-0.98.2.ebuild
net-misc/quagga/quagga-0.98.4.ebuild
net-misc/quagga/quagga-0.98.5.ebuild [new file with mode: 0644]

index a66047094ccd5524973f8406b156bf71bdb5b5ad..5dc0bd0b9bdaa3c85eb38a7f361214b6e34cc0c8 100644 (file)
@@ -2,7 +2,13 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Copyright 2003-2004 DataCore GmbH
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.22 2005/10/18 03:58:04 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.23 2005/11/10 05:19:51 mrness Exp $
+
+*quagga-0.98.5 (10 Nov 2005)
+
+  10 Nov 2005; Alin Nastac <mrness@gentoo.org> quagga-0.98.2.ebuild,
+  quagga-0.98.4.ebuild, +quagga-0.98.5.ebuild:
+  Add autoconf-wrapper and libtool to DEPEND. Version bump.
 
   18 Oct 2005; Aron Griffis <agriffis@gentoo.org> quagga-0.98.4.ebuild:
   Mark 0.98.4 stable on alpha
index cb302d728a4d12e45cebd1f425dc29c990774b6c..e8355008ebd924683711627cca041be1d1018a42 100644 (file)
@@ -1,30 +1,32 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
+MD5 fa39f9112f11093de5c4588bd571ad14 quagga-0.98.5.ebuild 4441
+MD5 89e7fe5c8a95c1564895e7b5ce057e81 quagga-0.98.2.ebuild 4672
+MD5 810315e4d784bee637ef9b9f0d39de34 ChangeLog 9074
+MD5 79efcffc480076219ebb6604ea5357c9 quagga-0.98.4.ebuild 4439
 MD5 f0c8f9afaf3bbefcea71ff3b6fa139c4 metadata.xml 1389
-MD5 8de3633537d3e4e5d72379d59efdb3af quagga-0.98.4.ebuild 4394
-MD5 f1ee3ebc325669549b37323c040409f6 ChangeLog 8869
-MD5 95af004409f46b53eb8c5277bfd5b5b8 quagga-0.98.2.ebuild 4625
 MD5 6f7bbd50a0af9c0e1f2fae5116a8eacf quagga-0.96.5-r1.ebuild 4017
+MD5 cc109a746273bc0d6aee9d758e7524ab files/bgpd.init 900
 MD5 44547b687343ebfed7524cebc5626067 files/ospf6d.init 919
-MD5 0b834e6f9fd5d40f3018fb7e4ba04faa files/quagga.pam 1145
-MD5 120ab1b53975ec86e78266f31e935ab6 files/ripngd.init 920
-MD5 9056b8bd752a672787eacb129ee47535 files/digest-quagga-0.96.5-r1 142
 MD5 1a1df9fb95d48001187e1f56dc4ff5e5 files/digest-quagga-0.98.2 66
 MD5 8550c2f78b4c3ba7ba66c6bcb0bf4913 files/digest-quagga-0.98.4 147
-MD5 89b0cf4e70172bfcd195b2869cae28da files/ospfd.init 910
+MD5 d043f8666ea0af9633684d58dcef68e6 files/digest-quagga-0.98.5 147
+MD5 39b8cb21b55de53af38c94c2f5d85917 files/ripd.init 900
+MD5 120ab1b53975ec86e78266f31e935ab6 files/ripngd.init 920
+MD5 9056b8bd752a672787eacb129ee47535 files/digest-quagga-0.96.5-r1 142
 MD5 18c1046db57ea850aabd385058522cc4 files/quagga.env 25
+MD5 0b834e6f9fd5d40f3018fb7e4ba04faa files/quagga.pam 1145
+MD5 89b0cf4e70172bfcd195b2869cae28da files/ospfd.init 910
 MD5 c38e884372406e9e59616e436cd26388 files/zebra.conf 371
 MD5 2c1c5b782f96a74b48ccc496ad7a3865 files/zebra.init 1168
-MD5 39b8cb21b55de53af38c94c2f5d85917 files/ripd.init 900
-MD5 cc109a746273bc0d6aee9d758e7524ab files/bgpd.init 900
-MD5 e70bf25e2ca5f76efb2c5704234ccc1f files/patches-0.98.2/ht-20040304-classless-bgp.patch 1581
-MD5 6c9cdbdc237bb8d24dfd26504059464b files/patches-0.98.2/ht-20050110-0.98.0-bgp-md5.patch 14570
 MD5 7da4097332468741416e156a2e5d35e4 files/patches-0.98.2/amir-connected-route.patch 6336
+MD5 6c9cdbdc237bb8d24dfd26504059464b files/patches-0.98.2/ht-20050110-0.98.0-bgp-md5.patch 14570
+MD5 e70bf25e2ca5f76efb2c5704234ccc1f files/patches-0.98.2/ht-20040304-classless-bgp.patch 1581
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.1 (GNU/Linux)
 
-iD8DBQFDVHLbJrHF4yAQTrARAt9LAJ9jUVCZtDFB9UK2VtbolHTVo6Hs7QCffGB6
-X/fP1pUIVDEgTu9OLvYCXRw=
-=XypX
+iD8DBQFDctiKNSP4Vda7IdsRAkZnAJ9D87qM3eBEC+qf/vyrSUGCzTrbrwCdF6Xv
+x7QDMWdKarTCrphUhGBjYX8=
+=rnaD
 -----END PGP SIGNATURE-----
diff --git a/net-misc/quagga/files/digest-quagga-0.98.5 b/net-misc/quagga/files/digest-quagga-0.98.5
new file mode 100644 (file)
index 0000000..fd9b256
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 ec09c1ec624aea98e18aa19282666784 quagga-0.98.5.tar.gz 2018058
+MD5 fbf4a396755161c7023540bcccdc52cc quagga-0.98.5-patches-20051105.tar.gz 19206
index 6e49d207d10fb5951ecae320b5b7916c8bffc204..e4382906a8f5263c6f64b8814c2e9b0d89db4a76 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.2.ebuild,v 1.10 2005/10/14 05:19:12 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.2.ebuild,v 1.11 2005/11/10 05:19:51 mrness Exp $
 
 inherit eutils
 
@@ -19,7 +19,9 @@ RDEPEND="sys-apps/iproute2
        pam? ( sys-libs/pam )"
 DEPEND="${RDEPEND}
        virtual/libc
-       sys-devel/binutils"
+       sys-devel/binutils
+       sys-devel/autoconf-wrapper
+       sys-devel/libtool"
 
 # TCP MD5 for BGP patch for Linux (RFC 2385) 
 MD5_PATCH="ht-20050110-0.98.0-bgp-md5.patch"
index 63739760a4bf725387d796d8441382bf79577691..343d21aeb8ac30c69f5078b89b3669cf1e92a576 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.4.ebuild,v 1.6 2005/10/18 03:58:04 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.4.ebuild,v 1.7 2005/11/10 05:19:51 mrness Exp $
 
 inherit eutils multilib
 
@@ -20,7 +20,9 @@ RDEPEND="sys-apps/iproute2
        pam? ( sys-libs/pam )"
 DEPEND="${RDEPEND}
        virtual/libc
-       sys-devel/binutils"
+       sys-devel/binutils
+       sys-devel/autoconf-wrapper
+       sys-devel/libtool"
 
 src_unpack() {
        unpack ${A} || die "failed to unpack sources"
diff --git a/net-misc/quagga/quagga-0.98.5.ebuild b/net-misc/quagga/quagga-0.98.5.ebuild
new file mode 100644 (file)
index 0000000..b0d4c32
--- /dev/null
@@ -0,0 +1,130 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.98.5.ebuild,v 1.1 2005/11/10 05:19:51 mrness Exp $
+
+inherit eutils multilib
+
+DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP. Includes OSPFAPI, NET-SNMP and IPV6 support."
+HOMEPAGE="http://quagga.net/"
+SRC_URI="http://www.quagga.net/download/${P}.tar.gz
+       mirror://gentoo/${P}-patches-20051105.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86"
+IUSE="ipv6 snmp pam tcpmd5 bgpclassless ospfapi realms"
+
+RDEPEND="sys-apps/iproute2
+       >=sys-libs/libcap-1.10-r5
+       snmp? ( net-analyzer/net-snmp )
+       pam? ( sys-libs/pam )"
+DEPEND="${RDEPEND}
+       virtual/libc
+       sys-devel/binutils
+       sys-devel/autoconf-wrapper
+       sys-devel/libtool"
+
+src_unpack() {
+       unpack ${A} || die "failed to unpack sources"
+
+       cd ${S} || die "source dir not found"
+       # TCP MD5 for BGP patch for Linux (RFC 2385) - http://hasso.linux.ee/quagga/ht-20050110-0.98.0-bgp-md5.patch
+       use tcpmd5 && epatch "${WORKDIR}/patch/ht-20050110-0.98.0-bgp-md5.patch"
+       # Classless prefixes for BGP - http://hasso.linux.ee/quagga/pending-patches/ht-20040304-classless-bgp.patch
+       use bgpclassless && epatch "${WORKDIR}/patch/ht-20040304-classless-bgp.patch"
+       # Connected route fix (Amir) - http://voidptr.sboost.org/quagga/amir-connected-route.patch.bz2
+       epatch "${WORKDIR}/patch/amir-connected-route.patch"
+       # Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html
+       use realms && epatch "${WORKDIR}/patch/${P}-realms.diff"
+}
+
+src_compile() {
+       # regenerate configure and co if we touch .ac or .am files
+       #export WANT_AUTOMAKE=1.7
+       #./update-autotools || die
+       autoreconf
+       libtoolize --copy --force
+
+       local myconf="--disable-static --enable-dynamic"
+
+       use ipv6 \
+                       && myconf="${myconf} --enable-ipv6 --enable-ripng --enable-ospf6d --enable-rtadv" \
+                       || myconf="${myconf} --disable-ipv6 --disable-ripngd --disable-ospf6d"
+       use ospfapi \
+                       && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient"
+       use snmp && myconf="${myconf} --enable-snmp"
+       use pam && myconf="${myconf} --with-libpam"
+       use tcpmd5 && myconf="${myconf} --enable-tcp-md5"
+       use realms && myconf="${myconf} --enable-realms"
+
+       econf \
+               --enable-tcp-zebra \
+               --enable-nssa \
+               --enable-user=quagga \
+               --enable-group=quagga \
+               --enable-vty-group=quagga \
+               --with-cflags="${CFLAGS}" \
+               --enable-vtysh \
+               --sysconfdir=/etc/quagga \
+               --enable-exampledir=/etc/quagga/samples \
+               --localstatedir=/var/run/quagga \
+               --libdir=/usr/$(get_libdir)/quagga \
+               ${myconf} \
+               || die "configure failed"
+       emake || die "make failed"
+}
+
+src_install() {
+       einstall \
+               localstatedir=${D}/var/run/quagga \
+               sysconfdir=${D}/etc/quagga \
+               exampledir=${D}/etc/quagga/samples \
+               libdir=${D}/usr/$(get_libdir)/quagga || die "make install failed"
+
+       keepdir /var/run/quagga || die
+
+       local i MY_SERVICES_LIST="zebra ripd ospfd bgpd"
+       use ipv6 && MY_SERVICES_LIST="${MY_SERVICES_LIST} ripngd ospf6d"
+       for i in ${MY_SERVICES_LIST} ; do
+               newinitd ${FILESDIR}/${i}.init ${i} || die "failed to install ${i} init.d script"
+       done
+       newconfd ${FILESDIR}/zebra.conf zebra || die "failed to install zebra conf.d script"
+
+       if use pam; then
+               insinto /etc/pam.d
+               newins ${FILESDIR}/quagga.pam quagga
+       fi
+
+       newenvd ${FILESDIR}/quagga.env 99quagga
+}
+
+pkg_preinst() {
+       enewgroup quagga
+       enewuser quagga -1 -1 /var/empty quagga
+}
+
+pkg_postinst() {
+       # empty dir for pid files for the new priv separation auth
+       #set proper owner/group/perms even if dir already existed
+       install -d -m0770 -o root -g quagga ${ROOT}/etc/quagga
+       install -d -m0755 -o quagga -g quagga ${ROOT}/var/run/quagga
+
+       einfo "Sample configuration files can be found in /etc/quagga/samples."
+       einfo "You have to create config files in /etc/quagga before"
+       einfo "starting one of the daemons."
+
+       if use tcpmd5; then
+               echo
+               ewarn "TCP MD5 for BGP needs a patched kernel!"
+               einfo "See http://hasso.linux.ee/quagga/bgp-md5.en.php for more info."
+       fi
+
+       if use ipv6; then
+               echo
+               ewarn "This version of quagga contains a netlink race condition fix that triggered a kernel bug"
+               ewarn "which affects IPv6 users who have a kernel version < 2.6.13-rc6."
+               einfo "See following links for more info:"
+               einfo "   http://lists.quagga.net/pipermail/quagga-dev/2005-June/003507.html"
+               einfo "   http://bugzilla.quagga.net/show_bug.cgi?id=196"
+       fi
+}