Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: net-misc/radvd/
Date: Wed, 28 Aug 2019 22:31:19
Message-Id: 1567031459.1ac3e7ac4506890f9841c03c9108361bbd8f2837.anarchy@gentoo
1 commit: 1ac3e7ac4506890f9841c03c9108361bbd8f2837
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 28 22:30:59 2019 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 28 22:30:59 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=1ac3e7ac
7
8 net-misc/radvd: add ver. 2.18 from portage tree
9
10 Package-Manager: Portage-2.3.73, Repoman-2.3.17
11 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
12
13 net-misc/radvd/Manifest | 1 +
14 net-misc/radvd/radvd-2.18.ebuild | 69 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 70 insertions(+)
16
17 diff --git a/net-misc/radvd/Manifest b/net-misc/radvd/Manifest
18 index bdb319c..8658b7a 100644
19 --- a/net-misc/radvd/Manifest
20 +++ b/net-misc/radvd/Manifest
21 @@ -1 +1,2 @@
22 DIST radvd-2.17.tar.gz 214937 BLAKE2B 1eec22e09607c0396f9539aef203b76d5beca18d1fdf5aa0ff202dcb2ff0e36ed8af74fc7900eb7b16012bfb0672f9660f17c88c222ac0269947d3cf4a270db3 SHA512 117a42c2c007d730b956cf999ac281f50a1a9b57c9428fe0f860cb211ac234ec62f59fead244a80191aaa15ef4ce96fb7dba9bd1a3cb6c3b29f1b6897d7a6132
23 +DIST radvd-2.18.tar.gz 224183 BLAKE2B 4bacf9e17b78286a032ca5e6b6424aa8742d2e42b3a00a67e5d8beeda139a70a574e69c0d8fde2c2754b6e9c9e92a97dfb6a2a67b4b3ce91740aa8edee994c5e SHA512 b66068ec40d4f228f679946039d7c696bf611eb55b88cb37bbea5e748cf7cdda796dc0b12e0f1e54b26a6af21750c8714ea18a152ef932741c0f0a6a7a9de59a
24
25 diff --git a/net-misc/radvd/radvd-2.18.ebuild b/net-misc/radvd/radvd-2.18.ebuild
26 new file mode 100644
27 index 0000000..ed92b4e
28 --- /dev/null
29 +++ b/net-misc/radvd/radvd-2.18.ebuild
30 @@ -0,0 +1,69 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit systemd user eutils readme.gentoo-r1
37 +
38 +DESCRIPTION="Linux IPv6 Router Advertisement Daemon"
39 +HOMEPAGE="http://v6web.litech.org/radvd/"
40 +SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz"
41 +
42 +LICENSE="BSD"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd"
45 +IUSE="kernel_FreeBSD selinux test"
46 +
47 +CDEPEND="dev-libs/libdaemon"
48 +DEPEND="${CDEPEND}
49 + sys-devel/bison
50 + sys-devel/flex
51 + virtual/pkgconfig
52 + test? ( dev-libs/check )"
53 +RDEPEND="${CDEPEND}
54 + selinux? ( sec-policy/selinux-radvd )
55 +"
56 +DOCS=( CHANGES README TODO radvd.conf.example )
57 +
58 +PATCHES=( "${FILESDIR}"/"${PN}"-2.17-r1-musl.patch
59 +)
60 +
61 +pkg_setup() {
62 + enewgroup radvd
63 + enewuser radvd -1 -1 /dev/null radvd
64 +}
65 +
66 +src_configure() {
67 + econf --with-pidfile=/run/radvd/radvd.pid \
68 + --disable-silent-rules \
69 + --with-systemdsystemunitdir=no \
70 + $(use_with test check)
71 +}
72 +
73 +src_install() {
74 + default
75 +
76 + insinto /usr/share/doc/${PF}/html
77 + doins INTRO.html
78 +
79 + newinitd "${FILESDIR}"/${PN}-2.15.init ${PN}
80 + newconfd "${FILESDIR}"/${PN}.conf ${PN}
81 +
82 + systemd_dounit "${FILESDIR}"/${PN}.service
83 +
84 + if use kernel_FreeBSD ; then
85 + sed -i -e \
86 + 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \
87 + "${D}"/etc/init.d/${PN} || die
88 + fi
89 +
90 + readme.gentoo_create_doc
91 +}
92 +
93 +DISABLE_AUTOFORMATTING=1
94 +DOC_CONTENTS="Please create a configuration file ${ROOT}etc/radvd.conf.
95 +See ${ROOT}usr/share/doc/${PF} for an example.
96 +
97 +grsecurity users should allow a specific group to read /proc
98 +and add the radvd user to that group, otherwise radvd may
99 +segfault on startup."