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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Mon Aug 29 10:46:49 2011 UTC (8 years, 3 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Version bump, remove old versions

(Portage version: 2.1.10.11/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20