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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Jul 30 13:04:14 2015 UTC (4 years, 5 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Stable for sparc, wrt bug #547534

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="sparc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-2.10.ebuild,v 1.6 2015/06/14 19:39:41 maekke Exp $
4
5 EAPI=4
6
7 inherit systemd user eutils readme.gentoo
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 dev-libs/check
21 sys-devel/bison
22 sys-devel/flex
23 virtual/pkgconfig"
24 RDEPEND="${CDEPEND}
25 selinux? ( sec-policy/selinux-radvd )
26 "
27 DOCS=( CHANGES 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 systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}.conf
52
53 if use kernel_FreeBSD ; then
54 sed -i -e \
55 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \
56 "${D}"/etc/init.d/${PN} || die
57 fi
58
59 readme.gentoo_create_doc
60 }
61
62 DISABLE_AUTOFORMATTING=1
63 DOC_CONTENTS="Please create a configuratoion ${ROOT}etc/radvd.conf.
64 See ${ROOT}usr/share/doc/${PF} for an example.
65
66 grsecurity users should allow a specific group to read /proc
67 and add the radvd user to that group, otherwise radvd may
68 segfault on startup."

  ViewVC Help
Powered by ViewVC 1.1.20