Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/radvd/
Date: Wed, 01 Feb 2017 10:02:42
Message-Id: 1485943349.f2146e7a0aa26abcb5a6ea1292d353da4a8c7865.xmw@gentoo
1 commit: f2146e7a0aa26abcb5a6ea1292d353da4a8c7865
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 1 09:59:59 2017 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 10:02:29 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2146e7a
7
8 net-misc/radvd: Version bump. Fix tmpfiles.d issue (bug 603106, thanks Randy Barlow).
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 net-misc/radvd/Manifest | 1 +
13 net-misc/radvd/radvd-2.16.ebuild | 72 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/net-misc/radvd/Manifest b/net-misc/radvd/Manifest
17 index 3ebb7f8..6d78f1b 100644
18 --- a/net-misc/radvd/Manifest
19 +++ b/net-misc/radvd/Manifest
20 @@ -1,2 +1,3 @@
21 DIST radvd-2.14.tar.gz 211461 SHA256 46d31c05daea11c3d1e3dc092997d3631b3bc72b20a4f279b05304b83dbd7aa8 SHA512 8fdfd776f998b82e9dcbb29a13e44b1ba060f2e4b03bae0167549fb58731f16e80e980f9636e0d7614270b8e6457779ac044b433c5c5d26d9fb72ea9e2d3cb02 WHIRLPOOL 6f2974c4e9d689052b36885c2b82425e346bdd7fd3a928a650f2c71debc7cd5e3c13504759fb5cec20641f4e6fdf35ce6a83fe3023f6efa00efff3da84b01954
22 DIST radvd-2.15.tar.gz 214256 SHA256 83dd770595e6182757fd652cfc46ee462b73d8d34ba0848a1d481c4d51143607 SHA512 51ed457814f32750f915e22556c739d0a574af6318d469ae77c42fb7dfce8752edc2b70e3dd910d46c6198a5a81e4be4611dd4e379920488f4d4427cda0a7ea0 WHIRLPOOL 3b8d9436b6c37088f7af0de06e12ef93a05ab2b71df0617e63d6ee106b336a22dfad3df07e6c0301da5bf4d8a646a2c2ce2a50d9ca991f541c51ce35ebb2b187
23 +DIST radvd-2.16.tar.gz 213901 SHA256 fe2d81b00120215b244749bdbb234579a059e71cc6d54bcdc56c68ae8f0c2e35 SHA512 7e4f882acca7b754cf452a710cef847150bc6da35a8e6c18f35764ec0dceffc5ec7e98008faed5e9e39754894fb72066a1a00da0e4b8b9b55b1d56f024a887f8 WHIRLPOOL ab544ecaca598ccf01c578bf517b465b7445ffa1233778fa5be32ca2db34ce483c6e52fcd5e80deff3e6619f172ae5bb95910eee45b2ba6bb954a586546ea33a
24
25 diff --git a/net-misc/radvd/radvd-2.16.ebuild b/net-misc/radvd/radvd-2.16.ebuild
26 new file mode 100644
27 index 00000000..3e0364d
28 --- /dev/null
29 +++ b/net-misc/radvd/radvd-2.16.ebuild
30 @@ -0,0 +1,72 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +
37 +inherit systemd user eutils readme.gentoo-r1 tmpfiles
38 +
39 +DESCRIPTION="Linux IPv6 Router Advertisement Daemon"
40 +HOMEPAGE="http://v6web.litech.org/radvd/"
41 +SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd"
46 +IUSE="kernel_FreeBSD selinux test"
47 +
48 +CDEPEND="dev-libs/libdaemon"
49 +DEPEND="${CDEPEND}
50 + sys-devel/bison
51 + sys-devel/flex
52 + virtual/pkgconfig
53 + test? ( dev-libs/check )"
54 +RDEPEND="${CDEPEND}
55 + selinux? ( sec-policy/selinux-radvd )
56 +"
57 +DOCS=( CHANGES README TODO radvd.conf.example )
58 +
59 +pkg_setup() {
60 + enewgroup radvd
61 + enewuser radvd -1 -1 /dev/null radvd
62 +}
63 +
64 +src_configure() {
65 + econf --with-pidfile=/run/radvd/radvd.pid \
66 + --disable-silent-rules \
67 + --with-systemdsystemunitdir=no \
68 + $(use_with test check)
69 +}
70 +
71 +src_install() {
72 + default
73 +
74 + insinto /usr/share/doc/${PF}/html
75 + doins INTRO.html
76 +
77 + newinitd "${FILESDIR}"/${PN}-2.15.init ${PN}
78 + newconfd "${FILESDIR}"/${PN}.conf ${PN}
79 +
80 + systemd_dounit "${FILESDIR}"/${PN}.service
81 + systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}.conf
82 +
83 + if use kernel_FreeBSD ; then
84 + sed -i -e \
85 + 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \
86 + "${D}"/etc/init.d/${PN} || die
87 + fi
88 +
89 + readme.gentoo_create_doc
90 +}
91 +
92 +pkg_postinst() {
93 + tmpfiles_process ${PN}.conf
94 +}
95 +
96 +DISABLE_AUTOFORMATTING=1
97 +DOC_CONTENTS="Please create a configuration file ${ROOT}etc/radvd.conf.
98 +See ${ROOT}usr/share/doc/${PF} for an example.
99 +
100 +grsecurity users should allow a specific group to read /proc
101 +and add the radvd user to that group, otherwise radvd may
102 +segfault on startup."