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

Contents of /net-misc/radvd/radvd-1.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Nov 10 08:25:54 2011 UTC (8 years ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove security affected versions (bug 385967)

(Portage version: 2.1.10.11/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20