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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Jan 3 13:56:18 2006 UTC (13 years, 11 months ago) by brix
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Pruned old ebuild.
(Portage version: 2.0.53)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-0.8-r1.ebuild,v 1.4 2005/11/11 23:10:16 hansmi 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
15 IUSE=""
16 DEPEND="virtual/libc"
17
18 pkg_setup() {
19 enewgroup radvd
20 enewuser radvd -1 -1 /dev/null radvd
21
22 # Force ownership of radvd user and group, bug #19647
23 [ -d "/var/run/radvd" ] && chown radvd:radvd /var/run/radvd
24 }
25
26 src_compile() {
27 econf \
28 --with-pidfile=/var/run/radvd/radvd.pid \
29 || die "econf failed"
30
31 emake || die "emake failed"
32 }
33
34 src_install() {
35 make DESTDIR=${D} install || die "emake install failed"
36
37 dodoc CHANGES README TODO radvd.conf.example
38 dohtml INTRO.html
39
40 newinitd ${FILESDIR}/${P}-init.d ${PN}
41 newconfd ${FILESDIR}/${P}-conf.d ${PN}
42
43 # Location of radvd.pid needs to be writeable by the radvd user
44 keepdir /var/run/radvd
45 chown -R radvd:radvd ${D}/var/run/radvd
46 chmod 755 ${D}/var/run/radvd
47 }
48
49 pkg_postinst() {
50 einfo
51 einfo "To use ${PN} you must create the configuration file"
52 einfo "/etc/radvd.conf"
53 einfo
54 einfo "An example configuration file has been installed as"
55 einfo "/usr/share/doc/${PF}/radvd.conf.example.gz"
56 einfo
57 einfo "Please note that the radvd.conf file has been"
58 einfo "moved from /etc/radvd/radvd.conf to /etc/radvd.conf"
59 einfo
60 }

  ViewVC Help
Powered by ViewVC 1.1.20