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.15.ebuild
Date: Sun, 30 Aug 2009 03:04:43
Message-Id: E1MhfXi-00026o-1r@stork.gentoo.org
1 mrness 09/08/30 08:13:42
2
3 Modified: ChangeLog
4 Added: quagga-0.99.15.ebuild
5 Log:
6 Version bump (#283135)
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.85 net-misc/quagga/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.85&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.85&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.84&r2=1.85
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v
19 retrieving revision 1.84
20 retrieving revision 1.85
21 diff -u -r1.84 -r1.85
22 --- ChangeLog 16 Aug 2009 12:10:11 -0000 1.84
23 +++ ChangeLog 30 Aug 2009 08:13:41 -0000 1.85
24 @@ -2,7 +2,12 @@
25 # Copyright 1999-2009 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.84 2009/08/16 12:10:11 mrness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.85 2009/08/30 08:13:41 mrness Exp $
30 +
31 +*quagga-0.99.15 (30 Aug 2009)
32 +
33 + 30 Aug 2009; Alin Năstac <mrness@g.o> +quagga-0.99.15.ebuild:
34 + Version bump (#283135).
35
36 *quagga-0.99.14 (16 Aug 2009)
37
38
39
40
41 1.1 net-misc/quagga/quagga-0.99.15.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.15.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/quagga/quagga-0.99.15.ebuild?rev=1.1&content-type=text/plain
45
46 Index: quagga-0.99.15.ebuild
47 ===================================================================
48 # Copyright 1999-2009 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.15.ebuild,v 1.1 2009/08/30 08:13:41 mrness Exp $
51
52 EAPI="2"
53
54 inherit eutils multilib autotools
55
56 DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP."
57 HOMEPAGE="http://quagga.net/"
58 SRC_URI="http://www.quagga.net/download/${P}.tar.gz
59 mirror://gentoo/${P}-patches-20090830.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86"
64 IUSE="caps doc ipv6 snmp pam pcre bgpclassless ospfapi realms multipath tcp-zebra"
65 RESTRICT="userpriv"
66
67 COMMON_DEPEND="sys-libs/readline
68 caps? ( sys-libs/libcap )
69 snmp? ( net-analyzer/net-snmp )
70 pam? ( sys-libs/pam )
71 pcre? ( dev-libs/libpcre )"
72 DEPEND="${COMMON_DEPEND}
73 >=sys-devel/libtool-2.2.4"
74 RDEPEND="${COMMON_DEPEND}
75 sys-apps/iproute2"
76
77 src_prepare() {
78 epatch "${WORKDIR}/patch/${P}-ipaddr-bug486.diff"
79 epatch "${WORKDIR}/patch/${P}-link-libcap.patch"
80 epatch "${WORKDIR}/patch/${P}-libpcre.patch"
81
82 # Classless prefixes for BGP - http://hasso.linux.ee/doku.php/english:network:quagga
83 use bgpclassless && epatch "${WORKDIR}/patch/ht-20040304-classless-bgp_adapted.patch"
84
85 # Realms support (Calin Velea) - http://vcalinus.gemenii.ro/quaggarealms.html
86 use realms && epatch "${WORKDIR}/patch/${P}-realms.diff"
87
88 eautoreconf
89 }
90
91 src_configure() {
92 local myconf="--disable-static \
93 $(use_enable caps capabilities) \
94 $(use_enable snmp) \
95 $(use_with pam libpam) \
96 $(use_enable pcre pcreposix) \
97 $(use_enable tcp-zebra)
98 $(use_enable doc)"
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 }