From 7f207618e62b18a148efd705cd807b236123f8d8 Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Thu, 27 Jun 2013 20:43:19 -0500 Subject: [PATCH] quagga update --- net-misc/quagga/Manifest | 2 + net-misc/quagga/quagga-0.99.22.1-r1.ebuild | 115 +++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 net-misc/quagga/quagga-0.99.22.1-r1.ebuild diff --git a/net-misc/quagga/Manifest b/net-misc/quagga/Manifest index 344bb9e..eebd15e 100644 --- a/net-misc/quagga/Manifest +++ b/net-misc/quagga/Manifest @@ -7,4 +7,6 @@ AUX quagga.pam 975 SHA256 aa68ac97d7a951324bc3c4124a1c70f6fa88a45da860f636ac01cb AUX zebra.init.3 1433 SHA256 ce174d7b8a277f0e1c2ba2c6991b133c1cbd4f3f445406f741e1e4becc236918 SHA512 b7be568b03d5c20f3ac29669cc0cefd52fe06ab053fb3f82197d875d05835654efc64f5846d92816866e979602647a1f4d1d59806bc68e6a0e1900a4be840e34 WHIRLPOOL cff2c0cf8395ff77418653d72cfaa9e3e511aeb8ba47b17115ba5b41c2c8380b8c09d533e2ce022b849db15f56caf83c9e2661990866790504b7d8767d26191d DIST ht-20040304-classless-bgp.patch 1581 SHA256 39993890f9e31d662ed0564c732fb22392a901beb45b64261ffeadd9edf27887 SHA512 3df102d8ab88aaee1f109a2310602d6f734f2268252e5e42df752df7db7abeac526e969289481c4abfe905dcd41c35dee65196c48ac320fe9d083305451476e8 WHIRLPOOL cef99d64d52ab8c28bd672fb93dfbd8d716a31c76a5403496a6d104a5ff39531d6085134124d41fe4ff7adf895fa001cbe77b6e42846d849d6c108c81583d04e DIST quagga-0.99.21.tar.xz 1572264 SHA256 87329c3d9d4e5c0a74812e725026560c477f610eec9771e67baf513da0357246 SHA512 0f35cabfd7aa82e08f3f728660f0fe4c35a38e1146fca8ea37100e176333363cdd3cb22987cffd644f77852bfbf8b98da87310abdc575b2200415901837765cd WHIRLPOOL f745f4840671da06c6e6504c446e86c02f255f7bf5b35651aa205cf6e4021048fd3640b8b4a66a45798191105799f19aa77ea2b05d26cc2111aba22659722197 +DIST quagga-0.99.22.1.tar.xz 1608840 SHA256 fb49dce0d54b83bf4cb82cf998dc3adddd34a7579f3c7cba0572a252c010c6a6 SHA512 0ebe2fe2062a9f9db985fb3ac56df142bc35b45e5afe1b265a211cc3310920b39defab0baae805092cc20ce99e1af57ad1f03d7d65691f2150b4a23cdc70b5d4 WHIRLPOOL 783edc9b80488ce427f33728573f4056e2aa8aa4eec7f7ae509485d2dd8df9f152d549b38ec89c421a1263d9ac53583a9631116fa625a00ebd47fc796cced020 EBUILD quagga-0.99.21-r1.ebuild 3682 SHA256 b58e7842871f02615db4806918c343f3a8107e6485718ea9f9eba13df300b5a4 SHA512 e84248c92e4ba4d3cd11eeee6533825392f4bc82760bae33446350649e1aa6145e003cca6c7892e6bf79ea49a0eb64aa9f9e86cacf698057422c1886c281c56c WHIRLPOOL a82a71b531c2546e5ad1aaa945f41bb9f2482f1f0c2bf61cc167d357d403af1fd81ee4a83bf7f365b96ab50f24f8b54c8dc50e0efe12a39db52fb0b74f208f29 +EBUILD quagga-0.99.22.1-r1.ebuild 3360 SHA256 53728f5ae2d8c690892c30e5ec33494f8a45a7db7b3ed3fde552978c845c454b SHA512 f7f17049efd6c827856077f70b5124bdfddba18031f015730a7ed54927ab4cea22c4fc6844bd960cb23f3fda8f719920a2888f17ddceb83018e4f49d21835393 WHIRLPOOL fee342121b6f762915d80a360e26b89d090d15ddf827231c8d99ded1994b4ab0a90d26c562b28ddb4faa4f05f36226529e1996b5c664193f94a778ca1a0bbb20 diff --git a/net-misc/quagga/quagga-0.99.22.1-r1.ebuild b/net-misc/quagga/quagga-0.99.22.1-r1.ebuild new file mode 100644 index 0000000..65c28b6 --- /dev/null +++ b/net-misc/quagga/quagga-0.99.22.1-r1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.22.1.ebuild,v 1.9 2013/05/26 07:24:41 ago Exp $ + +EAPI="5" + +CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch + +AUTOTOOLS_AUTORECONF=1 +inherit autotools-utils eutils flag-o-matic multilib pam readme.gentoo user + +DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP" +HOMEPAGE="http://quagga.net/" +SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz + bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_PATCH} )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ppc s390 sparc x86" +IUSE="bgpclassless caps doc elibc_glibc ipv6 multipath ospfapi pam +readline snmp tcp-zebra" + +COMMON_DEPEND=" + caps? ( sys-libs/libcap ) + snmp? ( net-analyzer/net-snmp ) + readline? ( + sys-libs/readline + pam? ( sys-libs/pam ) + ) + !elibc_glibc? ( dev-libs/libpcre )" +DEPEND="${COMMON_DEPEND} + app-arch/xz-utils + >=sys-devel/libtool-2.2.4" +RDEPEND="${COMMON_DEPEND} + sys-apps/openrc + sys-apps/iproute2" + +DISABLE_AUTOFORMATTING=1 +DOC_CONTENTS="Sample configuration files can be found in /usr/share/doc/${PF}/samples +You have to create config files in /etc/quagga before +starting one of the daemons. + +You can pass additional options to the daemon by setting the EXTRA_OPTS +variable in their respective file in /etc/conf.d + +Starting from version 0.99.18, quagga no longer supports the realms patch. +The patch was abandoned upstream and once again didn't apply; it needs a +dedicated maintainer, if it is still necessary." + +pkg_setup() { + enewgroup quagga + enewuser quagga -1 -1 /var/empty quagga +} + +src_prepare() { + + # bug #437292 + epatch "${FILESDIR}/437292-ipforward.patch" + + # Classless prefixes for BGP + # http://hasso.linux.ee/doku.php/english:network:quagga + use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}" + + autotools-utils_src_prepare +} + +src_configure() { + append-flags -fno-strict-aliasing + local myeconfargs=( + --enable-user=quagga + --enable-group=quagga + --enable-vty-group=quagga + --with-cflags="${CFLAGS}" + --sysconfdir=/etc/quagga + --enable-exampledir=/usr/share/doc/${PF}/samples + --localstatedir=/run/quagga + --disable-static + --disable-pie + $(use_enable caps capabilities) + $(usex snmp '--enable-snmp' '' '' '') + $(use_enable !elibc_glibc pcreposix) + $(use_enable tcp-zebra) + $(use_enable doc) + $(usex multipath $(use_enable multipath) '' '=0' '') + $(usex ospfapi '--enable-opaque-lsa --enable-ospf-te --enable-ospfclient' '' '' '') + $(use_enable readline vtysh) + $(use_with pam libpam) + $(use_enable ipv6) + $(use_enable ipv6 babeld) # babeld does not build properly with USE="-ipv6", bug #446289 + $(use_enable ipv6 ripngd) + $(use_enable ipv6 ospf6d) + $(use_enable ipv6 rtadv) + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + readme.gentoo_create_doc + + keepdir /etc/quagga + fowners root:quagga /etc/quagga + fperms 0770 /etc/quagga + + # install zebra as a file, symlink the rest + newinitd "${FILESDIR}"/quagga-services.init.3 zebra + + for service in ripd ospfd bgpd $(use ipv6 && echo babeld ripngd ospf6d); do + dosym zebra /etc/init.d/${service} + done + + use readline && newpamd "${FILESDIR}/quagga.pam" quagga + + insinto /etc/logrotate.d + newins redhat/quagga.logrotate quagga +}