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.11-r1.ebuild
Date: Sat, 02 May 2009 09:37:55
Message-Id: E1M0BfM-0004tD-DL@stork.gentoo.org
1 mrness 09/05/02 09:37:52
2
3 Modified: ChangeLog
4 Added: quagga-0.99.11-r1.ebuild
5 Log:
6 Migrate to EAPI 2.
7 Correct configure arguments.
8 Include upstream fix for ASN values bigger than 2^31 (#267998).
9 (Portage version: 2.1.6.7/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.80 net-misc/quagga/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.80&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.80&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.79&r2=1.80
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v
21 retrieving revision 1.79
22 retrieving revision 1.80
23 diff -u -r1.79 -r1.80
24 --- ChangeLog 7 Mar 2009 14:11:54 -0000 1.79
25 +++ ChangeLog 2 May 2009 09:37:52 -0000 1.80
26 @@ -2,7 +2,13 @@
27 # Copyright 1999-2009 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.79 2009/03/07 14:11:54 mrness Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.80 2009/05/02 09:37:52 mrness Exp $
32 +
33 +*quagga-0.99.11-r1 (02 May 2009)
34 +
35 + 02 May 2009; Alin Năstac <mrness@g.o> +quagga-0.99.11-r1.ebuild:
36 + Migrate to EAPI 2. Correct configure arguments. Include upstream fix for ASN
37 + values bigger than 2^31 (#267998).
38
39 07 Mar 2009; Alin Năstac <mrness@g.o> -quagga-0.99.10-r1.ebuild:
40 Remove obsolete test version.
41
42
43
44 1.1 net-misc/quagga/quagga-0.99.11-r1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.11-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.11-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: quagga-0.99.11-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.11-r1.ebuild,v 1.1 2009/05/02 09:37:52 mrness Exp $
54
55 EAPI="2"
56 WANT_AUTOMAKE="latest"
57 WANT_AUTOCONF="latest"
58
59 inherit eutils multilib autotools
60
61 DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP."
62 HOMEPAGE="http://quagga.net/"
63 SRC_URI="http://www.quagga.net/download/${P}.tar.gz
64 mirror://gentoo/${P}-patches-20090502.tar.gz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86"
69 IUSE="caps ipv6 snmp pam bgpclassless ospfapi realms multipath tcp-zebra"
70 RESTRICT="userpriv"
71
72 DEPEND="sys-libs/readline
73 caps? ( sys-libs/libcap )
74 snmp? ( net-analyzer/net-snmp )
75 pam? ( sys-libs/pam )"
76 RDEPEND="${DEPEND}
77 sys-apps/iproute2"
78
79 src_prepare() {
80 epatch "${WORKDIR}/patch/${P}-link-libcap.patch"
81 epatch "${WORKDIR}/patch/${P}-ipv6.patch"
82 epatch "${WORKDIR}/patch/${P}-ASN-fixes.patch"
83
84 # Classless prefixes for BGP - http://hasso.linux.ee/doku.php/english:network:quagga
85 use bgpclassless && epatch "${WORKDIR}/patch/ht-20040304-classless-bgp_adapted.patch"
86
87 # Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html
88 use realms && epatch "${WORKDIR}/patch/${P}-realms.diff"
89
90 eautoreconf
91 }
92
93 src_configure() {
94 local myconf="--disable-static \
95 $(use_enable caps capabilities) \
96 $(use_enable snmp) \
97 $(use_with pam libpam) \
98 $(use_enable tcp-zebra)"
99 use ipv6 \
100 && myconf="${myconf} --enable-ipv6 --enable-ripngd --enable-ospf6d --enable-rtadv" \
101 || myconf="${myconf} --disable-ipv6 --disable-ripngd --disable-ospf6d"
102 use ospfapi \
103 && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient"
104 use realms && myconf="${myconf} --enable-realms"
105 use multipath && myconf="${myconf} --enable-multipath=0"
106
107 econf \
108 --enable-user=quagga \
109 --enable-group=quagga \
110 --enable-vty-group=quagga \
111 --with-cflags="${CFLAGS}" \
112 --enable-vtysh \
113 --sysconfdir=/etc/quagga \
114 --enable-exampledir=/etc/quagga/samples \
115 --localstatedir=/var/run/quagga \
116 --libdir=/usr/$(get_libdir)/quagga \
117 ${myconf} \
118 || die "configure failed"
119 }
120
121 src_install() {
122 einstall \
123 localstatedir="${D}/var/run/quagga" \
124 sysconfdir="${D}/etc/quagga" \
125 exampledir="${D}/etc/quagga/samples" \
126 libdir="${D}/usr/$(get_libdir)/quagga" || die "make install failed"
127
128 dodir /var/run/quagga || die "failed to install /var/run/quagga"
129
130 local i MY_SERVICES_LIST="zebra ripd ospfd bgpd"
131 use ipv6 && MY_SERVICES_LIST="${MY_SERVICES_LIST} ripngd ospf6d"
132 for i in ${MY_SERVICES_LIST} ; do
133 newinitd "${FILESDIR}/${i}.init" ${i} || die "failed to install ${i} init.d script"
134 done
135 newconfd "${FILESDIR}/zebra.conf" zebra || die "failed to install zebra conf.d script"
136
137 if use pam; then
138 insinto /etc/pam.d
139 newins "${FILESDIR}/quagga.pam" quagga || die "failed to install pam.d file"
140 fi
141
142 newenvd "${FILESDIR}/quagga.env" 99quagga || die "failed to install env file"
143 }
144
145 pkg_preinst() {
146 enewgroup quagga
147 enewuser quagga -1 -1 /var/empty quagga
148 }
149
150 pkg_postinst() {
151 # empty dir for pid files for the new priv separation auth
152 #set proper owner/group/perms even if dir already existed
153 install -d -m0770 -o root -g quagga "${ROOT}/etc/quagga"
154 install -d -m0755 -o quagga -g quagga "${ROOT}/var/run/quagga"
155
156 einfo "Sample configuration files can be found in /etc/quagga/samples."
157 einfo "You have to create config files in /etc/quagga before"
158 einfo "starting one of the daemons."
159 }