1 |
flameeyes 10/09/06 03:31:07 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: quagga-0.99.17-r1.ebuild |
5 |
Removed: quagga-0.99.17.ebuild |
6 |
Log: |
7 |
Revision bump; seems like rpath does not work too well, but since it's just two libraries and they do install headers, avoid installing in a subdirectory (if needed, will be fixed upstream instead). Also delete pointless .la files. |
8 |
|
9 |
(Portage version: 2.2_rc75/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.87 net-misc/quagga/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.87&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.87&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.86&r2=1.87 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v |
21 |
retrieving revision 1.86 |
22 |
retrieving revision 1.87 |
23 |
diff -u -r1.86 -r1.87 |
24 |
--- ChangeLog 5 Sep 2010 17:09:36 -0000 1.86 |
25 |
+++ ChangeLog 6 Sep 2010 03:31:07 -0000 1.87 |
26 |
@@ -2,7 +2,16 @@ |
27 |
# Copyright 1999-2010 Gentoo Foundation |
28 |
# Copyright 2003-2004 DataCore GmbH |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.86 2010/09/05 17:09:36 flameeyes Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.87 2010/09/06 03:31:07 flameeyes Exp $ |
32 |
+ |
33 |
+*quagga-0.99.17-r1 (06 Sep 2010) |
34 |
+ |
35 |
+ 06 Sep 2010; Diego E. Pettenò <flameeyes@g.o> |
36 |
+ -quagga-0.99.17.ebuild, +quagga-0.99.17-r1.ebuild: |
37 |
+ Revision bump; seems like rpath does not work too well, but since it's |
38 |
+ just two libraries and they do install headers, avoid installing in a |
39 |
+ subdirectory (if needed, will be fixed upstream instead). Also delete |
40 |
+ pointless .la files. |
41 |
|
42 |
*quagga-0.99.17 (05 Sep 2010) |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
1.1 net-misc/quagga/quagga-0.99.17-r1.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.17-r1.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.17-r1.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: quagga-0.99.17-r1.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2010 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.17-r1.ebuild,v 1.1 2010/09/06 03:31:07 flameeyes Exp $ |
57 |
|
58 |
EAPI="2" |
59 |
|
60 |
CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch |
61 |
REALMS_PATCH=quagga-0.99.14-realms-test2.diff |
62 |
|
63 |
inherit eutils multilib autotools pam |
64 |
|
65 |
DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP." |
66 |
HOMEPAGE="http://quagga.net/" |
67 |
SRC_URI="http://www.quagga.net/download/${P}.tar.gz |
68 |
bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_PATCH} ) |
69 |
realms? ( http://linux.mantech.ro/download/quagga/${REALMS_PATCH} )" |
70 |
|
71 |
LICENSE="GPL-2" |
72 |
SLOT="0" |
73 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86" |
74 |
IUSE="caps doc ipv6 snmp pam bgpclassless ospfapi realms multipath tcp-zebra elibc_glibc" |
75 |
|
76 |
COMMON_DEPEND="sys-libs/readline |
77 |
caps? ( sys-libs/libcap ) |
78 |
snmp? ( net-analyzer/net-snmp ) |
79 |
pam? ( sys-libs/pam ) |
80 |
!elibc_glibc? ( dev-libs/libpcre )" |
81 |
DEPEND="${COMMON_DEPEND} |
82 |
>=sys-devel/libtool-2.2.4" |
83 |
RDEPEND="${COMMON_DEPEND} |
84 |
sys-apps/iproute2" |
85 |
|
86 |
pkg_setup() { |
87 |
enewgroup quagga |
88 |
enewuser quagga -1 -1 /var/empty quagga |
89 |
} |
90 |
|
91 |
src_prepare() { |
92 |
# https://bugzilla.quagga.net/show_bug.cgi?id=486 |
93 |
epatch "${FILESDIR}/${PN}-0.99.14-fix-ipremove.patch" |
94 |
|
95 |
epatch "${FILESDIR}/${P}-libcap.patch" |
96 |
|
97 |
# Classless prefixes for BGP - http://hasso.linux.ee/doku.php/english:network:quagga |
98 |
use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}" |
99 |
|
100 |
# Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html |
101 |
use realms && epatch "${DISTDIR}/${REALMS_PATCH}" |
102 |
|
103 |
eautoreconf |
104 |
} |
105 |
|
106 |
src_configure() { |
107 |
local myconf="--disable-static \ |
108 |
$(use_enable caps capabilities) \ |
109 |
$(use_enable snmp) \ |
110 |
$(use_with pam libpam) \ |
111 |
$(use_enable !elibc_glibc pcreposix) \ |
112 |
$(use_enable tcp-zebra) |
113 |
$(use_enable doc)" |
114 |
use ipv6 \ |
115 |
&& myconf="${myconf} --enable-ipv6 --enable-ripngd --enable-ospf6d --enable-rtadv" \ |
116 |
|| myconf="${myconf} --disable-ipv6 --disable-ripngd --disable-ospf6d" |
117 |
use ospfapi \ |
118 |
&& myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient" |
119 |
use realms && myconf="${myconf} --enable-realms" |
120 |
use multipath && myconf="${myconf} --enable-multipath=0" |
121 |
|
122 |
econf \ |
123 |
--enable-user=quagga \ |
124 |
--enable-group=quagga \ |
125 |
--enable-vty-group=quagga \ |
126 |
--with-cflags="${CFLAGS}" \ |
127 |
--enable-vtysh \ |
128 |
--sysconfdir=/etc/quagga \ |
129 |
--enable-exampledir=/usr/share/doc/${PF}/samples \ |
130 |
--localstatedir=/var/run/quagga \ |
131 |
${myconf} \ |
132 |
|| die "configure failed" |
133 |
} |
134 |
|
135 |
src_install() { |
136 |
emake DESTDIR="${D}" install || die "emake install failed" |
137 |
find "${D}" -name '*.la' -delete || die |
138 |
|
139 |
keepdir /etc/quagga || die |
140 |
fowners root:quagga /etc/quagga || die |
141 |
fperms 0770 /etc/quagga || die |
142 |
|
143 |
newinitd "${FILESDIR}"/zebra.init.2 zebra || die |
144 |
|
145 |
# install ripd as a file, symlink the rest |
146 |
newinitd "${FILESDIR}"/quagga-services.init ripd || die |
147 |
|
148 |
for service in ospfd bgpd $(use ipv6 && echo ripngd ospf6d); do |
149 |
ln -s ripd "${D}"/etc/init.d/${service} || die |
150 |
done |
151 |
|
152 |
newpamd "${FILESDIR}/quagga.pam" quagga |
153 |
} |
154 |
|
155 |
pkg_postinst() { |
156 |
elog "Sample configuration files can be found in /usr/share/doc/${PF}/samples" |
157 |
elog "You have to create config files in /etc/quagga before" |
158 |
elog "starting one of the daemons." |
159 |
elog "" |
160 |
elog "You can pass additional options to the daemon by setting the EXTRA_OPTS" |
161 |
elog "variable in their respective file in /etc/conf.d" |
162 |
} |