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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Jan 20 19:11:33 2004 UTC (15 years, 10 months ago) by mholzer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
cleanup

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/radvd/radvd-0.7.2.ebuild,v 1.5 2003/09/05 22:01:49 msterret Exp $
4
5 DESCRIPTION="Linux IPv6 Router Advertisement Daemon (radvd)"
6 HOMEPAGE="http://v6web.litech.org/radvd/"
7 SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz"
8
9 LICENSE="BSD"
10 SLOT="0"
11 KEYWORDS="x86"
12
13 DEPEND="virtual/glibc
14 virtual/kernel"
15
16 pkg_preinst() {
17 if ! groupmod radvd; then
18 groupadd -g 75 radvd || die "problem adding group radvd"
19 fi
20
21 usermod radvd &>/dev/null
22 if [ $? != 2 ]; then
23 useradd -u 75 -g radvd -s /bin/false -d / -c "Router Advertisement Daemon (radvd)" radvd
24 assert "problem adding user radvd"
25 fi
26 }
27
28 src_compile() {
29 econf --libexecdir=/usr/lib/radvd \
30 --with-pidfile=/var/run/radvd/radvd.pid \
31 --sysconfdir=/etc/radvd
32 emake || die
33 }
34
35 src_install() {
36 make DESTDIR=${D} install || die
37 dodoc CHANGES COPYRIGHT INTRO.html README TODO
38
39 insinto /etc/radvd
40 doins radvd.conf.example
41
42 exeinto /etc/init.d
43 doexe ${FILESDIR}/radvd
44
45 dodir /var/run/radvd
46 fowners radvd.radvd /var/run/radvd
47 fperms 755 /var/run/radvd
48 }
49
50 pkg_postinst() {
51 einfo To make it work you have to configure /etc/radvd/radvd.conf and put
52 einfo the line net.ipv6.conf.all.forwarding = 1 in sysctl.conf or just run
53 einfo sysctl -w net.ipv6.conf.all.forwarding=1 in your firewallscripts before
54 einfo starting radvd.
55 einfo
56 einfo echo 1 \> /proc/sys/net/ipv6/conf/all/forwarding should also work.
57 einfo
58 einfo "rc-update add radvd default" should make it start at boottime.
59 }

  ViewVC Help
Powered by ViewVC 1.1.20