1 |
flameeyes 10/09/05 17:09:37 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: quagga-0.99.17.ebuild |
5 |
Removed: quagga-0.99.14.ebuild quagga-0.99.15.ebuild |
6 |
quagga-0.99.13.ebuild |
7 |
Log: |
8 |
Version bump (bug #311865), remove old non-stable ebuilds as they are vulnerable (bug #334303). Take co-maintainership of the package; change the libcap patch (sent upstream) and avoid using a tarball for the patches for now; the other two feature, optional patches are fetched from their respective websites if the flags are enabled; rewrite init scripts almost from scratch so that they recreate their state directory if missing, and make all the services, beside zebra, share the same init script file, drop --quiet, make sure that s-s-d knows about the pidfile as well; install sample files in the documentation directory and not /etc; only use libpcre if not using glibc (could actually be unneeded on other systems as well); don't add /usr/lib/quagga to the library path (the build system will take care of using rpath; if the libraries have to be linked against from third parties, open a bug as they should be in /usr/lib directly). |
9 |
|
10 |
(Portage version: 2.2_rc75/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.86 net-misc/quagga/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.86&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.86&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.85&r2=1.86 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v |
22 |
retrieving revision 1.85 |
23 |
retrieving revision 1.86 |
24 |
diff -u -r1.85 -r1.86 |
25 |
--- ChangeLog 30 Aug 2009 08:13:41 -0000 1.85 |
26 |
+++ ChangeLog 5 Sep 2010 17:09:36 -0000 1.86 |
27 |
@@ -1,8 +1,29 @@ |
28 |
# ChangeLog for net-misc/quagga |
29 |
-# Copyright 1999-2009 Gentoo Foundation |
30 |
+# Copyright 1999-2010 Gentoo Foundation |
31 |
# Copyright 2003-2004 DataCore GmbH |
32 |
# Distributed under the terms of the GNU General Public License v2 |
33 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.85 2009/08/30 08:13:41 mrness Exp $ |
34 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.86 2010/09/05 17:09:36 flameeyes Exp $ |
35 |
+ |
36 |
+*quagga-0.99.17 (05 Sep 2010) |
37 |
+ |
38 |
+ 05 Sep 2010; Diego E. Pettenò <flameeyes@g.o> |
39 |
+ -quagga-0.99.13.ebuild, -quagga-0.99.14.ebuild, |
40 |
+ +files/quagga-0.99.14-fix-ipremove.patch, -quagga-0.99.15.ebuild, |
41 |
+ +quagga-0.99.17.ebuild, +files/quagga-0.99.17-libcap.patch, |
42 |
+ +files/quagga-services.init, +files/zebra.init.2, metadata.xml: |
43 |
+ Version bump (bug #311865), remove old non-stable ebuilds as they are |
44 |
+ vulnerable (bug #334303). Take co-maintainership of the package; change |
45 |
+ the libcap patch (sent upstream) and avoid using a tarball for the patches |
46 |
+ for now; the other two feature, optional patches are fetched from their |
47 |
+ respective websites if the flags are enabled; rewrite init scripts almost |
48 |
+ from scratch so that they recreate their state directory if missing, and |
49 |
+ make all the services, beside zebra, share the same init script file, drop |
50 |
+ --quiet, make sure that s-s-d knows about the pidfile as well; install |
51 |
+ sample files in the documentation directory and not /etc; only use libpcre |
52 |
+ if not using glibc (could actually be unneeded on other systems as well); |
53 |
+ don't add /usr/lib/quagga to the library path (the build system will take |
54 |
+ care of using rpath; if the libraries have to be linked against from third |
55 |
+ parties, open a bug as they should be in /usr/lib directly). |
56 |
|
57 |
*quagga-0.99.15 (30 Aug 2009) |
58 |
|
59 |
|
60 |
|
61 |
|
62 |
1.7 net-misc/quagga/metadata.xml |
63 |
|
64 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/metadata.xml?rev=1.7&view=markup |
65 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/metadata.xml?rev=1.7&content-type=text/plain |
66 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/metadata.xml?r1=1.6&r2=1.7 |
67 |
|
68 |
Index: metadata.xml |
69 |
=================================================================== |
70 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/metadata.xml,v |
71 |
retrieving revision 1.6 |
72 |
retrieving revision 1.7 |
73 |
diff -u -r1.6 -r1.7 |
74 |
--- metadata.xml 6 Jan 2009 13:45:57 -0000 1.6 |
75 |
+++ metadata.xml 5 Sep 2010 17:09:36 -0000 1.7 |
76 |
@@ -6,14 +6,47 @@ |
77 |
<email>mrness@g.o</email> |
78 |
<description>Primary Maintainer (until Amir returns...)</description> |
79 |
</maintainer> |
80 |
- <longdescription>Quagga is a modern fork of Zebra. Quagga is a routing software package that provides TCP/IP based routing services with routing protocols support such as RIPv1, RIPv2, RIPng, OSPFv2, OSPFv3, BGP-4, and BGP-4+ (*note Supported RFC::). Quagga also supports special BGP Route Reflector and Route Server behavior. In addition to traditional IPv4 routing protocols, Quagga also supports IPv6 routing protocols. With SNMP daemon which supports SMUX protocol, Quagga provides routing protocol MIBs (*note SNMP Support::). Furthermore Quagga supports OSPFAPI (*note OSPFAPI Support::), a API interface to the OSPF LSDB. It supports inspection as well as injection of normal and opaque OSPF LSAs. Applications like SRRD - The Service Rounting Redundancy Daemon - can make use of OSPFAPI to inject opaque data into the OSPF routing domain. SRRD, for example, implements a cluster server by using the OSPFAPI to flood service state information into the routing domain.</longdescri |
81 |
ption> |
82 |
+ <maintainer> |
83 |
+ <email>flameeyes@×××××.com</email> |
84 |
+ </maintainer> |
85 |
+ <longdescription> |
86 |
+ Quagga is a modern fork of Zebra. Quagga is a routing software package that provides TCP/IP |
87 |
+ based routing services with routing protocols support such as RIPv1, RIPv2, RIPng, OSPFv2, |
88 |
+ OSPFv3, BGP-4, and BGP-4+ (*note Supported RFC::). Quagga also supports special BGP Route |
89 |
+ Reflector and Route Server behavior. In addition to traditional IPv4 routing protocols, Quagga |
90 |
+ also supports IPv6 routing protocols. With SNMP daemon which supports SMUX protocol, Quagga |
91 |
+ provides routing protocol MIBs (*note SNMP Support::). Furthermore Quagga supports OSPFAPI |
92 |
+ (*note OSPFAPI Support::), a API interface to the OSPF LSDB. It supports inspection as well as |
93 |
+ injection of normal and opaque OSPF LSAs. Applications like SRRD - The Service Rounting |
94 |
+ Redundancy Daemon - can make use of OSPFAPI to inject opaque data into the OSPF routing |
95 |
+ domain. SRRD, for example, implements a cluster server by using the OSPFAPI to flood service |
96 |
+ state information into the routing domain. |
97 |
+ </longdescription> |
98 |
<use> |
99 |
- <flag name="bgpclassless">Enable classless prefixes for BGP</flag> |
100 |
- <flag name="fix-connected-rt">Remove interface connected routes from kernel table on link loss so that no packets get routed to downed interface</flag> |
101 |
- <flag name="multipath">Enable multipath routes support for any number of routes</flag> |
102 |
- <flag name="ospfapi">Enable OSPFAPI support for client applications accessing the OSPF link state database</flag> |
103 |
- <flag name="realms">Enable realms support (see http://vcalinus.gemenii.ro/quaggarealms.html)</flag> |
104 |
- <flag name="tcpmd5">Enable TCP MD5 checksumming</flag> |
105 |
- <flag name="tcp-zebra">Enable TCP zserv interface on port 2600 for Zebra/protocol-daemon communication. Unix domain sockets are chosen otherwise.</flag> |
106 |
+ <flag name="bgpclassless"> |
107 |
+ Apply unofficial patch to enable classless prefixes for BGP. Patch and information to be found |
108 |
+ at http://hasso.linux.ee/doku.php/english:network:quagga |
109 |
+ </flag> |
110 |
+ <flag name="fix-connected-rt"> |
111 |
+ Remove interface connected routes from kernel table on link loss so that no packets get routed |
112 |
+ to downed interface |
113 |
+ </flag> |
114 |
+ <flag name="multipath"> |
115 |
+ Enable multipath routes support for any number of routes |
116 |
+ </flag> |
117 |
+ <flag name="ospfapi"> |
118 |
+ Enable OSPFAPI support for client applications accessing the OSPF link state database |
119 |
+ </flag> |
120 |
+ <flag name="realms"> |
121 |
+ Apply unofficial patch to enable realms support. Patch and information to be found at |
122 |
+ http://vcalinus.gemenii.ro/quaggarealms.html and http://linux.mantech.ro/quagga+realm_en.php |
123 |
+ </flag> |
124 |
+ <flag name="tcpmd5"> |
125 |
+ Enable TCP MD5 checksumming |
126 |
+ </flag> |
127 |
+ <flag name="tcp-zebra"> |
128 |
+ Enable TCP zserv interface on port 2600 for Zebra/protocol-daemon communication. Unix domain |
129 |
+ sockets are chosen otherwise. |
130 |
+ </flag> |
131 |
</use> |
132 |
</pkgmetadata> |
133 |
|
134 |
|
135 |
|
136 |
1.1 net-misc/quagga/quagga-0.99.17.ebuild |
137 |
|
138 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.17.ebuild?rev=1.1&view=markup |
139 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.17.ebuild?rev=1.1&content-type=text/plain |
140 |
|
141 |
Index: quagga-0.99.17.ebuild |
142 |
=================================================================== |
143 |
# Copyright 1999-2010 Gentoo Foundation |
144 |
# Distributed under the terms of the GNU General Public License v2 |
145 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.17.ebuild,v 1.1 2010/09/05 17:09:36 flameeyes Exp $ |
146 |
|
147 |
EAPI="2" |
148 |
|
149 |
CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch |
150 |
REALMS_PATCH=quagga-0.99.14-realms-test2.diff |
151 |
|
152 |
inherit eutils multilib autotools pam |
153 |
|
154 |
DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP." |
155 |
HOMEPAGE="http://quagga.net/" |
156 |
SRC_URI="http://www.quagga.net/download/${P}.tar.gz |
157 |
bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_PATCH} ) |
158 |
realms? ( http://linux.mantech.ro/download/quagga/${REALMS_PATCH} )" |
159 |
|
160 |
LICENSE="GPL-2" |
161 |
SLOT="0" |
162 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86" |
163 |
IUSE="caps doc ipv6 snmp pam bgpclassless ospfapi realms multipath tcp-zebra elibc_glibc" |
164 |
|
165 |
COMMON_DEPEND="sys-libs/readline |
166 |
caps? ( sys-libs/libcap ) |
167 |
snmp? ( net-analyzer/net-snmp ) |
168 |
pam? ( sys-libs/pam ) |
169 |
!elibc_glibc? ( dev-libs/libpcre )" |
170 |
DEPEND="${COMMON_DEPEND} |
171 |
>=sys-devel/libtool-2.2.4" |
172 |
RDEPEND="${COMMON_DEPEND} |
173 |
sys-apps/iproute2" |
174 |
|
175 |
pkg_setup() { |
176 |
enewgroup quagga |
177 |
enewuser quagga -1 -1 /var/empty quagga |
178 |
} |
179 |
|
180 |
src_prepare() { |
181 |
# https://bugzilla.quagga.net/show_bug.cgi?id=486 |
182 |
epatch "${FILESDIR}/${PN}-0.99.14-fix-ipremove.patch" |
183 |
|
184 |
epatch "${FILESDIR}/${P}-libcap.patch" |
185 |
|
186 |
# Classless prefixes for BGP - http://hasso.linux.ee/doku.php/english:network:quagga |
187 |
use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}" |
188 |
|
189 |
# Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html |
190 |
use realms && epatch "${DISTDIR}/${REALMS_PATCH}" |
191 |
|
192 |
eautoreconf |
193 |
} |
194 |
|
195 |
src_configure() { |
196 |
local myconf="--disable-static \ |
197 |
$(use_enable caps capabilities) \ |
198 |
$(use_enable snmp) \ |
199 |
$(use_with pam libpam) \ |
200 |
$(use_enable !elibc_glibc pcreposix) \ |
201 |
$(use_enable tcp-zebra) |
202 |
$(use_enable doc)" |
203 |
use ipv6 \ |
204 |
&& myconf="${myconf} --enable-ipv6 --enable-ripngd --enable-ospf6d --enable-rtadv" \ |
205 |
|| myconf="${myconf} --disable-ipv6 --disable-ripngd --disable-ospf6d" |
206 |
use ospfapi \ |
207 |
&& myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient" |
208 |
use realms && myconf="${myconf} --enable-realms" |
209 |
use multipath && myconf="${myconf} --enable-multipath=0" |
210 |
|
211 |
econf \ |
212 |
--enable-user=quagga \ |
213 |
--enable-group=quagga \ |
214 |
--enable-vty-group=quagga \ |
215 |
--with-cflags="${CFLAGS}" \ |
216 |
--enable-vtysh \ |
217 |
--sysconfdir=/etc/quagga \ |
218 |
--enable-exampledir=/usr/share/doc/${PF}/samples \ |
219 |
--localstatedir=/var/run/quagga \ |
220 |
--libdir=/usr/$(get_libdir)/quagga \ |
221 |
${myconf} \ |
222 |
|| die "configure failed" |
223 |
} |
224 |
|
225 |
src_install() { |
226 |
emake DESTDIR="${D}" install || die "emake install failed" |
227 |
|
228 |
keepdir /etc/quagga || die |
229 |
fowners root:quagga /etc/quagga || die |
230 |
fperms 0770 /etc/quagga || die |
231 |
|
232 |
newinitd "${FILESDIR}"/zebra.init.2 zebra || die |
233 |
|
234 |
# install ripd as a file, symlink the rest |
235 |
newinitd "${FILESDIR}"/quagga-services.init ripd || die |
236 |
|
237 |
for service in ospfd bgpd $(use ipv6 && echo ripngd ospf6d); do |
238 |
ln -s ripd "${D}"/etc/init.d/${service} || die |
239 |
done |
240 |
|
241 |
newpamd "${FILESDIR}/quagga.pam" quagga |
242 |
} |
243 |
|
244 |
pkg_postinst() { |
245 |
elog "Sample configuration files can be found in /usr/share/doc/${PF}/samples" |
246 |
elog "You have to create config files in /etc/quagga before" |
247 |
elog "starting one of the daemons." |
248 |
elog "" |
249 |
elog "You can pass additional options to the daemon by setting the EXTRA_OPTS" |
250 |
elog "variable in their respective file in /etc/conf.d" |
251 |
} |