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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Jul 30 22:07:44 2014 UTC (5 years, 4 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Version bump, drop old.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2013 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.9.2-r1.ebuild,v 1.8 2013/03/14 14:23:43 vapier Exp $
4
5 EAPI=4
6
7 inherit systemd user eutils autotools
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 RDEPEND="dev-libs/libdaemon
19 selinux? ( sec-policy/selinux-radvd )"
20 DEPEND="${RDEPEND}
21 sys-devel/bison
22 sys-devel/flex
23 virtual/pkgconfig"
24
25 DOCS=( CHANGES README TODO radvd.conf.example )
26
27 pkg_setup() {
28 enewgroup radvd
29 enewuser radvd -1 -1 /dev/null radvd
30
31 # force ownership of radvd user and group (bug #19647)
32 [[ -d ${ROOT}/var/run/radvd ]] && chown radvd:radvd "${ROOT}"/var/run/radvd
33 }
34
35 src_prepare() {
36 epatch "${FILESDIR}"/${PN}-1.9.2-sysctl.patch
37 eautoreconf
38 }
39
40 src_configure() {
41 econf --with-pidfile=/var/run/radvd/radvd.pid
42 }
43
44 src_install() {
45 default
46
47 dohtml INTRO.html
48
49 newinitd "${FILESDIR}"/${PN}-1.9.1.init ${PN}
50 newconfd "${FILESDIR}"/${PN}.conf ${PN}
51
52 systemd_dounit "${FILESDIR}"/${PN}.service
53
54 if use kernel_FreeBSD ; then
55 sed -i -e \
56 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \
57 "${D}"/etc/init.d/${PN} || die
58 fi
59 }
60
61 pkg_postinst() {
62 einfo
63 elog "Please create a configuratoion ${ROOT}etc/radvd.conf."
64 elog "See ${ROOT}usr/share/doc/${PF} for an example."
65 einfo
66 elog "grsecurity users should allow a specific group to read /proc"
67 elog "and add the radvd user to that group, otherwise radvd may"
68 elog "segfault on startup."
69 }

  ViewVC Help
Powered by ViewVC 1.1.20