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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Jun 14 12:09:14 2015 UTC (4 years, 7 months ago) by xmw
Branch: MAIN
CVS Tags: HEAD
Add ARPHRD_IEEE802154_PHY definition for musl (bug 549942).

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

1 xmw 1.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.11.ebuild,v 1.1 2015/04/24 01:35:16 xmw 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 test"
17    
18     CDEPEND="dev-libs/libdaemon"
19     DEPEND="${CDEPEND}
20     sys-devel/bison
21     sys-devel/flex
22     virtual/pkgconfig
23     test? ( dev-libs/check )"
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_prepare() {
38     epatch "${FILESDIR}"/${PN}-2.10-musl-libc-fix.patch
39     }
40    
41     src_configure() {
42     econf --with-pidfile=/var/run/radvd/radvd.pid \
43     --disable-silent-rules \
44     $(use_with test check)
45     }
46    
47     src_install() {
48     default
49    
50     dohtml INTRO.html
51    
52     newinitd "${FILESDIR}"/${PN}-1.9.1.init ${PN}
53     newconfd "${FILESDIR}"/${PN}.conf ${PN}
54    
55     systemd_dounit "${FILESDIR}"/${PN}.service
56     systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}.conf
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     readme.gentoo_create_doc
65     }
66    
67     DISABLE_AUTOFORMATTING=1
68     DOC_CONTENTS="Please create a configuratoion ${ROOT}etc/radvd.conf.
69     See ${ROOT}usr/share/doc/${PF} for an example.
70    
71     grsecurity users should allow a specific group to read /proc
72     and add the radvd user to that group, otherwise radvd may
73     segfault on startup."

  ViewVC Help
Powered by ViewVC 1.1.20