Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/quagga: ChangeLog quagga-0.99.19.ebuild
Date: Tue, 27 Sep 2011 13:08:04
Message-Id: 20110927130750.64A4A20036@flycatcher.gentoo.org
1 flameeyes 11/09/27 13:07:50
2
3 Modified: ChangeLog
4 Added: quagga-0.99.19.ebuild
5 Log:
6 Version bump (security fixes); use EAPI=4; use OpenRC's proper init scripts with check whether to use syslog or not; disable strict aliasing since way too many warnings are thrown right now and this could be mission-critical for many.
7
8 (Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.113 net-misc/quagga/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.113&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.113&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.112&r2=1.113
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v
20 retrieving revision 1.112
21 retrieving revision 1.113
22 diff -u -r1.112 -r1.113
23 --- ChangeLog 6 Sep 2011 11:11:07 -0000 1.112
24 +++ ChangeLog 27 Sep 2011 13:07:50 -0000 1.113
25 @@ -1,6 +1,15 @@
26 # ChangeLog for net-misc/quagga
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.112 2011/09/06 11:11:07 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.113 2011/09/27 13:07:50 flameeyes Exp $
30 +
31 +*quagga-0.99.19 (27 Sep 2011)
32 +
33 + 27 Sep 2011; Diego E. Pettenò <flameeyes@g.o> +quagga-0.99.19.ebuild,
34 + +files/quagga-services.init.2, +files/zebra.init.3:
35 + Version bump (security fixes); use EAPI=4; use OpenRC's proper init scripts
36 + with check whether to use syslog or not; disable strict aliasing since way
37 + too many warnings are thrown right now and this could be mission-critical for
38 + many.
39
40 06 Sep 2011; Diego E. Pettenò <flameeyes@g.o>
41 -quagga-0.99.17-r2.ebuild, -files/quagga-0.99.17-gentoo.patch:
42
43
44
45 1.1 net-misc/quagga/quagga-0.99.19.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.19.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.19.ebuild?rev=1.1&content-type=text/plain
49
50 Index: quagga-0.99.19.ebuild
51 ===================================================================
52 # Copyright 1999-2011 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.19.ebuild,v 1.1 2011/09/27 13:07:50 flameeyes Exp $
55
56 EAPI="4"
57
58 CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch
59
60 BACKPORTS=1
61
62 inherit eutils multilib autotools pam flag-o-matic
63
64 DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP."
65 HOMEPAGE="http://quagga.net/"
66 SRC_URI="http://www.quagga.net/download/${P}.tar.gz
67 ${BACKPORTS:+
68 http://dev.gentoo.org/~flameeyes/${PN}/${P}-backports-${BACKPORTS}.tar.bz2}
69 bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_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 multipath tcp-zebra elibc_glibc +readline"
75
76 COMMON_DEPEND="
77 caps? ( sys-libs/libcap )
78 snmp? ( net-analyzer/net-snmp )
79 readline? (
80 sys-libs/readline
81 pam? ( sys-libs/pam )
82 )
83 !elibc_glibc? ( dev-libs/libpcre )"
84 DEPEND="${COMMON_DEPEND}
85 >=sys-devel/libtool-2.2.4"
86 RDEPEND="${COMMON_DEPEND}
87 sys-apps/openrc
88 sys-apps/iproute2"
89
90 pkg_setup() {
91 enewgroup quagga
92 enewuser quagga -1 -1 /var/empty quagga
93 }
94
95 src_prepare() {
96 [[ -n ${BACKPORTS} ]] && \
97 EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/patches" \
98 epatch
99
100 # Classless prefixes for BGP
101 # http://hasso.linux.ee/doku.php/english:network:quagga
102 use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}"
103
104 eautoreconf
105 }
106
107 src_configure() {
108 local myconf=
109
110 use ospfapi \
111 && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient"
112
113 use multipath && myconf="${myconf} --enable-multipath=0"
114
115 append-flags -fno-strict-aliasing
116
117 econf \
118 --enable-user=quagga \
119 --enable-group=quagga \
120 --enable-vty-group=quagga \
121 --with-cflags="${CFLAGS}" \
122 --sysconfdir=/etc/quagga \
123 --enable-exampledir=/usr/share/doc/${PF}/samples \
124 --localstatedir=/var/run/quagga \
125 --disable-static \
126 --disable-pie \
127 \
128 $(use_enable caps capabilities) \
129 $(use_enable snmp) \
130 $(use_enable !elibc_glibc pcreposix) \
131 $(use_enable tcp-zebra) \
132 $(use_enable doc) \
133 \
134 $(use_enable readline vtysh) \
135 $(use_with pam libpam) \
136 \
137 $(use_enable ipv6) \
138 $(use_enable ipv6 ripngd) \
139 $(use_enable ipv6 ospf6d) \
140 $(use_enable ipv6 rtadv) \
141 \
142 ${myconf}
143 }
144
145 src_install() {
146 emake DESTDIR="${D}" install
147 find "${D}" -name '*.la' -delete || die
148
149 keepdir /etc/quagga
150 fowners root:quagga /etc/quagga
151 fperms 0770 /etc/quagga
152
153 newinitd "${FILESDIR}"/zebra.init.3 zebra
154
155 # install ripd as a file, symlink the rest
156 newinitd "${FILESDIR}"/quagga-services.init.2 ripd
157
158 for service in ospfd bgpd $(use ipv6 && echo ripngd ospf6d); do
159 dosym ripd /etc/init.d/${service}
160 done
161
162 use readline && newpamd "${FILESDIR}/quagga.pam" quagga
163 }
164
165 pkg_postinst() {
166 elog "Sample configuration files can be found in /usr/share/doc/${PF}/samples"
167 elog "You have to create config files in /etc/quagga before"
168 elog "starting one of the daemons."
169 elog ""
170 elog "You can pass additional options to the daemon by setting the EXTRA_OPTS"
171 elog "variable in their respective file in /etc/conf.d"
172 elog ""
173 elog "Starting from version 0.99.18, quagga no longer supports the realms patch."
174 elog "The patch was abandoned upstream and once again didn't apply; it needs a"
175 elog "dedicated maintainer, if it is still necessary."
176 }