1 |
flameeyes 10/09/06 14:19:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: quagga-0.99.17-r2.ebuild |
5 |
Removed: quagga-0.99.17-r1.ebuild |
6 |
Log: |
7 |
Restore the pam file as quagga (lower-case), thanks to Kazunori Kojima and Yukata GOTOH. |
8 |
|
9 |
(Portage version: 2.2_rc75/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.90 net-misc/quagga/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.90&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.90&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.89&r2=1.90 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v |
21 |
retrieving revision 1.89 |
22 |
retrieving revision 1.90 |
23 |
diff -u -r1.89 -r1.90 |
24 |
--- ChangeLog 6 Sep 2010 11:58:52 -0000 1.89 |
25 |
+++ ChangeLog 6 Sep 2010 14:19:00 -0000 1.90 |
26 |
@@ -2,7 +2,14 @@ |
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.89 2010/09/06 11:58:52 flameeyes Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.90 2010/09/06 14:19:00 flameeyes Exp $ |
32 |
+ |
33 |
+*quagga-0.99.17-r2 (06 Sep 2010) |
34 |
+ |
35 |
+ 06 Sep 2010; Diego E. Pettenò <flameeyes@g.o> |
36 |
+ -quagga-0.99.17-r1.ebuild, +quagga-0.99.17-r2.ebuild: |
37 |
+ Restore the pam file as quagga (lower-case), thanks to Kazunori Kojima and |
38 |
+ Yukata GOTOH. |
39 |
|
40 |
06 Sep 2010; Diego E. Pettenò <flameeyes@g.o> |
41 |
-files/quagga-0.99.14-fix-ipremove.patch, quagga-0.99.17-r1.ebuild, |
42 |
|
43 |
|
44 |
|
45 |
1.1 net-misc/quagga/quagga-0.99.17-r2.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.17-r2.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.17-r2.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: quagga-0.99.17-r2.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2010 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.17-r2.ebuild,v 1.1 2010/09/06 14:19:00 flameeyes Exp $ |
55 |
|
56 |
EAPI="2" |
57 |
|
58 |
CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch |
59 |
REALMS_PATCH=quagga-0.99.14-realms-test2.diff |
60 |
|
61 |
inherit eutils multilib autotools pam |
62 |
|
63 |
DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP." |
64 |
HOMEPAGE="http://quagga.net/" |
65 |
SRC_URI="http://www.quagga.net/download/${P}.tar.gz |
66 |
bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_PATCH} ) |
67 |
realms? ( http://linux.mantech.ro/download/quagga/${REALMS_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 realms 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/iproute2" |
86 |
|
87 |
pkg_setup() { |
88 |
enewgroup quagga |
89 |
enewuser quagga -1 -1 /var/empty quagga |
90 |
} |
91 |
|
92 |
src_prepare() { |
93 |
epatch "${FILESDIR}/${P}-gentoo.patch" |
94 |
|
95 |
# Classless prefixes for BGP - http://hasso.linux.ee/doku.php/english:network:quagga |
96 |
use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}" |
97 |
|
98 |
# Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html |
99 |
use realms && epatch "${DISTDIR}/${REALMS_PATCH}" |
100 |
|
101 |
eautoreconf |
102 |
} |
103 |
|
104 |
src_configure() { |
105 |
local myconf= |
106 |
|
107 |
use ospfapi \ |
108 |
&& myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient" |
109 |
|
110 |
use realms && myconf="${myconf} --enable-realms" |
111 |
use multipath && myconf="${myconf} --enable-multipath=0" |
112 |
|
113 |
econf \ |
114 |
--enable-user=quagga \ |
115 |
--enable-group=quagga \ |
116 |
--enable-vty-group=quagga \ |
117 |
--with-cflags="${CFLAGS}" \ |
118 |
--sysconfdir=/etc/quagga \ |
119 |
--enable-exampledir=/usr/share/doc/${PF}/samples \ |
120 |
--localstatedir=/var/run/quagga \ |
121 |
--disable-static \ |
122 |
--disable-pie \ |
123 |
\ |
124 |
$(use_enable caps capabilities) \ |
125 |
$(use_enable snmp) \ |
126 |
$(use_enable !elibc_glibc pcreposix) \ |
127 |
$(use_enable tcp-zebra) \ |
128 |
$(use_enable doc) \ |
129 |
\ |
130 |
$(use_enable readline vtysh) \ |
131 |
$(use_with pam libpam) \ |
132 |
\ |
133 |
$(use_enable ipv6) \ |
134 |
$(use_enable ipv6 ripngd) \ |
135 |
$(use_enable ipv6 ospf6d) \ |
136 |
$(use_enable ipv6 rtadv) \ |
137 |
\ |
138 |
${myconf} \ |
139 |
|| die "configure failed" |
140 |
} |
141 |
|
142 |
src_install() { |
143 |
emake DESTDIR="${D}" install || die "emake install failed" |
144 |
find "${D}" -name '*.la' -delete || die |
145 |
|
146 |
keepdir /etc/quagga || die |
147 |
fowners root:quagga /etc/quagga || die |
148 |
fperms 0770 /etc/quagga || die |
149 |
|
150 |
newinitd "${FILESDIR}"/zebra.init.2 zebra || die |
151 |
|
152 |
# install ripd as a file, symlink the rest |
153 |
newinitd "${FILESDIR}"/quagga-services.init ripd || die |
154 |
|
155 |
for service in ospfd bgpd $(use ipv6 && echo ripngd ospf6d); do |
156 |
ln -s ripd "${D}"/etc/init.d/${service} || die |
157 |
done |
158 |
|
159 |
use readline && newpamd "${FILESDIR}/quagga.pam" quagga |
160 |
} |
161 |
|
162 |
pkg_postinst() { |
163 |
elog "Sample configuration files can be found in /usr/share/doc/${PF}/samples" |
164 |
elog "You have to create config files in /etc/quagga before" |
165 |
elog "starting one of the daemons." |
166 |
elog "" |
167 |
elog "You can pass additional options to the daemon by setting the EXTRA_OPTS" |
168 |
elog "variable in their respective file in /etc/conf.d" |
169 |
} |