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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Nov 2 09:16:28 2014 UTC (5 years, 2 months ago) by swift
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +6 -4 lines
Remove sec-policy/selinux-* dependency from DEPEND but keep in RDEPEND (bug #527698)

(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)

1 # Copyright 1999-2014 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.15.ebuild,v 1.1 2014/07/30 22:07:44 xmw Exp $
4
5 EAPI=4
6
7 inherit systemd user eutils
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 CDEPEND="dev-libs/libdaemon"
19 DEPEND="${CDEPEND}
20 sys-devel/bison
21 sys-devel/flex
22 virtual/pkgconfig"
23 RDEPEND="${CDEPEND}
24 selinux? ( sec-policy/selinux-radvd )
25 "
26
27 DOCS=( CHANGES-1 README TODO radvd.conf.example )
28
29 pkg_setup() {
30 enewgroup radvd
31 enewuser radvd -1 -1 /dev/null radvd
32
33 # force ownership of radvd user and group (bug #19647)
34 [[ -d ${ROOT}/var/run/radvd ]] && chown radvd:radvd "${ROOT}"/var/run/radvd
35 }
36
37 src_configure() {
38 econf --with-pidfile=/var/run/radvd/radvd.pid \
39 --disable-silent-rules
40 }
41
42 src_install() {
43 default
44
45 dohtml INTRO.html
46
47 newinitd "${FILESDIR}"/${PN}-1.9.1.init ${PN}
48 newconfd "${FILESDIR}"/${PN}.conf ${PN}
49
50 systemd_dounit "${FILESDIR}"/${PN}.service
51
52 if use kernel_FreeBSD ; then
53 sed -i -e \
54 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \
55 "${D}"/etc/init.d/${PN} || die
56 fi
57 }
58
59 pkg_postinst() {
60 einfo
61 elog "Please create a configuratoion ${ROOT}etc/radvd.conf."
62 elog "See ${ROOT}usr/share/doc/${PF} for an example."
63 einfo
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