Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/quagga: ChangeLog quagga-0.99.19-r1.ebuild quagga-0.99.19.ebuild
Date: Tue, 27 Sep 2011 21:50:30
Message-Id: 20110927215012.D7FBD20036@flycatcher.gentoo.org
1 flameeyes 11/09/27 21:50:12
2
3 Modified: ChangeLog
4 Added: quagga-0.99.19-r1.ebuild
5 Removed: quagga-0.99.19.ebuild
6 Log:
7 Fix broken init scripts. Thanks to Jeroen Roovers in bug #384651.
8
9 (Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.115 net-misc/quagga/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.115&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.115&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.114&r2=1.115
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v
21 retrieving revision 1.114
22 retrieving revision 1.115
23 diff -u -r1.114 -r1.115
24 --- ChangeLog 27 Sep 2011 13:08:33 -0000 1.114
25 +++ ChangeLog 27 Sep 2011 21:50:12 -0000 1.115
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-misc/quagga
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.114 2011/09/27 13:08:33 flameeyes Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.115 2011/09/27 21:50:12 flameeyes Exp $
31 +
32 +*quagga-0.99.19-r1 (27 Sep 2011)
33 +
34 + 27 Sep 2011; Diego E. Pettenò <flameeyes@g.o> -quagga-0.99.19.ebuild,
35 + +quagga-0.99.19-r1.ebuild, files/quagga-services.init.2, files/zebra.init.3:
36 + Fix broken init scripts. Thanks to Jeroen Roovers in bug #384651.
37
38 27 Sep 2011; Diego E. Pettenò <flameeyes@g.o> metadata.xml:
39 Remove unused description for USE=realms (gone as of 0.99.18).
40
41
42
43 1.1 net-misc/quagga/quagga-0.99.19-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.19-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.19-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: quagga-0.99.19-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.19-r1.ebuild,v 1.1 2011/09/27 21:50:12 flameeyes Exp $
53
54 EAPI="4"
55
56 CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch
57
58 BACKPORTS=1
59
60 inherit eutils multilib autotools pam flag-o-matic
61
62 DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP."
63 HOMEPAGE="http://quagga.net/"
64 SRC_URI="http://www.quagga.net/download/${P}.tar.gz
65 ${BACKPORTS:+
66 http://dev.gentoo.org/~flameeyes/${PN}/${P}-backports-${BACKPORTS}.tar.bz2}
67 bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_PATCH} )"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86"
72 IUSE="caps doc ipv6 snmp pam bgpclassless ospfapi multipath tcp-zebra elibc_glibc +readline"
73
74 COMMON_DEPEND="
75 caps? ( sys-libs/libcap )
76 snmp? ( net-analyzer/net-snmp )
77 readline? (
78 sys-libs/readline
79 pam? ( sys-libs/pam )
80 )
81 !elibc_glibc? ( dev-libs/libpcre )"
82 DEPEND="${COMMON_DEPEND}
83 >=sys-devel/libtool-2.2.4"
84 RDEPEND="${COMMON_DEPEND}
85 sys-apps/openrc
86 sys-apps/iproute2"
87
88 pkg_setup() {
89 enewgroup quagga
90 enewuser quagga -1 -1 /var/empty quagga
91 }
92
93 src_prepare() {
94 [[ -n ${BACKPORTS} ]] && \
95 EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
96 epatch
97
98 # Classless prefixes for BGP
99 # http://hasso.linux.ee/doku.php/english:network:quagga
100 use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}"
101
102 eautoreconf
103 }
104
105 src_configure() {
106 local myconf=
107
108 use ospfapi \
109 && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient"
110
111 use multipath && myconf="${myconf} --enable-multipath=0"
112
113 append-flags -fno-strict-aliasing
114
115 econf \
116 --enable-user=quagga \
117 --enable-group=quagga \
118 --enable-vty-group=quagga \
119 --with-cflags="${CFLAGS}" \
120 --sysconfdir=/etc/quagga \
121 --enable-exampledir=/usr/share/doc/${PF}/samples \
122 --localstatedir=/var/run/quagga \
123 --disable-static \
124 --disable-pie \
125 \
126 $(use_enable caps capabilities) \
127 $(use_enable snmp) \
128 $(use_enable !elibc_glibc pcreposix) \
129 $(use_enable tcp-zebra) \
130 $(use_enable doc) \
131 \
132 $(use_enable readline vtysh) \
133 $(use_with pam libpam) \
134 \
135 $(use_enable ipv6) \
136 $(use_enable ipv6 ripngd) \
137 $(use_enable ipv6 ospf6d) \
138 $(use_enable ipv6 rtadv) \
139 \
140 ${myconf}
141 }
142
143 src_install() {
144 emake DESTDIR="${D}" install
145 find "${D}" -name '*.la' -delete || die
146
147 keepdir /etc/quagga
148 fowners root:quagga /etc/quagga
149 fperms 0770 /etc/quagga
150
151 newinitd "${FILESDIR}"/zebra.init.3 zebra
152
153 # install ripd as a file, symlink the rest
154 newinitd "${FILESDIR}"/quagga-services.init.2 ripd
155
156 for service in ospfd bgpd $(use ipv6 && echo ripngd ospf6d); do
157 dosym ripd /etc/init.d/${service}
158 done
159
160 use readline && newpamd "${FILESDIR}/quagga.pam" quagga
161 }
162
163 pkg_postinst() {
164 elog "Sample configuration files can be found in /usr/share/doc/${PF}/samples"
165 elog "You have to create config files in /etc/quagga before"
166 elog "starting one of the daemons."
167 elog ""
168 elog "You can pass additional options to the daemon by setting the EXTRA_OPTS"
169 elog "variable in their respective file in /etc/conf.d"
170 elog ""
171 elog "Starting from version 0.99.18, quagga no longer supports the realms patch."
172 elog "The patch was abandoned upstream and once again didn't apply; it needs a"
173 elog "dedicated maintainer, if it is still necessary."
174 }