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.13.ebuild quagga-0.99.11.ebuild quagga-0.99.11-r1.ebuild
Date: Tue, 23 Jun 2009 21:12:06
Message-Id: E1MJDHg-0008KU-LG@stork.gentoo.org
1 mrness 09/06/23 21:12:04
2
3 Modified: ChangeLog
4 Added: quagga-0.99.13.ebuild
5 Removed: quagga-0.99.11.ebuild quagga-0.99.11-r1.ebuild
6 Log:
7 Version bump (#275168). Add pcre USE flag.
8 (Portage version: 2.1.6.13/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.83 net-misc/quagga/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.83&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.83&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.82&r2=1.83
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v
20 retrieving revision 1.82
21 retrieving revision 1.83
22 diff -u -r1.82 -r1.83
23 --- ChangeLog 14 Jun 2009 07:41:26 -0000 1.82
24 +++ ChangeLog 23 Jun 2009 21:12:04 -0000 1.83
25 @@ -2,7 +2,13 @@
26 # Copyright 1999-2009 Gentoo Foundation
27 # Copyright 2003-2004 DataCore GmbH
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.82 2009/06/14 07:41:26 mrness Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.83 2009/06/23 21:12:04 mrness Exp $
31 +
32 +*quagga-0.99.13 (23 Jun 2009)
33 +
34 + 23 Jun 2009; Alin Năstac <mrness@g.o> -quagga-0.99.11.ebuild,
35 + -quagga-0.99.11-r1.ebuild, +quagga-0.99.13.ebuild:
36 + Version bump (#275168). Add pcre USE flag.
37
38 *quagga-0.99.12-r1 (14 Jun 2009)
39
40
41
42
43 1.1 net-misc/quagga/quagga-0.99.13.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.13.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.13.ebuild?rev=1.1&content-type=text/plain
47
48 Index: quagga-0.99.13.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.13.ebuild,v 1.1 2009/06/23 21:12:04 mrness Exp $
53
54 EAPI="2"
55
56 inherit eutils multilib autotools
57
58 DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP."
59 HOMEPAGE="http://quagga.net/"
60 SRC_URI="http://www.quagga.net/download/${P}.tar.gz
61 mirror://gentoo/${P}-patches-20090623.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86"
66 IUSE="caps ipv6 snmp pam pcre bgpclassless ospfapi realms multipath tcp-zebra"
67 RESTRICT="userpriv"
68
69 COMMON_DEPEND="sys-libs/readline
70 caps? ( sys-libs/libcap )
71 snmp? ( net-analyzer/net-snmp )
72 pam? ( sys-libs/pam )
73 pcre? ( dev-libs/libpcre )"
74 DEPEND="${COMMON_DEPEND}
75 >=sys-devel/libtool-2.2.4"
76 RDEPEND="${COMMON_DEPEND}
77 sys-apps/iproute2"
78
79 src_prepare() {
80 epatch "${WORKDIR}/patch/${P}-ipaddr-bug486.diff"
81 epatch "${WORKDIR}/patch/${P}-link-libcap.patch"
82 epatch "${WORKDIR}/patch/${P}-libpcre.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 pcre pcreposix) \
99 $(use_enable tcp-zebra)"
100 use ipv6 \
101 && myconf="${myconf} --enable-ipv6 --enable-ripngd --enable-ospf6d --enable-rtadv" \
102 || myconf="${myconf} --disable-ipv6 --disable-ripngd --disable-ospf6d"
103 use ospfapi \
104 && myconf="${myconf} --enable-opaque-lsa --enable-ospf-te --enable-ospfclient"
105 use realms && myconf="${myconf} --enable-realms"
106 use multipath && myconf="${myconf} --enable-multipath=0"
107
108 econf \
109 --enable-user=quagga \
110 --enable-group=quagga \
111 --enable-vty-group=quagga \
112 --with-cflags="${CFLAGS}" \
113 --enable-vtysh \
114 --sysconfdir=/etc/quagga \
115 --enable-exampledir=/etc/quagga/samples \
116 --localstatedir=/var/run/quagga \
117 --libdir=/usr/$(get_libdir)/quagga \
118 ${myconf} \
119 || die "configure failed"
120 }
121
122 src_install() {
123 einstall \
124 localstatedir="${D}/var/run/quagga" \
125 sysconfdir="${D}/etc/quagga" \
126 exampledir="${D}/etc/quagga/samples" \
127 libdir="${D}/usr/$(get_libdir)/quagga" || die "make install failed"
128
129 dodir /var/run/quagga || die "failed to install /var/run/quagga"
130
131 local i MY_SERVICES_LIST="zebra ripd ospfd bgpd"
132 use ipv6 && MY_SERVICES_LIST="${MY_SERVICES_LIST} ripngd ospf6d"
133 for i in ${MY_SERVICES_LIST} ; do
134 newinitd "${FILESDIR}/${i}.init" ${i} || die "failed to install ${i} init.d script"
135 done
136 newconfd "${FILESDIR}/zebra.conf" zebra || die "failed to install zebra conf.d script"
137
138 if use pam; then
139 insinto /etc/pam.d
140 newins "${FILESDIR}/quagga.pam" quagga || die "failed to install pam.d file"
141 fi
142
143 newenvd "${FILESDIR}/quagga.env" 99quagga || die "failed to install env file"
144 }
145
146 pkg_preinst() {
147 enewgroup quagga
148 enewuser quagga -1 -1 /var/empty quagga
149 }
150
151 pkg_postinst() {
152 # empty dir for pid files for the new priv separation auth
153 #set proper owner/group/perms even if dir already existed
154 install -d -m0770 -o root -g quagga "${ROOT}/etc/quagga"
155 install -d -m0755 -o quagga -g quagga "${ROOT}/var/run/quagga"
156
157 einfo "Sample configuration files can be found in /etc/quagga/samples."
158 einfo "You have to create config files in /etc/quagga before"
159 einfo "starting one of the daemons."
160 }