1 |
commit: eb1c8c5848f08e9da1aba7473819f636ef79a687 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 6 19:57:58 2020 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 6 19:58:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb1c8c58 |
7 |
|
8 |
net-misc/radvd: fix direct call to ar |
9 |
|
10 |
Closes: https://bugs.gentoo.org/721272 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
13 |
|
14 |
net-misc/radvd/radvd-2.18-r1.ebuild | 73 +++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 73 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/radvd/radvd-2.18-r1.ebuild b/net-misc/radvd/radvd-2.18-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..44a31097acb |
20 |
--- /dev/null |
21 |
+++ b/net-misc/radvd/radvd-2.18-r1.ebuild |
22 |
@@ -0,0 +1,73 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit systemd user eutils readme.gentoo-r1 toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION="Linux IPv6 Router Advertisement Daemon" |
31 |
+HOMEPAGE="http://v6web.litech.org/radvd/" |
32 |
+SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="BSD" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
37 |
+IUSE="kernel_FreeBSD selinux test" |
38 |
+RESTRICT="!test? ( test )" |
39 |
+ |
40 |
+CDEPEND="dev-libs/libdaemon" |
41 |
+DEPEND="${CDEPEND} |
42 |
+ sys-devel/bison |
43 |
+ sys-devel/flex |
44 |
+ virtual/pkgconfig |
45 |
+ test? ( dev-libs/check )" |
46 |
+RDEPEND="${CDEPEND} |
47 |
+ selinux? ( sec-policy/selinux-radvd ) |
48 |
+" |
49 |
+DOCS=( CHANGES README TODO radvd.conf.example ) |
50 |
+ |
51 |
+PATCHES=( |
52 |
+) |
53 |
+ |
54 |
+pkg_setup() { |
55 |
+ enewgroup radvd |
56 |
+ enewuser radvd -1 -1 /dev/null radvd |
57 |
+} |
58 |
+ |
59 |
+src_configure() { |
60 |
+ econf --with-pidfile=/run/radvd/radvd.pid \ |
61 |
+ --with-systemdsystemunitdir=no \ |
62 |
+ $(use_with test check) |
63 |
+} |
64 |
+ |
65 |
+src_compile() { |
66 |
+ emake AR="$(tc-getAR)" |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ default |
71 |
+ |
72 |
+ insinto /usr/share/doc/${PF}/html |
73 |
+ doins INTRO.html |
74 |
+ |
75 |
+ newinitd "${FILESDIR}"/${PN}-2.15.init ${PN} |
76 |
+ newconfd "${FILESDIR}"/${PN}.conf ${PN} |
77 |
+ |
78 |
+ systemd_dounit "${FILESDIR}"/${PN}.service |
79 |
+ |
80 |
+ if use kernel_FreeBSD ; then |
81 |
+ sed -i -e \ |
82 |
+ 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \ |
83 |
+ "${D}"/etc/init.d/${PN} || die |
84 |
+ fi |
85 |
+ |
86 |
+ readme.gentoo_create_doc |
87 |
+} |
88 |
+ |
89 |
+DISABLE_AUTOFORMATTING=1 |
90 |
+DOC_CONTENTS="Please create a configuration file ${ROOT}etc/radvd.conf. |
91 |
+See ${ROOT}usr/share/doc/${PF} for an example. |
92 |
+ |
93 |
+grsecurity users should allow a specific group to read /proc |
94 |
+and add the radvd user to that group, otherwise radvd may |
95 |
+segfault on startup." |