Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/quagga: ChangeLog quagga-0.99.9.ebuild
Date: Thu, 13 Sep 2007 19:05:09
Message-Id: E1IVtsn-00034B-DY@stork.gentoo.org
1 mrness 07/09/13 18:57:45
2
3 Modified: ChangeLog
4 Added: quagga-0.99.9.ebuild
5 Log:
6 Version bump (#191976). Add caps USE flag.
7 (Portage version: 2.1.2.12)
8
9 Revision Changes Path
10 1.65 net-misc/quagga/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.65&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.65&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.64&r2=1.65
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v
19 retrieving revision 1.64
20 retrieving revision 1.65
21 diff -u -r1.64 -r1.65
22 --- ChangeLog 13 Sep 2007 16:01:26 -0000 1.64
23 +++ ChangeLog 13 Sep 2007 18:57:44 -0000 1.65
24 @@ -2,7 +2,12 @@
25 # Copyright 1999-2007 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.64 2007/09/13 16:01:26 dertobi123 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.65 2007/09/13 18:57:44 mrness Exp $
30 +
31 +*quagga-0.99.9 (13 Sep 2007)
32 +
33 + 13 Sep 2007; Alin Năstac <mrness@g.o> +quagga-0.99.9.ebuild:
34 + Version bump (#191976). Add caps USE flag.
35
36 13 Sep 2007; Tobias Scherbaum <dertobi123@g.o>
37 quagga-0.98.6-r3.ebuild:
38
39
40
41 1.1 net-misc/quagga/quagga-0.99.9.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: quagga-0.99.9.ebuild
47 ===================================================================
48 # Copyright 1999-2007 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.9.ebuild,v 1.1 2007/09/13 18:57:44 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. Includes OSPFAPI, NET-SNMP and IPV6 support."
58 HOMEPAGE="http://quagga.net/"
59 SRC_URI="http://www.quagga.net/download/${P}.tar.gz
60 mirror://gentoo/${P}-patches-20070913.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="caps? ( >=sys-libs/libcap-1.10-r9 )
69 snmp? ( net-analyzer/net-snmp )
70 pam? ( sys-libs/pam )"
71 RDEPEND="${DEPEND}
72 sys-apps/iproute2"
73
74 pkg_setup() {
75 if use tcpmd5 ; then
76 get_version || get_running_version
77 fi
78 return 0
79 }
80
81 src_unpack() {
82 unpack ${A} || die "failed to unpack sources"
83
84 cd "${S}" || die "source dir not found"
85 epatch "${WORKDIR}/patch/${P}-link-libcap.patch"
86
87 # AS4 support (original found at http://quagga.ncc.eurodata.de)
88 use bgpas4 && epatch "${WORKDIR}/patch/quagga-cvs20070909-as4-v09.patch"
89
90 if use tcpmd5 ; then
91 if kernel_is lt 2 6 20 ; then
92 # TCP MD5 for BGP patch for Linux (RFC 2385)
93 # original found at http://hasso.linux.ee/doku.php/english:network:rfc2385
94 epatch "${WORKDIR}/patch/ht-20050321-${PV}-bgp-md5_adapted.patch"
95 else
96 # TCP MD5 in-kernel support for kernels >=2.6.20 (by Leigh Brown)
97 # original found at http://www.solinno.co.uk/md5sig/quagga_linux-2.6.20_md5sig.diff
98 epatch "${WORKDIR}/patch/quagga_linux-2.6.20_md5sig_adapted.diff"
99 fi
100 fi
101
102 # Classless prefixes for BGP - http://hasso.linux.ee/doku.php/english:network:quagga
103 use bgpclassless && epatch "${WORKDIR}/patch/ht-20040304-classless-bgp_adapted.patch"
104
105 # Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html
106 use realms && epatch "${WORKDIR}/patch/${P}-realms.diff"
107
108 eautoreconf
109 }
110
111 src_compile() {
112 local myconf="--disable-static \
113 $(use_enable caps capabilities) \
114 $(use_enable snmp) \
115 $(use_with pam libpam) \
116 $(use_enable tcpmd5 tcp-md5) \
117 $(use_enable tcp-zebra)"
118 use ipv6 \
119 && myconf="${myconf} --enable-ipv6 --enable-ripng --enable-ospf6d --enable-rtadv" \
120 || myconf="${myconf} --disable-ipv6 --disable-ripngd --disable-ospf6d"
121 use ospfapi \
122 && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient"
123 use realms && myconf="${myconf} --enable-realms"
124 use multipath && myconf="${myconf} --enable-multipath=0"
125
126 econf \
127 --enable-nssa \
128 --enable-user=quagga \
129 --enable-group=quagga \
130 --enable-vty-group=quagga \
131 --with-cflags="${CFLAGS}" \
132 --enable-vtysh \
133 --sysconfdir=/etc/quagga \
134 --enable-exampledir=/etc/quagga/samples \
135 --localstatedir=/var/run/quagga \
136 --libdir=/usr/$(get_libdir)/quagga \
137 ${myconf} \
138 || die "configure failed"
139 emake || die "make failed"
140 }
141
142 src_install() {
143 einstall \
144 localstatedir="${D}/var/run/quagga" \
145 sysconfdir="${D}/etc/quagga" \
146 exampledir="${D}/etc/quagga/samples" \
147 libdir="${D}/usr/$(get_libdir)/quagga" || die "make install failed"
148
149 keepdir /var/run/quagga
150
151 local i MY_SERVICES_LIST="zebra ripd ospfd bgpd"
152 use ipv6 && MY_SERVICES_LIST="${MY_SERVICES_LIST} ripngd ospf6d"
153 for i in ${MY_SERVICES_LIST} ; do
154 newinitd "${FILESDIR}/${i}.init" ${i} || die "failed to install ${i} init.d script"
155 done
156 newconfd "${FILESDIR}/zebra.conf" zebra || die "failed to install zebra conf.d script"
157
158 if use pam; then
159 insinto /etc/pam.d
160 newins "${FILESDIR}/quagga.pam" quagga
161 fi
162
163 newenvd "${FILESDIR}/quagga.env" 99quagga
164 }
165
166 pkg_preinst() {
167 enewgroup quagga
168 enewuser quagga -1 -1 /var/empty quagga
169 }
170
171 pkg_postinst() {
172 # empty dir for pid files for the new priv separation auth
173 #set proper owner/group/perms even if dir already existed
174 install -d -m0770 -o root -g quagga "${ROOT}/etc/quagga"
175 install -d -m0755 -o quagga -g quagga "${ROOT}/var/run/quagga"
176
177 einfo "Sample configuration files can be found in /etc/quagga/samples."
178 einfo "You have to create config files in /etc/quagga before"
179 einfo "starting one of the daemons."
180
181 if use tcpmd5; then
182 echo
183 if kernel_is lt 2 6 20; then
184 ewarn "TCP MD5 for BGP needs a patched kernel!"
185 ewarn "See http://hasso.linux.ee/doku.php/english:network:rfc2385 for more info."
186 else
187 CONFIG_CHECK="~TCP_MD5SIG"
188 local ERROR_TCP_MD5SIG="CONFIG_TCP_MD5SIG:\t missing TCP MD5 signature support (RFC2385)"
189
190 check_extra_config
191 fi
192 fi
193 }
194
195
196
197 --
198 gentoo-commits@g.o mailing list