diff options
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/quagga/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/quagga/files/quagga-services.init | 43 | ||||
-rw-r--r-- | net-misc/quagga/files/zebra.init.2 | 47 | ||||
-rw-r--r-- | net-misc/quagga/quagga-0.99.18.ebuild | 123 | ||||
-rw-r--r-- | net-misc/quagga/quagga-0.99.19-r1.ebuild | 125 |
5 files changed, 5 insertions, 339 deletions
diff --git a/net-misc/quagga/ChangeLog b/net-misc/quagga/ChangeLog index da1cb3b055d6..aa2e3ae5dbb4 100644 --- a/net-misc/quagga/ChangeLog +++ b/net-misc/quagga/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/quagga # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.124 2011/10/03 18:22:17 xarthisius Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.125 2011/10/17 11:27:41 flameeyes Exp $ + + 17 Oct 2011; Diego E. Pettenò <flameeyes@gentoo.org> -quagga-0.99.18.ebuild, + -quagga-0.99.19-r1.ebuild, -files/quagga-services.init, -files/zebra.init.2: + Cleanup old. 03 Oct 2011; Kacper Kowalik <xarthisius@gentoo.org> quagga-0.99.20.ebuild: ppc stable wrt #384651 diff --git a/net-misc/quagga/files/quagga-services.init b/net-misc/quagga/files/quagga-services.init deleted file mode 100644 index 460a64da34a4..000000000000 --- a/net-misc/quagga/files/quagga-services.init +++ /dev/null @@ -1,43 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/quagga-services.init,v 1.2 2010/10/12 11:42:55 flameeyes Exp $ - -depend() { - need zebra - # this could be config file-dependent on OpenRC, but for now it - # will do. - use logger -} - -start() { - if [ ! -e /etc/quagga/${SVCNAME}.conf ] ; then - eerror "Before starting ${SVCNAME} you have to configure it, by creating" - eerror "a /etc/quagga/${SVCNAME}.conf file." - eerror "" - eerror "A sample file has been installed in `ls /usr/share/doc/quagga-*/samples/${SVCNAME}.conf.sample`" - return 1 - fi - - if [ ! -d /var/run/quagga ] ; then - mkdir -p /var/run/quagga - chown quagga:quagga /var/run/quagga - chmod 0750 /var/run/quagga - fi - - ebegin "Starting ${SVCNAME}" - start-stop-daemon \ - --start --exec /usr/sbin/${SVCNAME} \ - --pidfile /var/run/quagga/${SVCNAME}.pid \ - -- -d -f /etc/quagga/${SVCNAME}.conf ${EXTRA_OPTS} \ - --pid_file /var/run/quagga/${SVCNAME}.pid - - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop \ - --pidfile /var/run/quagga/${SVCNAME}.pid - eend $? -} diff --git a/net-misc/quagga/files/zebra.init.2 b/net-misc/quagga/files/zebra.init.2 deleted file mode 100644 index 8423febd19b5..000000000000 --- a/net-misc/quagga/files/zebra.init.2 +++ /dev/null @@ -1,47 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/zebra.init.2,v 1.2 2010/10/12 11:42:55 flameeyes Exp $ - -depend() { - need net - # this could be config file-dependent on OpenRC, but for now it - # will do. - use logger -} - -start() { - if [ ! -e /etc/quagga/${SVCNAME}.conf ] ; then - eerror "Before starting ${SVCNAME} you have to configure it, by creating" - eerror "a /etc/quagga/${SVCNAME}.conf file." - eerror "" - eerror "A sample file has been installed in `ls /usr/share/doc/quagga-*/samples/${SVCNAME}.conf.sample`" - return 1 - fi - - if [ ! -d /var/run/quagga ] ; then - mkdir -p /var/run/quagga - chown quagga:quagga /var/run/quagga - chmod 0750 /var/run/quagga - fi - - ebegin "Cleaning up stale zebra routes..." - ip route flush proto zebra - eend $? - - ebegin "Starting ${SVCNAME}" - start-stop-daemon \ - --start --exec /usr/sbin/${SVCNAME} \ - --pidfile /var/run/quagga/${SVCNAME}.pid \ - -- -d -f /etc/quagga/${SVCNAME}.conf ${EXTRA_OPTS} \ - --pid_file /var/run/quagga/${SVCNAME}.pid - - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop \ - --pidfile /var/run/quagga/${SVCNAME}.pid - eend $? -} diff --git a/net-misc/quagga/quagga-0.99.18.ebuild b/net-misc/quagga/quagga-0.99.18.ebuild deleted file mode 100644 index ab77d988ef58..000000000000 --- a/net-misc/quagga/quagga-0.99.18.ebuild +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.18.ebuild,v 1.9 2011/04/02 15:43:11 armin76 Exp $ - -EAPI="2" - -CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch - -BACKPORTS=2 - -inherit eutils multilib autotools pam - -DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP." -HOMEPAGE="http://quagga.net/" -SRC_URI="http://www.quagga.net/download/${P}.tar.gz - ${BACKPORTS:+ - http://dev.gentoo.org/~flameeyes/${PN}/${P}-backports-${BACKPORTS}.tar.bz2} - 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="caps doc ipv6 snmp pam bgpclassless ospfapi multipath tcp-zebra elibc_glibc +readline" - -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} - >=sys-devel/libtool-2.2.4" -RDEPEND="${COMMON_DEPEND} - sys-apps/iproute2" - -pkg_setup() { - enewgroup quagga - enewuser quagga -1 -1 /var/empty quagga -} - -src_prepare() { - [[ -n ${BACKPORTS} ]] && \ - EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ - epatch - - # Classless prefixes for BGP - # http://hasso.linux.ee/doku.php/english:network:quagga - use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}" - - eautoreconf -} - -src_configure() { - local myconf= - - use ospfapi \ - && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient" - - use multipath && myconf="${myconf} --enable-multipath=0" - - econf \ - --enable-user=quagga \ - --enable-group=quagga \ - --enable-vty-group=quagga \ - --with-cflags="${CFLAGS}" \ - --sysconfdir=/etc/quagga \ - --enable-exampledir=/usr/share/doc/${PF}/samples \ - --localstatedir=/var/run/quagga \ - --disable-static \ - --disable-pie \ - \ - $(use_enable caps capabilities) \ - $(use_enable snmp) \ - $(use_enable !elibc_glibc pcreposix) \ - $(use_enable tcp-zebra) \ - $(use_enable doc) \ - \ - $(use_enable readline vtysh) \ - $(use_with pam libpam) \ - \ - $(use_enable ipv6) \ - $(use_enable ipv6 ripngd) \ - $(use_enable ipv6 ospf6d) \ - $(use_enable ipv6 rtadv) \ - \ - ${myconf} \ - || die "configure failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - find "${D}" -name '*.la' -delete || die - - keepdir /etc/quagga || die - fowners root:quagga /etc/quagga || die - fperms 0770 /etc/quagga || die - - newinitd "${FILESDIR}"/zebra.init.2 zebra || die - - # install ripd as a file, symlink the rest - newinitd "${FILESDIR}"/quagga-services.init ripd || die - - for service in ospfd bgpd $(use ipv6 && echo ripngd ospf6d); do - ln -s ripd "${D}"/etc/init.d/${service} || die - done - - use readline && newpamd "${FILESDIR}/quagga.pam" quagga -} - -pkg_postinst() { - elog "Sample configuration files can be found in /usr/share/doc/${PF}/samples" - elog "You have to create config files in /etc/quagga before" - elog "starting one of the daemons." - elog "" - elog "You can pass additional options to the daemon by setting the EXTRA_OPTS" - elog "variable in their respective file in /etc/conf.d" - elog "" - elog "Starting from version 0.99.18, quagga no longer supports the realms patch." - elog "The patch was abandoned upstream and once again didn't apply; it needs a" - elog "dedicated maintainer, if it is still necessary." -} diff --git a/net-misc/quagga/quagga-0.99.19-r1.ebuild b/net-misc/quagga/quagga-0.99.19-r1.ebuild deleted file mode 100644 index a88581d2d038..000000000000 --- a/net-misc/quagga/quagga-0.99.19-r1.ebuild +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.19-r1.ebuild,v 1.3 2011/09/28 04:36:45 xarthisius Exp $ - -EAPI="4" - -CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch - -BACKPORTS=1 - -inherit eutils multilib autotools pam flag-o-matic - -DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP." -HOMEPAGE="http://quagga.net/" -SRC_URI="http://www.quagga.net/download/${P}.tar.gz - ${BACKPORTS:+ - http://dev.gentoo.org/~flameeyes/${PN}/${P}-backports-${BACKPORTS}.tar.bz2} - 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="caps doc ipv6 snmp pam bgpclassless ospfapi multipath tcp-zebra elibc_glibc +readline" - -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} - >=sys-devel/libtool-2.2.4" -RDEPEND="${COMMON_DEPEND} - sys-apps/openrc - sys-apps/iproute2" - -pkg_setup() { - enewgroup quagga - enewuser quagga -1 -1 /var/empty quagga -} - -src_prepare() { - [[ -n ${BACKPORTS} ]] && \ - EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \ - epatch - - # Classless prefixes for BGP - # http://hasso.linux.ee/doku.php/english:network:quagga - use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}" - - eautoreconf -} - -src_configure() { - local myconf= - - use ospfapi \ - && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient" - - use multipath && myconf="${myconf} --enable-multipath=0" - - append-flags -fno-strict-aliasing - - econf \ - --enable-user=quagga \ - --enable-group=quagga \ - --enable-vty-group=quagga \ - --with-cflags="${CFLAGS}" \ - --sysconfdir=/etc/quagga \ - --enable-exampledir=/usr/share/doc/${PF}/samples \ - --localstatedir=/var/run/quagga \ - --disable-static \ - --disable-pie \ - \ - $(use_enable caps capabilities) \ - $(use_enable snmp) \ - $(use_enable !elibc_glibc pcreposix) \ - $(use_enable tcp-zebra) \ - $(use_enable doc) \ - \ - $(use_enable readline vtysh) \ - $(use_with pam libpam) \ - \ - $(use_enable ipv6) \ - $(use_enable ipv6 ripngd) \ - $(use_enable ipv6 ospf6d) \ - $(use_enable ipv6 rtadv) \ - \ - ${myconf} -} - -src_install() { - emake DESTDIR="${D}" install - find "${D}" -name '*.la' -delete || die - - keepdir /etc/quagga - fowners root:quagga /etc/quagga - fperms 0770 /etc/quagga - - newinitd "${FILESDIR}"/zebra.init.3 zebra - - # install ripd as a file, symlink the rest - newinitd "${FILESDIR}"/quagga-services.init.2 ripd - - for service in ospfd bgpd $(use ipv6 && echo ripngd ospf6d); do - dosym ripd /etc/init.d/${service} - done - - use readline && newpamd "${FILESDIR}/quagga.pam" quagga -} - -pkg_postinst() { - elog "Sample configuration files can be found in /usr/share/doc/${PF}/samples" - elog "You have to create config files in /etc/quagga before" - elog "starting one of the daemons." - elog "" - elog "You can pass additional options to the daemon by setting the EXTRA_OPTS" - elog "variable in their respective file in /etc/conf.d" - elog "" - elog "Starting from version 0.99.18, quagga no longer supports the realms patch." - elog "The patch was abandoned upstream and once again didn't apply; it needs a" - elog "dedicated maintainer, if it is still necessary." -} |