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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jul 28 16:00:00 2008 UTC (11 years, 4 months ago) by wschlich
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
fix metadata.xml, fix paths shown in pkg_postinst(), removed old versions
(Portage version: 2.1.5.6)

1 # Copyright 1999-2006 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.0.ebuild,v 1.1 2006/11/01 17:29:29 uberlord Exp $
4
5 inherit eutils
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"
14 IUSE=""
15
16 DEPEND="sys-devel/bison
17 sys-devel/flex"
18 RDEPEND=">=sys-process/procps-3.2"
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_compile() {
29 econf \
30 --with-pidfile=/var/run/radvd/radvd.pid \
31 || die "econf failed"
32
33 emake || die "emake failed"
34 }
35
36 src_install() {
37 make DESTDIR="${D}" install || die "make install failed"
38
39 dodoc CHANGES README TODO radvd.conf.example
40 dohtml INTRO.html
41
42 newinitd "${FILESDIR}/${PN}".init "${PN}"
43 newconfd "${FILESDIR}/${PN}".conf "${PN}"
44
45 # location of radvd.pid needs to be writeable by the radvd user
46 keepdir /var/run/radvd
47 chown -R radvd:radvd "${D}"/var/run/radvd
48 fperms 755 /var/run/radvd
49 }
50
51 pkg_postinst() {
52 einfo
53 einfo "To use ${PN} you must create the configuration file"
54 einfo "/etc/radvd.conf"
55 einfo
56 einfo "An example configuration file has been installed as"
57 einfo "/usr/share/doc/${PF}/radvd.conf.example.gz"
58 einfo
59 einfo "grsec users should allow a specific group to read /proc"
60 einfo "and add the radvd user to that group, otherwise radvd may"
61 einfo "segfault on startup"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20