/[gentoo-x86]/net-misc/radvd/radvd-1.8.5-r1.ebuild
Gentoo

Contents of /net-misc/radvd/radvd-1.8.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Jul 29 17:56:15 2012 UTC (2 years, 4 months ago) by armin76
Branch: MAIN
Changes since 1.7: +2 -2 lines
sparc stable wrt #417999

(Portage version: 2.1.11.5/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-1.8.5-r1.ebuild,v 1.7 2012/06/21 15:13:20 jer Exp $
4
5 EAPI=4
6
7 inherit user
8
9 DESCRIPTION="Linux IPv6 Router Advertisement Daemon"
10 HOMEPAGE="http://v6web.litech.org/radvd/"
11 SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="amd64 arm hppa ppc sparc x86 ~x86-fbsd"
16 IUSE="kernel_FreeBSD selinux"
17
18 DEPEND="sys-devel/bison
19 sys-devel/flex
20 selinux? ( sec-policy/selinux-radvd )"
21 RDEPEND="selinux? ( sec-policy/selinux-radvd )"
22
23 DOCS=( CHANGES README TODO radvd.conf.example )
24
25 pkg_setup() {
26 enewgroup radvd
27 enewuser radvd -1 -1 /dev/null radvd
28
29 # force ownership of radvd user and group (bug #19647)
30 [[ -d ${ROOT}/var/run/radvd ]] && chown radvd:radvd "${ROOT}"/var/run/radvd
31 }
32
33 src_configure() {
34 econf --with-pidfile=/var/run/radvd/radvd.pid
35 }
36
37 src_install() {
38 default
39
40 dohtml INTRO.html
41
42 newinitd "${FILESDIR}"/${P}.init ${PN}
43 newconfd "${FILESDIR}"/${PN}.conf ${PN}
44
45 # location of radvd.pid needs to be writeable by the radvd user
46 keepdir /var/run/radvd
47 fowners -R radvd:radvd /var/run/radvd
48 fperms 755 /var/run/radvd
49
50 if use kernel_FreeBSD ; then
51 sed -i -e \
52 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \
53 "${D}"/etc/init.d/${PN} || die
54 fi
55 }
56
57 pkg_postinst() {
58 elog
59 elog "To use ${PN} you must create the configuration file"
60 elog "${ROOT}etc/radvd.conf"
61 elog
62 elog "An example configuration file has been installed under"
63 elog "${ROOT}usr/share/doc/${PF}"
64 elog
65 elog "grsecurity users should allow a specific group to read /proc"
66 elog "and add the radvd user to that group, otherwise radvd may"
67 elog "segfault on startup."
68 }

  ViewVC Help
Powered by ViewVC 1.1.20