1 |
commit: 06bfe27751119abe74ae5a25b0173f38f9f61f0e |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 30 00:34:50 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 30 00:34:50 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=06bfe277 |
7 |
|
8 |
net-misc/radvd: in tree version works |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-misc/radvd/Manifest | 10 --- |
13 |
net-misc/radvd/files/radvd-1.9.1.init | 71 ------------------ |
14 |
.../radvd/files/radvd-2.10-musl-libc-fix.patch | 87 ---------------------- |
15 |
net-misc/radvd/files/radvd.conf | 11 --- |
16 |
net-misc/radvd/files/radvd.service | 15 ---- |
17 |
net-misc/radvd/files/radvd.tmpfilesd | 1 - |
18 |
net-misc/radvd/metadata.xml | 12 --- |
19 |
net-misc/radvd/radvd-2.10-r99.ebuild | 72 ------------------ |
20 |
net-misc/radvd/radvd-2.11-r99.ebuild | 73 ------------------ |
21 |
9 files changed, 352 deletions(-) |
22 |
|
23 |
diff --git a/net-misc/radvd/Manifest b/net-misc/radvd/Manifest |
24 |
deleted file mode 100644 |
25 |
index 241610b..0000000 |
26 |
--- a/net-misc/radvd/Manifest |
27 |
+++ /dev/null |
28 |
@@ -1,10 +0,0 @@ |
29 |
-AUX radvd-1.9.1.init 1660 SHA256 7043465373b0f80d7b7705079797bacfcb6778ed9da0a854ff6ff8d87e070712 SHA512 098795ce220895e049ec77652c3e93994196a4451560572d91d0cc5ae19cb95cf34a5d7a53fa1edf46f85bb35436a1399061244e47a590706feb439b649c8444 WHIRLPOOL bd8d2cabbbd288ea5f7cfec0ca4c4b200008c2e0de1206f9bd8f80ce5d03928363c112efd67c7d7ea9fd3fc4a535ca84052c10011b75aa53349d9f8b46345c9d |
30 |
-AUX radvd-2.10-musl-libc-fix.patch 2282 SHA256 8b6b9b40ffb5bf62a222447b79d34dc5bbdf5a685a927ed07b7b75c56c93eec7 SHA512 aa33c08cccf6d59fca13feddd984d6c5c03d2fa9ab596efaa16ad10c1f231454f3eb6a1150ad2d695f8f739bb884b32b27052cbf34bcaa4baee8de9e07e33f88 WHIRLPOOL bde401e4aebc13df63e2b54547dec4a8613979e9e5252ba18ba47b50cb477c9084d7d642c63c9f3aa650e16b0e10c10866fd52bd674b5f3fa246894a84106963 |
31 |
-AUX radvd.conf 445 SHA256 a9c704a481fc7c24d4ed3e21aa6bf8979fca6e81b93d86a86b40e4433d03809c SHA512 386a6cdee43a0aa157760a590b9daa52e06e2c344a8d191a188c6174281734df95b82121e92d3c01e6c0fe76658dbdf6467dee2b30e2e010fc57dc8e0666b2cc WHIRLPOOL 406aed79b6611cef5ae8eff40d474a02539064205f28ef4d3b13b6d7ea5699eaf9fa7d8d373a95d7198f8ad3fd48f15159f93da199266b1913ff789a0f497f21 |
32 |
-AUX radvd.service 371 SHA256 bf32735579f54745e544ccdaccf1dd620c65042bf25ffc37581f3fd0a5a908ad SHA512 36050f79759e8d5a97d4954fbcf455be31ffc7adba1a3b587c1c1e5902c495cfff22f6573b4da7d56476d4b7194e1c5802e7df6f2d7911fc832a3214402f58fd WHIRLPOOL 001bbdda3b7a2b226bd4be7d00ae305ff09b146aa797db50d54f0099a41403dffea17a2799058d10d76e6707bfe052bd0aaf8b215b329cf606c7687eca622d6e |
33 |
-AUX radvd.tmpfilesd 30 SHA256 da69653b29db8af0f757d9f968882db566c4284a4cc9d7d29516d4c82dd463bb SHA512 d126bc90083e0f8aefda8cbd3cd01ecc9beb0eb05713c2d9fb5315bc10337d927b3c9e52c390e35799d1421078b365793772a712c33028be35280cd083cf65c3 WHIRLPOOL 1a9b3438b9f80503ab2c26fff46aa95aa1b86c181ebda643c133ffb31ae9e81c77f75f263e45b8e226d0fab556be90cbcbf8e774ccd154f2ad34cd888f3928b6 |
34 |
-DIST radvd-2.10.tar.gz 202426 SHA256 b41867c5b0375f786bebbd3fc88776d41927aa392eeba954e4b88f8ec7e8f13e SHA512 cfc34ad414bd07e22519982f8c3fa75cb27eab54131d0af09d6dd5fbb69da3de26fda776593e1a4e2735b63fc7cc2224663665854895d8be459f43ba4012fa26 WHIRLPOOL 5689d137313e75e30f370637bc92f4e242f2a4e2675b0ee34f1824a66e7efcf4ad683e121375623b62f015dd59a664511f2dbcff229c70a9d55c083dc7fef98f |
35 |
-DIST radvd-2.11.tar.gz 202596 SHA256 80ad60b15689e9591a5af393a57a1d93304deeff2e46482f0fd98046c00622f8 SHA512 35fc641b81cc76de677c8e55a61c8b28d9167d8f40a3fa7adf2a254293ca2d7856ca2c8f6d3bdba391bf873345d3019c0f572ee166eaba011ae874b176c85d4b WHIRLPOOL 058ecf265881963e44267945349e56f1b5bb402b8e4605bd852a8e3ced00419e0028eee70028819433bbc7d596f938d94fef1145ea615c66a975feb9fe4aa56c |
36 |
-EBUILD radvd-2.10-r99.ebuild 1831 SHA256 c08efad503659d5fb7964b87562b284e0078fcf35619a723eee135670ad0319c SHA512 e45ec08becc0fbb9277b45c7c2931a59e2aefe9a2e33e89e43b7afbc897821fca89172933ea9174769ef02a059e7d557522938b878fb40850e073e7d28612af8 WHIRLPOOL f1622894599c9cdb7cfe8344e19f6bdfec92c1cfa93c88629c448c4a729d0f0b9e89548999066545e9091161607b23c45877801a3f92faba03916dbab033794d |
37 |
-EBUILD radvd-2.11-r99.ebuild 1877 SHA256 c3d3b0c4b28b348f2b21f979e58aa938765691f8c0d584f0d8e2a60ce2513ac5 SHA512 8daf3862fae9b6ed26cbecdade688851ca3a741a85ffe1743f4df913dcbbc9e70796cecf64dd174ff39543dfa669d299b184ada0498949937e5fe14d28daac20 WHIRLPOOL a351cdfaf234fb894769d5044395c251d421386257178e2ae426f0e2ad757bc0d18c3c4ff80ae2af0a4a329c01b9eacd307aa86fedae18d721abc2e709b7a2b0 |
38 |
-MISC metadata.xml 358 SHA256 bec35a0e8930b15060537b1503c650195adff19b2474a3fd2999ca4978e7060f SHA512 3d5a0cff9bc15adc735715969e1d5e5dbb88d1b938f12291b5e1f2b63e5eead0e598b6abb71a740867551f28a50567c4006a77fde240603aded2d956ad784485 WHIRLPOOL 18ea7b32b08d1febdf810d0d9af5aa37b477bdbce484caa59452e0f70bd9883c401b43cda0f86d4cfe23d103eead6db0385db6a2f60e2e678e582526861d10fd |
39 |
|
40 |
diff --git a/net-misc/radvd/files/radvd-1.9.1.init b/net-misc/radvd/files/radvd-1.9.1.init |
41 |
deleted file mode 100644 |
42 |
index c44d861..0000000 |
43 |
--- a/net-misc/radvd/files/radvd-1.9.1.init |
44 |
+++ /dev/null |
45 |
@@ -1,71 +0,0 @@ |
46 |
-#!/sbin/runscript |
47 |
-# Copyright 1999-2014 Gentoo Foundation |
48 |
-# Distributed under the terms of the GNU General Public License v2 |
49 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd-1.9.1.init,v 1.2 2014/02/18 03:33:37 prometheanfire Exp $ |
50 |
- |
51 |
-CONFIGFILE=/etc/radvd.conf |
52 |
-PIDFILE=/var/run/radvd/radvd.pid |
53 |
-SYSCTL_FORWARD=net.ipv6.conf.all.forwarding |
54 |
- |
55 |
-extra_started_commands="reload" |
56 |
- |
57 |
-depend() { |
58 |
- need net |
59 |
-} |
60 |
- |
61 |
-checkconfig() { |
62 |
- if [ ! -f "${CONFIGFILE}" ]; then |
63 |
- eerror "Configuration file ${CONFIGFILE} not found" |
64 |
- return 1 |
65 |
- fi |
66 |
- |
67 |
- if ! /usr/sbin/radvd -c -C "${CONFIGFILE}" ; then |
68 |
- eerror "Configuration file ${CONFIGFILE} failed test" |
69 |
- return 1 |
70 |
- fi |
71 |
- |
72 |
- checkpath -d -o radvd:radvd ${PIDFILE%/*} |
73 |
-} |
74 |
- |
75 |
-start() { |
76 |
- if [ "${FORWARD}" != "no" ]; then |
77 |
- ebegin "Enabling IPv6 forwarding" |
78 |
- sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null |
79 |
- eend $? |
80 |
- fi |
81 |
- |
82 |
- checkconfig || return 1 |
83 |
- |
84 |
- ebegin "Starting IPv6 Router Advertisement Daemon" |
85 |
- start-stop-daemon --start --exec /usr/sbin/radvd \ |
86 |
- --pidfile "${PIDFILE}" \ |
87 |
- -- -C "${CONFIGFILE}" -p "${PIDFILE}" -u radvd ${OPTIONS} |
88 |
- eend $? |
89 |
-} |
90 |
- |
91 |
-stop() { |
92 |
- ebegin "Stopping IPv6 Router Advertisement Daemon" |
93 |
- start-stop-daemon --stop --exec /usr/sbin/radvd --pidfile "${PIDFILE}" |
94 |
- eend $? |
95 |
- |
96 |
- if [ "${FORWARD}" != "no" ]; then |
97 |
- ebegin "Disabling IPv6 forwarding" |
98 |
- sysctl -w "${SYSCTL_FORWARD}=0" > /dev/null |
99 |
- eend $? |
100 |
- fi |
101 |
-} |
102 |
- |
103 |
-reload() { |
104 |
- if [ "${FORWARD}" != "no" ]; then |
105 |
- ebegin "Enabling IPv6 forwarding" |
106 |
- sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null |
107 |
- eend $? |
108 |
- fi |
109 |
- |
110 |
- checkconfig || return 1 |
111 |
- |
112 |
- ebegin "Reloading IPv6 Router Advertisement Daemon" |
113 |
- start-stop-daemon --signal HUP \ |
114 |
- --exec /usr/sbin/radvd --pidfile "${PIDFILE}" |
115 |
- eend $? |
116 |
-} |
117 |
|
118 |
diff --git a/net-misc/radvd/files/radvd-2.10-musl-libc-fix.patch b/net-misc/radvd/files/radvd-2.10-musl-libc-fix.patch |
119 |
deleted file mode 100644 |
120 |
index c44f284..0000000 |
121 |
--- a/net-misc/radvd/files/radvd-2.10-musl-libc-fix.patch |
122 |
+++ /dev/null |
123 |
@@ -1,87 +0,0 @@ |
124 |
-From 1d8973e13d89802eee0b648451e2b97ac65cf9e0 Mon Sep 17 00:00:00 2001 |
125 |
-From: Reuben Hawkins <reubenhwk@×××××.com> |
126 |
-Date: Sat, 16 May 2015 09:27:38 -0700 |
127 |
-Subject: [PATCH] device-linux.c: IEEE 802.15.4 musl libc fix |
128 |
- |
129 |
-The ARPHRD_IEEE802154 macro's definition and name have been recently |
130 |
-moved around from kernel header to glibc headers. Include linux/if_arp.h |
131 |
-if available and then use either ARPHRD_IEEE802154_MONITOR or ARPHRD_IEEE802154_PHY, |
132 |
-whichever comes first. |
133 |
---- |
134 |
- configure.ac | 1 + |
135 |
- device-linux.c | 8 ++++++++ |
136 |
- includes.h | 6 ++++++ |
137 |
- 3 files changed, 15 insertions(+) |
138 |
- |
139 |
-diff --git a/configure.ac b/configure.ac |
140 |
-index 0c1efd6..4bd4c9d 100644 |
141 |
---- a/configure.ac |
142 |
-+++ b/configure.ac |
143 |
-@@ -156,6 +156,7 @@ AC_HEADER_STDC |
144 |
- AC_CHECK_HEADERS( \ |
145 |
- getopt.h \ |
146 |
- ifaddrs.h \ |
147 |
-+ linux/if_arp.h \ |
148 |
- machine/limits.h \ |
149 |
- machine/param.h \ |
150 |
- net/if_arp.h \ |
151 |
-diff --git a/device-linux.c b/device-linux.c |
152 |
-index fa7d978..de83f2e 100644 |
153 |
---- a/device-linux.c |
154 |
-+++ b/device-linux.c |
155 |
-@@ -79,10 +79,12 @@ int update_device_info(int sock, struct Interface *iface) |
156 |
- iface->sllao.if_maxmtu = -1; |
157 |
- break; |
158 |
- #endif /* ARPHDR_ARCNET */ |
159 |
-+#ifdef ARPHRD_IEEE802154 |
160 |
- case ARPHRD_IEEE802154: |
161 |
- iface->sllao.if_hwaddr_len = 64; |
162 |
- iface->sllao.if_prefix_len = 64; |
163 |
- break; |
164 |
-+#endif |
165 |
- default: |
166 |
- iface->sllao.if_hwaddr_len = -1; |
167 |
- iface->sllao.if_prefix_len = -1; |
168 |
-@@ -371,9 +373,15 @@ static char const *hwstr(unsigned short sa_family) |
169 |
- case ARPHRD_IEEE802154: |
170 |
- rc = "ARPHRD_IEEE802154"; |
171 |
- break; |
172 |
-+#if ARPHRD_IEEE802154_MONITOR |
173 |
-+ case ARPHRD_IEEE802154_MONITOR: |
174 |
-+ rc = "ARPHRD_IEEE802154_MONITOR"; |
175 |
-+ break; |
176 |
-+#elif ARPHRD_IEEE802154_PHY |
177 |
- case ARPHRD_IEEE802154_PHY: |
178 |
- rc = "ARPHRD_IEEE802154_PHY"; |
179 |
- break; |
180 |
-+#endif |
181 |
- case ARPHRD_VOID: |
182 |
- rc = "ARPHRD_VOID"; |
183 |
- break; |
184 |
-diff --git a/includes.h b/includes.h |
185 |
-index 39a36d2..d2449c4 100644 |
186 |
---- a/includes.h |
187 |
-+++ b/includes.h |
188 |
-@@ -81,9 +81,11 @@ |
189 |
- #ifdef HAVE_NET_IF_DL_H |
190 |
- #include <net/if_dl.h> |
191 |
- #endif |
192 |
-+ |
193 |
- #ifdef HAVE_NET_IF_TYPES_H |
194 |
- #include <net/if_types.h> |
195 |
- #endif |
196 |
-+ |
197 |
- #if defined(HAVE_NET_IF_ARP_H) && !defined(ARPHRD_ETHER) |
198 |
- #include <net/if_arp.h> |
199 |
- #endif /* defined(HAVE_NET_IF_ARP_H) && !defined(ARPHRD_ETHER) */ |
200 |
-@@ -100,3 +102,7 @@ |
201 |
- #include <ifaddrs.h> |
202 |
- #endif |
203 |
- |
204 |
-+#ifdef HAVE_LINUX_IF_ARP_H |
205 |
-+#include <linux/if_arp.h> |
206 |
-+#endif |
207 |
-+ |
208 |
--- |
209 |
-2.3.6 |
210 |
- |
211 |
|
212 |
diff --git a/net-misc/radvd/files/radvd.conf b/net-misc/radvd/files/radvd.conf |
213 |
deleted file mode 100644 |
214 |
index e025c68..0000000 |
215 |
--- a/net-misc/radvd/files/radvd.conf |
216 |
+++ /dev/null |
217 |
@@ -1,11 +0,0 @@ |
218 |
-# Copyright 1999-2005 Gentoo Foundation |
219 |
-# Distributed under the terms of the GNU General Public License v2 |
220 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd.conf,v 1.1 2006/07/19 13:02:36 uberlord Exp $ |
221 |
- |
222 |
-# Extra options to pass to radvd |
223 |
-OPTIONS="" |
224 |
- |
225 |
-# Set this to "no" to tell the init script NOT to set up IPv6 forwarding |
226 |
-# using /proc/sys/net/ipv6/conf/all/forwarding |
227 |
-# Only change this if you know what you're doing! |
228 |
-FORWARD="yes" |
229 |
|
230 |
diff --git a/net-misc/radvd/files/radvd.service b/net-misc/radvd/files/radvd.service |
231 |
deleted file mode 100644 |
232 |
index d9095f6..0000000 |
233 |
--- a/net-misc/radvd/files/radvd.service |
234 |
+++ /dev/null |
235 |
@@ -1,15 +0,0 @@ |
236 |
-[Unit] |
237 |
-Description=Router advertisement daemon for IPv6 |
238 |
-Documentation=man:radvd(8) |
239 |
-After=network.target |
240 |
- |
241 |
-[Service] |
242 |
-Type=forking |
243 |
-ExecStart=/usr/sbin/radvd --username radvd --logmethod stderr --debug 0 |
244 |
-ExecReload=/usr/sbin/radvd --configtest ; \ |
245 |
- /bin/kill -HUP $MAINPID |
246 |
-CPUSchedulingPolicy=idle |
247 |
-PIDFile=/run/radvd/radvd.pid |
248 |
- |
249 |
-[Install] |
250 |
-WantedBy=multi-user.target |
251 |
|
252 |
diff --git a/net-misc/radvd/files/radvd.tmpfilesd b/net-misc/radvd/files/radvd.tmpfilesd |
253 |
deleted file mode 100644 |
254 |
index 26f203d..0000000 |
255 |
--- a/net-misc/radvd/files/radvd.tmpfilesd |
256 |
+++ /dev/null |
257 |
@@ -1 +0,0 @@ |
258 |
-d /run/radvd 0755 radvd radvd |
259 |
|
260 |
diff --git a/net-misc/radvd/metadata.xml b/net-misc/radvd/metadata.xml |
261 |
deleted file mode 100644 |
262 |
index 8307f5e..0000000 |
263 |
--- a/net-misc/radvd/metadata.xml |
264 |
+++ /dev/null |
265 |
@@ -1,12 +0,0 @@ |
266 |
-<?xml version="1.0" encoding="UTF-8"?> |
267 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
268 |
-<pkgmetadata> |
269 |
- <maintainer type="person"> |
270 |
- <email>xmw@g.o</email> |
271 |
- <name>Michael Weber</name> |
272 |
- </maintainer> |
273 |
- <maintainer type="person"> |
274 |
- <email>prometheanfire@g.o</email> |
275 |
- <name>Matthew Thode</name> |
276 |
- </maintainer> |
277 |
-</pkgmetadata> |
278 |
|
279 |
diff --git a/net-misc/radvd/radvd-2.10-r99.ebuild b/net-misc/radvd/radvd-2.10-r99.ebuild |
280 |
deleted file mode 100644 |
281 |
index fa4e771..0000000 |
282 |
--- a/net-misc/radvd/radvd-2.10-r99.ebuild |
283 |
+++ /dev/null |
284 |
@@ -1,72 +0,0 @@ |
285 |
-# Copyright 1999-2015 Gentoo Foundation |
286 |
-# Distributed under the terms of the GNU General Public License v2 |
287 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-2.10.ebuild,v 1.5 2015/05/21 13:29:04 ago Exp $ |
288 |
- |
289 |
-EAPI=4 |
290 |
- |
291 |
-inherit systemd user eutils readme.gentoo |
292 |
- |
293 |
-DESCRIPTION="Linux IPv6 Router Advertisement Daemon" |
294 |
-HOMEPAGE="http://v6web.litech.org/radvd/" |
295 |
-SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz" |
296 |
- |
297 |
-LICENSE="BSD" |
298 |
-SLOT="0" |
299 |
-KEYWORDS="amd64 ~arm hppa ppc ~sparc x86 ~x86-fbsd" |
300 |
-IUSE="kernel_FreeBSD selinux" |
301 |
- |
302 |
-CDEPEND="dev-libs/libdaemon" |
303 |
-DEPEND="${CDEPEND} |
304 |
- dev-libs/check |
305 |
- sys-devel/bison |
306 |
- sys-devel/flex |
307 |
- virtual/pkgconfig" |
308 |
-RDEPEND="${CDEPEND} |
309 |
- selinux? ( sec-policy/selinux-radvd ) |
310 |
-" |
311 |
-DOCS=( CHANGES README TODO radvd.conf.example ) |
312 |
- |
313 |
-pkg_setup() { |
314 |
- enewgroup radvd |
315 |
- enewuser radvd -1 -1 /dev/null radvd |
316 |
- |
317 |
- # force ownership of radvd user and group (bug #19647) |
318 |
- [[ -d ${ROOT}/var/run/radvd ]] && chown radvd:radvd "${ROOT}"/var/run/radvd |
319 |
-} |
320 |
- |
321 |
-src_prepare() { |
322 |
- epatch "${FILESDIR}"/${PN}-2.10-musl-libc-fix.patch |
323 |
-} |
324 |
- |
325 |
-src_configure() { |
326 |
- econf --with-pidfile=/var/run/radvd/radvd.pid \ |
327 |
- --disable-silent-rules |
328 |
-} |
329 |
- |
330 |
-src_install() { |
331 |
- default |
332 |
- |
333 |
- dohtml INTRO.html |
334 |
- |
335 |
- newinitd "${FILESDIR}"/${PN}-1.9.1.init ${PN} |
336 |
- newconfd "${FILESDIR}"/${PN}.conf ${PN} |
337 |
- |
338 |
- systemd_dounit "${FILESDIR}"/${PN}.service |
339 |
- systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}.conf |
340 |
- |
341 |
- if use kernel_FreeBSD ; then |
342 |
- sed -i -e \ |
343 |
- 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \ |
344 |
- "${D}"/etc/init.d/${PN} || die |
345 |
- fi |
346 |
- |
347 |
- readme.gentoo_create_doc |
348 |
-} |
349 |
- |
350 |
-DISABLE_AUTOFORMATTING=1 |
351 |
-DOC_CONTENTS="Please create a configuratoion ${ROOT}etc/radvd.conf. |
352 |
-See ${ROOT}usr/share/doc/${PF} for an example. |
353 |
- |
354 |
-grsecurity users should allow a specific group to read /proc |
355 |
-and add the radvd user to that group, otherwise radvd may |
356 |
-segfault on startup." |
357 |
|
358 |
diff --git a/net-misc/radvd/radvd-2.11-r99.ebuild b/net-misc/radvd/radvd-2.11-r99.ebuild |
359 |
deleted file mode 100644 |
360 |
index b66e624..0000000 |
361 |
--- a/net-misc/radvd/radvd-2.11-r99.ebuild |
362 |
+++ /dev/null |
363 |
@@ -1,73 +0,0 @@ |
364 |
-# Copyright 1999-2015 Gentoo Foundation |
365 |
-# Distributed under the terms of the GNU General Public License v2 |
366 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-2.11.ebuild,v 1.1 2015/04/24 01:35:16 xmw Exp $ |
367 |
- |
368 |
-EAPI=4 |
369 |
- |
370 |
-inherit systemd user eutils readme.gentoo |
371 |
- |
372 |
-DESCRIPTION="Linux IPv6 Router Advertisement Daemon" |
373 |
-HOMEPAGE="http://v6web.litech.org/radvd/" |
374 |
-SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz" |
375 |
- |
376 |
-LICENSE="BSD" |
377 |
-SLOT="0" |
378 |
-KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" |
379 |
-IUSE="kernel_FreeBSD selinux test" |
380 |
- |
381 |
-CDEPEND="dev-libs/libdaemon" |
382 |
-DEPEND="${CDEPEND} |
383 |
- sys-devel/bison |
384 |
- sys-devel/flex |
385 |
- virtual/pkgconfig |
386 |
- test? ( dev-libs/check )" |
387 |
-RDEPEND="${CDEPEND} |
388 |
- selinux? ( sec-policy/selinux-radvd ) |
389 |
-" |
390 |
-DOCS=( CHANGES README TODO radvd.conf.example ) |
391 |
- |
392 |
-pkg_setup() { |
393 |
- enewgroup radvd |
394 |
- enewuser radvd -1 -1 /dev/null radvd |
395 |
- |
396 |
- # force ownership of radvd user and group (bug #19647) |
397 |
- [[ -d ${ROOT}/var/run/radvd ]] && chown radvd:radvd "${ROOT}"/var/run/radvd |
398 |
-} |
399 |
- |
400 |
-src_prepare() { |
401 |
- epatch "${FILESDIR}"/${PN}-2.10-musl-libc-fix.patch |
402 |
-} |
403 |
- |
404 |
-src_configure() { |
405 |
- econf --with-pidfile=/var/run/radvd/radvd.pid \ |
406 |
- --disable-silent-rules \ |
407 |
- $(use_with test check) |
408 |
-} |
409 |
- |
410 |
-src_install() { |
411 |
- default |
412 |
- |
413 |
- dohtml INTRO.html |
414 |
- |
415 |
- newinitd "${FILESDIR}"/${PN}-1.9.1.init ${PN} |
416 |
- newconfd "${FILESDIR}"/${PN}.conf ${PN} |
417 |
- |
418 |
- systemd_dounit "${FILESDIR}"/${PN}.service |
419 |
- systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}.conf |
420 |
- |
421 |
- if use kernel_FreeBSD ; then |
422 |
- sed -i -e \ |
423 |
- 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \ |
424 |
- "${D}"/etc/init.d/${PN} || die |
425 |
- fi |
426 |
- |
427 |
- readme.gentoo_create_doc |
428 |
-} |
429 |
- |
430 |
-DISABLE_AUTOFORMATTING=1 |
431 |
-DOC_CONTENTS="Please create a configuratoion ${ROOT}etc/radvd.conf. |
432 |
-See ${ROOT}usr/share/doc/${PF} for an example. |
433 |
- |
434 |
-grsecurity users should allow a specific group to read /proc |
435 |
-and add the radvd user to that group, otherwise radvd may |
436 |
-segfault on startup." |