summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-10-22 20:03:21 +0000
committerAlin Năstac <mrness@gentoo.org>2006-10-22 20:03:21 +0000
commit8f96eba2a607e68cebd57eea13a8263c0023133e (patch)
tree1ff81ccb0d0e72fd54e8cfb63997013d8e92fb5a /net-misc/quagga
parentLet portage handle the stripping of binaries. (diff)
downloadhistorical-8f96eba2a607e68cebd57eea13a8263c0023133e.tar.gz
historical-8f96eba2a607e68cebd57eea13a8263c0023133e.tar.bz2
historical-8f96eba2a607e68cebd57eea13a8263c0023133e.zip
Version bump.
Package-Manager: portage-2.1.1
Diffstat (limited to 'net-misc/quagga')
-rw-r--r--net-misc/quagga/ChangeLog7
-rw-r--r--net-misc/quagga/files/digest-quagga-0.99.56
-rw-r--r--net-misc/quagga/quagga-0.99.5.ebuild117
3 files changed, 129 insertions, 1 deletions
diff --git a/net-misc/quagga/ChangeLog b/net-misc/quagga/ChangeLog
index 04044661aaae..0a68da041442 100644
--- a/net-misc/quagga/ChangeLog
+++ b/net-misc/quagga/ChangeLog
@@ -2,7 +2,12 @@
# Copyright 1999-2006 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.43 2006/08/23 01:29:09 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.44 2006/10/22 20:03:21 mrness Exp $
+
+*quagga-0.99.5 (22 Oct 2006)
+
+ 22 Oct 2006; Alin Nastac <mrness@gentoo.org> +quagga-0.99.5.ebuild:
+ Version bump.
23 Aug 2006; Jason Wever <weeve@gentoo.org> quagga-0.98.6-r1.ebuild:
Stable on SPARC.
diff --git a/net-misc/quagga/files/digest-quagga-0.99.5 b/net-misc/quagga/files/digest-quagga-0.99.5
new file mode 100644
index 000000000000..2b1fb598fc16
--- /dev/null
+++ b/net-misc/quagga/files/digest-quagga-0.99.5
@@ -0,0 +1,6 @@
+MD5 9d3a2e063b02cd3965d5f4c0c0db1f79 quagga-0.99.5-patches-20061022.tar.gz 17661
+RMD160 2880002fccf7fb961e35265e989bd8b518d8dc0a quagga-0.99.5-patches-20061022.tar.gz 17661
+SHA256 d29683a7bde96ac17f24187bdb841c613c3d96df8529d9835a9fa4fd6f3763cf quagga-0.99.5-patches-20061022.tar.gz 17661
+MD5 3f9c71aca6faa22a889e2f84ecfd0076 quagga-0.99.5.tar.gz 2311140
+RMD160 7e9237f12bd6105b91d79c5e22f6999234126b50 quagga-0.99.5.tar.gz 2311140
+SHA256 2555535654893806d21e804406f2cf594214bb2b9661458eb5bbf00402c31c7b quagga-0.99.5.tar.gz 2311140
diff --git a/net-misc/quagga/quagga-0.99.5.ebuild b/net-misc/quagga/quagga-0.99.5.ebuild
new file mode 100644
index 000000000000..ef6c8ffe851e
--- /dev/null
+++ b/net-misc/quagga/quagga-0.99.5.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.5.ebuild,v 1.1 2006/10/22 20:03:21 mrness Exp $
+
+inherit eutils multilib autotools
+
+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-20061022.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86"
+IUSE="ipv6 snmp pam tcpmd5 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"
+
+src_unpack() {
+ unpack ${A} || die "failed to unpack sources"
+
+ cd "${S}" || die "source dir not found"
+ epatch "${WORKDIR}/patch/${P}-zebra-linkorder.patch"
+
+ # TCP MD5 for BGP patch for Linux (RFC 2385) - http://hasso.linux.ee/doku.php/english:network:rfc2385
+ use tcpmd5 && epatch "${WORKDIR}/patch/ht-20050321-0.98.2-bgp-md5_adapted.patch"
+
+ # 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
+ ewarn "TCP MD5 for BGP needs a patched kernel!"
+ ewarn "See http://hasso.linux.ee/doku.php/english:network:rfc2385 for more info."
+ fi
+}