Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/quagga/
Date: Thu, 02 Feb 2017 14:40:46
Message-Id: 1486046431.2ce2743ed3ab62ba5328e3da9075a7ce380af264.pinkbyte@gentoo
1 commit: 2ce2743ed3ab62ba5328e3da9075a7ce380af264
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 2 14:40:09 2017 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 2 14:40:31 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ce2743e
7
8 net-misc/quagga: version bump
9
10 Gentoo-Bug: 607212
11
12 Package-Manager: portage-2.3.3
13
14 net-misc/quagga/Manifest | 1 +
15 net-misc/quagga/quagga-1.1.1.ebuild | 134 ++++++++++++++++++++++++++++++++++++
16 2 files changed, 135 insertions(+)
17
18 diff --git a/net-misc/quagga/Manifest b/net-misc/quagga/Manifest
19 index ed50e66..d043043 100644
20 --- a/net-misc/quagga/Manifest
21 +++ b/net-misc/quagga/Manifest
22 @@ -1,2 +1,3 @@
23 DIST ht-20040304-classless-bgp.patch 1581 SHA256 39993890f9e31d662ed0564c732fb22392a901beb45b64261ffeadd9edf27887 SHA512 3df102d8ab88aaee1f109a2310602d6f734f2268252e5e42df752df7db7abeac526e969289481c4abfe905dcd41c35dee65196c48ac320fe9d083305451476e8 WHIRLPOOL cef99d64d52ab8c28bd672fb93dfbd8d716a31c76a5403496a6d104a5ff39531d6085134124d41fe4ff7adf895fa001cbe77b6e42846d849d6c108c81583d04e
24 DIST quagga-1.1.0.tar.gz 2870278 SHA256 f7a43a9c59bfd3722002210530b2553c8d5cc05bfea5acd56d4f102b9f55dc63 SHA512 3b29a90c4f05593714bda3c702fd2c8886ce48fba2fbfb98f55cc04d1025edd5427944e9a9fb7cd630e5e8ccea388b72a8e611ab65c370e760f3f319d03f090f WHIRLPOOL ee4a78b1d20aa9e7e7aea1f0be2adee83efa0fd47a807a4ec1affb1e059fee156861b612f73716cbf80e96cc6676baed062b9440ea7664198078cd6760380573
25 +DIST quagga-1.1.1.tar.gz 2871705 SHA256 b5a94e5bdad3062e04595a5692b8cc435f0a85102f75dfdca0a06d093b4ef63f SHA512 51eb64ada07b42c663705cedf56be5b8b54143a5543b472e3dc7c703a4ab0542f39cfbeed64d1c33ceee6a15ea8d25ef84616fa40b6bf9cc32023f7241c18c58 WHIRLPOOL 795aa54b7930c441cbbc40a67db75865ccecada523164c906dd4a1b385b51820bff061ca58265fc67d1a814c8162d8b6e6758a4aab47ba54dab58cf846cb28be
26
27 diff --git a/net-misc/quagga/quagga-1.1.1.ebuild b/net-misc/quagga/quagga-1.1.1.ebuild
28 new file mode 100644
29 index 00000000..76d456f
30 --- /dev/null
31 +++ b/net-misc/quagga/quagga-1.1.1.ebuild
32 @@ -0,0 +1,134 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +CLASSLESS_BGP_PATCH=ht-20040304-classless-bgp.patch
40 +
41 +inherit autotools eutils flag-o-matic multilib pam readme.gentoo-r1 systemd user
42 +
43 +DESCRIPTION="A free routing daemon replacing Zebra supporting RIP, OSPF and BGP"
44 +HOMEPAGE="http://quagga.net/"
45 +SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz
46 + bgpclassless? ( http://hasso.linux.ee/stuff/patches/quagga/${CLASSLESS_BGP_PATCH} )"
47 +
48 +LICENSE="GPL-2"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~s390 ~sparc ~x86"
51 +
52 +IUSE="bgpclassless caps doc elibc_glibc ipv6 multipath ospfapi pam protobuf +readline snmp tcp-zebra"
53 +
54 +COMMON_DEPEND="
55 + caps? ( sys-libs/libcap )
56 + protobuf? ( dev-libs/protobuf-c:0= )
57 + readline? (
58 + sys-libs/readline:0=
59 + pam? ( sys-libs/pam )
60 + )
61 + snmp? ( net-analyzer/net-snmp )
62 + !elibc_glibc? ( dev-libs/libpcre )"
63 +DEPEND="${COMMON_DEPEND}
64 + sys-apps/gawk
65 + sys-devel/libtool:2"
66 +RDEPEND="${COMMON_DEPEND}
67 + sys-apps/iproute2"
68 +
69 +PATCHES=(
70 + "${FILESDIR}/${PN}-0.99.22.4-ipctl-forwarding.patch"
71 +)
72 +
73 +DISABLE_AUTOFORMATTING=1
74 +DOC_CONTENTS="Sample configuration files can be found in /usr/share/doc/${PF}/samples
75 +You have to create config files in /etc/quagga before
76 +starting one of the daemons.
77 +
78 +You can pass additional options to the daemon by setting the EXTRA_OPTS
79 +variable in their respective file in /etc/conf.d"
80 +
81 +pkg_setup() {
82 + enewgroup quagga
83 + enewuser quagga -1 -1 /var/empty quagga
84 +}
85 +
86 +src_prepare() {
87 + # Classless prefixes for BGP
88 + # http://hasso.linux.ee/doku.php/english:network:quagga
89 + use bgpclassless && eapply -p0 "${DISTDIR}/${CLASSLESS_BGP_PATCH}"
90 +
91 + eapply "${PATCHES[@]}"
92 + eapply_user
93 + eautoreconf
94 +}
95 +
96 +src_configure() {
97 + append-flags -fno-strict-aliasing
98 +
99 + # do not build PDF docs
100 + export ac_cv_prog_PDFLATEX=no
101 + export ac_cv_prog_LATEXMK=no
102 +
103 + econf \
104 + --enable-exampledir=/usr/share/doc/${PF}/samples \
105 + --enable-irdp \
106 + --enable-isisd \
107 + --enable-isis-topology \
108 + --enable-pimd \
109 + --enable-user=quagga \
110 + --enable-group=quagga \
111 + --enable-vty-group=quagga \
112 + --with-cflags="${CFLAGS}" \
113 + --with-pkg-extra-version="-gentoo" \
114 + --sysconfdir=/etc/quagga \
115 + --localstatedir=/run/quagga \
116 + --disable-static \
117 + $(use_enable caps capabilities) \
118 + $(usex snmp '--enable-snmp' '' '' '') \
119 + $(use_enable !elibc_glibc pcreposix) \
120 + $(use_enable tcp-zebra) \
121 + $(use_enable doc) \
122 + $(usex multipath $(use_enable multipath) '' '=0' '') \
123 + $(usex ospfapi '--enable-opaque-lsa --enable-ospf-te --enable-ospfclient' '' '' '') \
124 + $(use_enable readline vtysh) \
125 + $(use_with pam libpam) \
126 + $(use_enable protobuf) \
127 + $(use_enable ipv6 ripngd) \
128 + $(use_enable ipv6 ospf6d) \
129 + $(use_enable ipv6 rtadv)
130 +}
131 +
132 +src_install() {
133 + default
134 + prune_libtool_files
135 + readme.gentoo_create_doc
136 +
137 + keepdir /etc/quagga
138 + fowners root:quagga /etc/quagga
139 + fperms 0770 /etc/quagga
140 +
141 + # Path for PIDs before first reboot should be created here, bug #558194
142 + dodir /run/quagga
143 + fowners quagga:quagga /run/quagga
144 + fperms 0770 /run/quagga
145 +
146 + # Install systemd-related stuff, bug #553136
147 + systemd_dotmpfilesd "${FILESDIR}/systemd/quagga.conf"
148 + systemd_dounit "${FILESDIR}/systemd/zebra.service"
149 +
150 + # install zebra as a file, symlink the rest
151 + newinitd "${FILESDIR}"/quagga-services.init.3 zebra
152 +
153 + for service in bgpd isisd ospfd pimd ripd $(use ipv6 && echo ospf6d ripngd); do
154 + dosym zebra /etc/init.d/${service}
155 + systemd_dounit "${FILESDIR}/systemd/${service}.service"
156 + done
157 +
158 + use readline && use pam && newpamd "${FILESDIR}/quagga.pam" quagga
159 +
160 + insinto /etc/logrotate.d
161 + newins redhat/quagga.logrotate quagga
162 +}
163 +
164 +pkg_postinst() {
165 + readme.gentoo_print_elog
166 +}