1 |
mrness 08/06/18 20:05:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: quagga-0.99.10.ebuild |
5 |
Log: |
6 |
Version bump (#227913). |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.74 net-misc/quagga/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.74&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.74&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.73&r2=1.74 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v |
19 |
retrieving revision 1.73 |
20 |
retrieving revision 1.74 |
21 |
diff -u -r1.73 -r1.74 |
22 |
--- ChangeLog 13 May 2008 22:38:28 -0000 1.73 |
23 |
+++ ChangeLog 18 Jun 2008 20:05:10 -0000 1.74 |
24 |
@@ -2,7 +2,12 @@ |
25 |
# Copyright 1999-2008 Gentoo Foundation |
26 |
# Copyright 2003-2004 DataCore GmbH |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.73 2008/05/13 22:38:28 mrness Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.74 2008/06/18 20:05:10 mrness Exp $ |
30 |
+ |
31 |
+*quagga-0.99.10 (18 Jun 2008) |
32 |
+ |
33 |
+ 18 Jun 2008; Alin Năstac <mrness@g.o> +quagga-0.99.10.ebuild: |
34 |
+ Version bump (#227913). |
35 |
|
36 |
13 May 2008; Alin Năstac <mrness@g.o> quagga-0.98.6-r4.ebuild, |
37 |
quagga-0.99.9-r1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-misc/quagga/quagga-0.99.10.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.10.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.10.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: quagga-0.99.10.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.10.ebuild,v 1.1 2008/06/18 20:05:10 mrness Exp $ |
51 |
|
52 |
WANT_AUTOMAKE="latest" |
53 |
WANT_AUTOCONF="latest" |
54 |
|
55 |
inherit eutils multilib autotools linux-info |
56 |
|
57 |
DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP." |
58 |
HOMEPAGE="http://quagga.net/" |
59 |
SRC_URI="http://www.quagga.net/download/${P}.tar.gz |
60 |
mirror://gentoo/${P}-patches-20080618.tar.gz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86" |
65 |
IUSE="caps ipv6 snmp pam tcpmd5 bgpas4 bgpclassless ospfapi realms multipath tcp-zebra" |
66 |
RESTRICT="userpriv" |
67 |
|
68 |
DEPEND="sys-libs/readline |
69 |
caps? ( >=sys-libs/libcap-1.10-r9 ) |
70 |
snmp? ( net-analyzer/net-snmp ) |
71 |
pam? ( sys-libs/pam )" |
72 |
RDEPEND="${DEPEND} |
73 |
sys-apps/iproute2" |
74 |
|
75 |
pkg_setup() { |
76 |
if use tcpmd5 ; then |
77 |
get_version || get_running_version |
78 |
fi |
79 |
return 0 |
80 |
} |
81 |
|
82 |
src_unpack() { |
83 |
unpack ${A} |
84 |
|
85 |
cd "${S}" || die "source dir not found" |
86 |
epatch "${WORKDIR}/patch/${P}-link-libcap.patch" |
87 |
|
88 |
# free AS number format (aka AS4) support (original found at http://quagga.ncc.eurodata.de) |
89 |
use bgpas4 && epatch "${WORKDIR}/patch/quagga-cvs20071015-freeasnumberformat.patch" |
90 |
|
91 |
if use tcpmd5 ; then |
92 |
if kernel_is lt 2 6 20 ; then |
93 |
# TCP MD5 for BGP patch for Linux (RFC 2385) |
94 |
# original found at http://hasso.linux.ee/doku.php/english:network:rfc2385 |
95 |
epatch "${WORKDIR}/patch/ht-20050321-${PV}-bgp-md5_adapted.patch" |
96 |
else |
97 |
# TCP MD5 in-kernel support for kernels >=2.6.20 (by Leigh Brown) |
98 |
# original found at http://www.solinno.co.uk/md5sig/quagga_linux-2.6.20_md5sig.diff |
99 |
epatch "${WORKDIR}/patch/${P}-linux-2.6.20_md5sig_adapted.patch" |
100 |
fi |
101 |
fi |
102 |
|
103 |
# Classless prefixes for BGP - http://hasso.linux.ee/doku.php/english:network:quagga |
104 |
use bgpclassless && epatch "${WORKDIR}/patch/ht-20040304-classless-bgp_adapted.patch" |
105 |
|
106 |
# Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html |
107 |
use realms && epatch "${WORKDIR}/patch/${P}-realms.diff" |
108 |
|
109 |
eautoreconf |
110 |
} |
111 |
|
112 |
src_compile() { |
113 |
local myconf="--disable-static \ |
114 |
$(use_enable caps capabilities) \ |
115 |
$(use_enable snmp) \ |
116 |
$(use_with pam libpam) \ |
117 |
$(use_enable tcpmd5 tcp-md5) \ |
118 |
$(use_enable tcp-zebra)" |
119 |
use ipv6 \ |
120 |
&& myconf="${myconf} --enable-ipv6 --enable-ripng --enable-ospf6d --enable-rtadv" \ |
121 |
|| myconf="${myconf} --disable-ipv6 --disable-ripngd --disable-ospf6d" |
122 |
use ospfapi \ |
123 |
&& myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient" |
124 |
use realms && myconf="${myconf} --enable-realms" |
125 |
use multipath && myconf="${myconf} --enable-multipath=0" |
126 |
|
127 |
econf \ |
128 |
--enable-nssa \ |
129 |
--enable-user=quagga \ |
130 |
--enable-group=quagga \ |
131 |
--enable-vty-group=quagga \ |
132 |
--with-cflags="${CFLAGS}" \ |
133 |
--enable-vtysh \ |
134 |
--sysconfdir=/etc/quagga \ |
135 |
--enable-exampledir=/etc/quagga/samples \ |
136 |
--localstatedir=/var/run/quagga \ |
137 |
--libdir=/usr/$(get_libdir)/quagga \ |
138 |
${myconf} \ |
139 |
|| die "configure failed" |
140 |
emake || die "make failed" |
141 |
} |
142 |
|
143 |
src_install() { |
144 |
einstall \ |
145 |
localstatedir="${D}/var/run/quagga" \ |
146 |
sysconfdir="${D}/etc/quagga" \ |
147 |
exampledir="${D}/etc/quagga/samples" \ |
148 |
libdir="${D}/usr/$(get_libdir)/quagga" || die "make install failed" |
149 |
|
150 |
dodir /var/run/quagga || die "failed to install /var/run/quagga" |
151 |
|
152 |
local i MY_SERVICES_LIST="zebra ripd ospfd bgpd" |
153 |
use ipv6 && MY_SERVICES_LIST="${MY_SERVICES_LIST} ripngd ospf6d" |
154 |
for i in ${MY_SERVICES_LIST} ; do |
155 |
newinitd "${FILESDIR}/${i}.init" ${i} || die "failed to install ${i} init.d script" |
156 |
done |
157 |
newconfd "${FILESDIR}/zebra.conf" zebra || die "failed to install zebra conf.d script" |
158 |
|
159 |
if use pam; then |
160 |
insinto /etc/pam.d |
161 |
newins "${FILESDIR}/quagga.pam" quagga || die "failed to install pam.d file" |
162 |
fi |
163 |
|
164 |
newenvd "${FILESDIR}/quagga.env" 99quagga || die "failed to install env file" |
165 |
} |
166 |
|
167 |
pkg_preinst() { |
168 |
enewgroup quagga |
169 |
enewuser quagga -1 -1 /var/empty quagga |
170 |
} |
171 |
|
172 |
pkg_postinst() { |
173 |
# empty dir for pid files for the new priv separation auth |
174 |
#set proper owner/group/perms even if dir already existed |
175 |
install -d -m0770 -o root -g quagga "${ROOT}/etc/quagga" |
176 |
install -d -m0755 -o quagga -g quagga "${ROOT}/var/run/quagga" |
177 |
|
178 |
einfo "Sample configuration files can be found in /etc/quagga/samples." |
179 |
einfo "You have to create config files in /etc/quagga before" |
180 |
einfo "starting one of the daemons." |
181 |
|
182 |
if use tcpmd5; then |
183 |
echo |
184 |
if kernel_is lt 2 6 20; then |
185 |
ewarn "TCP MD5 for BGP needs a patched kernel!" |
186 |
ewarn "See http://hasso.linux.ee/doku.php/english:network:rfc2385 for more info." |
187 |
else |
188 |
CONFIG_CHECK="~TCP_MD5SIG" |
189 |
local ERROR_TCP_MD5SIG="CONFIG_TCP_MD5SIG:\t missing TCP MD5 signature support (RFC2385)" |
190 |
|
191 |
check_extra_config |
192 |
fi |
193 |
fi |
194 |
} |
195 |
|
196 |
|
197 |
|
198 |
-- |
199 |
gentoo-commits@l.g.o mailing list |