/[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 - (hide annotations) (download)
Tue Jan 20 19:11:33 2004 UTC (16 years ago) by mholzer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
cleanup

1 vapier 1.3 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 edolnx 1.1 # Distributed under the terms of the GNU General Public License v2
3 mholzer 1.6 # $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 edolnx 1.1
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 vapier 1.2
9 edolnx 1.1 LICENSE="BSD"
10     SLOT="0"
11 aliz 1.4 KEYWORDS="x86"
12 edolnx 1.1
13 vapier 1.2 DEPEND="virtual/glibc
14     virtual/kernel"
15    
16 edolnx 1.1 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 vapier 1.2 --sysconfdir=/etc/radvd
32 edolnx 1.1 emake || die
33     }
34    
35 vapier 1.2 src_install() {
36 edolnx 1.1 make DESTDIR=${D} install || die
37     dodoc CHANGES COPYRIGHT INTRO.html README TODO
38 msterret 1.5
39 edolnx 1.1 insinto /etc/radvd
40     doins radvd.conf.example
41 msterret 1.5
42 edolnx 1.1 exeinto /etc/init.d
43     doexe ${FILESDIR}/radvd
44 msterret 1.5
45 vapier 1.2 dodir /var/run/radvd
46 edolnx 1.1 fowners radvd.radvd /var/run/radvd
47     fperms 755 /var/run/radvd
48     }
49    
50 vapier 1.2 pkg_postinst() {
51 edolnx 1.1 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