Gentoo Archives: gentoo-commits

From: "Sergey Popov (pinkbyte)" <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/quagga: ChangeLog quagga-0.99.24.1.ebuild
Date: Thu, 23 Jul 2015 14:05:33
Message-Id: 20150723140530.A1B62C2@oystercatcher.gentoo.org
1 pinkbyte 15/07/23 14:05:30
2
3 Modified: ChangeLog
4 Added: quagga-0.99.24.1.ebuild
5 Log:
6 Version bump, add systemd support, wrt bug #553136
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x60C0742D1F357D42)
9
10 Revision Changes Path
11 1.175 net-misc/quagga/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.175&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?rev=1.175&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/ChangeLog?r1=1.174&r2=1.175
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v
20 retrieving revision 1.174
21 retrieving revision 1.175
22 diff -u -r1.174 -r1.175
23 --- ChangeLog 23 Jul 2015 14:02:02 -0000 1.174
24 +++ ChangeLog 23 Jul 2015 14:05:30 -0000 1.175
25 @@ -1,6 +1,16 @@
26 # ChangeLog for net-misc/quagga
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.174 2015/07/23 14:02:02 pinkbyte Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/ChangeLog,v 1.175 2015/07/23 14:05:30 pinkbyte Exp $
30 +
31 +*quagga-0.99.24.1 (23 Jul 2015)
32 +
33 + 23 Jul 2015; Sergey Popov <pinkbyte@g.o> +quagga-0.99.24.1.ebuild,
34 + +files/systemd/babeld.service, +files/systemd/bgpd.service,
35 + +files/systemd/isisd.service, +files/systemd/ospf6d.service,
36 + +files/systemd/ospfd.service, +files/systemd/pimd.service,
37 + +files/systemd/quagga.conf, +files/systemd/ripd.service,
38 + +files/systemd/ripngd.service, +files/systemd/zebra.service:
39 + Version bump, add systemd support, wrt bug #553136
40
41 23 Jul 2015; Sergey Popov <pinkbyte@g.o> -quagga-0.99.22.4.ebuild:
42 Drop old
43
44
45
46 1.1 net-misc/quagga/quagga-0.99.24.1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.24.1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/quagga-0.99.24.1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: quagga-0.99.24.1.ebuild
52 ===================================================================
53 # Copyright 1999-2015 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/quagga-0.99.24.1.ebuild,v 1.1 2015/07/23 14:05:30 pinkbyte Exp $
56
57 EAPI="5"
58
59 CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch
60
61 AUTOTOOLS_AUTORECONF=1
62 inherit autotools-utils eutils flag-o-matic multilib pam readme.gentoo systemd user
63
64 DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP"
65 HOMEPAGE="http://quagga.net/"
66 SRC_URI="mirror://nongnu/${PN}/${P}.tar.xz
67 bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_PATCH} )"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86"
72 IUSE="bgpclassless caps doc elibc_glibc ipv6 multipath ospfapi pam +readline snmp tcp-zebra"
73
74 COMMON_DEPEND="
75 caps? ( sys-libs/libcap )
76 snmp? ( net-analyzer/net-snmp )
77 readline? (
78 sys-libs/readline:0
79 pam? ( sys-libs/pam )
80 )
81 !elibc_glibc? ( dev-libs/libpcre )"
82 DEPEND="${COMMON_DEPEND}
83 app-arch/xz-utils
84 sys-apps/gawk
85 sys-devel/libtool:2"
86 RDEPEND="${COMMON_DEPEND}
87 sys-apps/iproute2"
88
89 PATCHES=( "${FILESDIR}/${PN}-0.99.22.4-ipctl-forwarding.patch" )
90
91 DISABLE_AUTOFORMATTING=1
92 DOC_CONTENTS="Sample configuration files can be found in /usr/share/doc/${PF}/samples
93 You have to create config files in /etc/quagga before
94 starting one of the daemons.
95
96 You can pass additional options to the daemon by setting the EXTRA_OPTS
97 variable in their respective file in /etc/conf.d"
98
99 pkg_setup() {
100 enewgroup quagga
101 enewuser quagga -1 -1 /var/empty quagga
102 }
103
104 src_prepare() {
105 # Classless prefixes for BGP
106 # http://hasso.linux.ee/doku.php/english:network:quagga
107 use bgpclassless && epatch "${DISTDIR}/${CLASSLESS_BGP_PATCH}"
108
109 autotools-utils_src_prepare
110 }
111
112 src_configure() {
113 append-flags -fno-strict-aliasing
114
115 # do not build PDF docs
116 export ac_cv_prog_PDFLATEX=no
117 export ac_cv_prog_LATEXMK=no
118
119 local myeconfargs=(
120 --enable-exampledir=/usr/share/doc/${PF}/samples
121 --enable-irdp
122 --enable-isisd --enable-isis-topology
123 --enable-pimd
124 --enable-user=quagga
125 --enable-group=quagga
126 --enable-vty-group=quagga
127 --with-cflags="${CFLAGS}"
128 --with-pkg-extra-version="-gentoo"
129 --sysconfdir=/etc/quagga
130 --localstatedir=/run/quagga
131 --disable-static
132 --disable-pie
133 $(use_enable caps capabilities)
134 $(usex snmp '--enable-snmp' '' '' '')
135 $(use_enable !elibc_glibc pcreposix)
136 $(use_enable tcp-zebra)
137 $(use_enable doc)
138 $(usex multipath $(use_enable multipath) '' '=0' '')
139 $(usex ospfapi '--enable-opaque-lsa --enable-ospf-te --enable-ospfclient' '' '' '')
140 $(use_enable readline vtysh)
141 $(use_with pam libpam)
142 $(use_enable ipv6 babeld) # babeld does not build properly with USE="-ipv6", bug #446289
143 $(use_enable ipv6 ripngd)
144 $(use_enable ipv6 ospf6d)
145 $(use_enable ipv6 rtadv)
146 )
147 autotools-utils_src_configure
148 }
149
150 src_install() {
151 autotools-utils_src_install
152 readme.gentoo_create_doc
153
154 keepdir /etc/quagga
155 fowners root:quagga /etc/quagga
156 fperms 0770 /etc/quagga
157
158 # Install systemd-related stuff, bug #553136
159 systemd_dotmpfilesd "${FILESDIR}/systemd/quagga.conf"
160 systemd_dounit "${FILESDIR}/systemd/zebra.service"
161
162 # install zebra as a file, symlink the rest
163 newinitd "${FILESDIR}"/quagga-services.init.3 zebra
164
165 for service in bgpd isisd ospfd pimd ripd $(use ipv6 && echo babeld ospf6d ripngd); do
166 dosym zebra /etc/init.d/${service}
167 systemd_dounit "${FILESDIR}/systemd/${service}.service"
168 done
169
170 use readline && use pam && newpamd "${FILESDIR}/quagga.pam" quagga
171
172 insinto /etc/logrotate.d
173 newins redhat/quagga.logrotate quagga
174 }