summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2007-05-02 22:01:36 +0000
committerAlin Năstac <mrness@gentoo.org>2007-05-02 22:01:36 +0000
commit4f6db375e5d7ce0a71af08a528d0a9033458abb0 (patch)
tree1ceb509852b49b5f968fe94e043c4e5662f0fab7 /net-misc/quagga
parentAdd bgpas4 USE flag for net-misc/quagga (#176657). (diff)
downloadgentoo-2-4f6db375e5d7ce0a71af08a528d0a9033458abb0.tar.gz
gentoo-2-4f6db375e5d7ce0a71af08a528d0a9033458abb0.tar.bz2
gentoo-2-4f6db375e5d7ce0a71af08a528d0a9033458abb0.zip
Version bump. Add support for 32-bit AS numbers, activated through bgpas4 (#176657).
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-misc/quagga')
-rw-r--r--net-misc/quagga/ChangeLog8
-rw-r--r--net-misc/quagga/files/digest-quagga-0.99.76
-rw-r--r--net-misc/quagga/quagga-0.99.7.ebuild146
3 files changed, 159 insertions, 1 deletions
diff --git a/net-misc/quagga/ChangeLog b/net-misc/quagga/ChangeLog
index ac0660407e0e..141ac2863307 100644
--- a/net-misc/quagga/ChangeLog
+++ b/net-misc/quagga/ChangeLog
@@ -2,7 +2,13 @@
# Copyright 1999-2007 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.58 2007/05/01 20:59:13 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.59 2007/05/02 22:01:36 mrness Exp $
+
+*quagga-0.99.7 (02 May 2007)
+
+ 02 May 2007; Alin Năstac <mrness@gentoo.org> +quagga-0.99.7.ebuild:
+ Version bump. Add support for 32-bit AS numbers, activated through bgpas4
+ (#176657).
01 May 2007; Alin Năstac <mrness@gentoo.org> -quagga-0.98.6-r1.ebuild,
quagga-0.99.6-r2.ebuild:
diff --git a/net-misc/quagga/files/digest-quagga-0.99.7 b/net-misc/quagga/files/digest-quagga-0.99.7
new file mode 100644
index 000000000000..859e505eccef
--- /dev/null
+++ b/net-misc/quagga/files/digest-quagga-0.99.7
@@ -0,0 +1,6 @@
+MD5 982bb9c0df963ce9e0b61e8318aa24e7 quagga-0.99.7-patches-20070502.tar.gz 47738
+RMD160 d9652ec8baa6d5cbf599f828ef9d03ace6af206a quagga-0.99.7-patches-20070502.tar.gz 47738
+SHA256 059f219c4c97f6ee4495c55d7a6f84f9d156ddb8dd3aac4d54c61ab678e072d1 quagga-0.99.7-patches-20070502.tar.gz 47738
+MD5 f448281c50007408ce92c5d8e2107abc quagga-0.99.7.tar.gz 2350372
+RMD160 f7ae94f2b5f4782efa7b70bd59924492618133fe quagga-0.99.7.tar.gz 2350372
+SHA256 fd258e4503646129ca77f6fe9c16b69f36f320256768b84dbabd2e4915ab8eb4 quagga-0.99.7.tar.gz 2350372
diff --git a/net-misc/quagga/quagga-0.99.7.ebuild b/net-misc/quagga/quagga-0.99.7.ebuild
new file mode 100644
index 000000000000..3905c3445e16
--- /dev/null
+++ b/net-misc/quagga/quagga-0.99.7.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.7.ebuild,v 1.1 2007/05/02 22:01:36 mrness Exp $
+
+WANT_AUTOMAKE="latest"
+WANT_AUTOCONF="latest"
+
+inherit eutils multilib autotools linux-info
+
+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-20070502.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86"
+IUSE="ipv6 snmp pam tcpmd5 bgpas4 bgpclassless ospfapi realms multipath tcp-zebra"
+RESTRICT="userpriv"
+
+DEPEND=">=sys-libs/libcap-1.10-r5
+ snmp? ( net-analyzer/net-snmp )
+ pam? ( sys-libs/pam )"
+RDEPEND="${DEPEND}
+ sys-apps/iproute2"
+
+pkg_setup() {
+ if use tcpmd5 ; then
+ get_version || get_running_version
+ fi
+ return 0
+}
+
+src_unpack() {
+ unpack ${A} || die "failed to unpack sources"
+
+ cd "${S}" || die "source dir not found"
+ epatch "${WORKDIR}/patch/${P}-link-libcap.patch"
+
+ # AS4 support (original found at http://quagga.ncc.eurodata.de)
+ use bgpas4 && epatch "${WORKDIR}/patch/quagga-cvs20070307-as4-v05_adapted.patch"
+
+ if use tcpmd5 ; then
+ if kernel_is lt 2 6 20 ; then
+ # TCP MD5 for BGP patch for Linux (RFC 2385)
+ # original found at http://hasso.linux.ee/doku.php/english:network:rfc2385
+ epatch "${WORKDIR}/patch/ht-20050321-${PV}-bgp-md5_adapted.patch"
+ else
+ # TCP MD5 in-kernel support for kernels >=2.6.20 (by Leigh Brown)
+ # original found at http://www.solinno.co.uk/md5sig/quagga_linux-2.6.20_md5sig.diff
+ epatch "${WORKDIR}/patch/quagga_linux-2.6.20_md5sig_adapted.diff"
+ fi
+ fi
+
+ # Classless prefixes for BGP - http://hasso.linux.ee/doku.php/english:network:quagga
+ use bgpclassless && epatch "${WORKDIR}/patch/ht-20040304-classless-bgp_adapted.patch"
+
+ # Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html
+ use realms && epatch "${WORKDIR}/patch/${P}-realms.diff"
+
+ eautoreconf
+}
+
+src_compile() {
+ 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"
+ use multipath && myconf="${myconf} --enable-multipath=0"
+ use tcp-zebra && myconf="${myconf} --enable-tcp-zebra"
+
+ econf \
+ --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
+
+ 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
+ if kernel_is lt 2 6 20; then
+ ewarn "TCP MD5 for BGP needs a patched kernel!"
+ ewarn "See http://hasso.linux.ee/doku.php/english:network:rfc2385 for more info."
+ else
+ CONFIG_CHECK="~TCP_MD5SIG"
+ local ERROR_TCP_MD5SIG="CONFIG_TCP_MD5SIG:\t missing TCP MD5 signature support (RFC2385)"
+
+ check_extra_config
+ fi
+ fi
+}