diff options
author | Guy Martin <gmsoft@gentoo.org> | 2003-04-21 15:11:30 +0000 |
---|---|---|
committer | Guy Martin <gmsoft@gentoo.org> | 2003-04-21 15:11:30 +0000 |
commit | 6e82989a9ff149023e1b39db96859ca7ad1c0124 (patch) | |
tree | 7df556573c71907e2e6c5cc82c3a7de241b500ee /net-misc/radvd | |
parent | finally, evo-1.3.2 (diff) | |
download | historical-6e82989a9ff149023e1b39db96859ca7ad1c0124.tar.gz historical-6e82989a9ff149023e1b39db96859ca7ad1c0124.tar.bz2 historical-6e82989a9ff149023e1b39db96859ca7ad1c0124.zip |
Corrected ownership of /var/run/radvd. Fix #19647. Marked stable for x86 and hppa.
Diffstat (limited to 'net-misc/radvd')
-rw-r--r-- | net-misc/radvd/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/radvd/files/digest-radvd-0.7.2-r1 | 1 | ||||
-rw-r--r-- | net-misc/radvd/files/radvd | 4 | ||||
-rw-r--r-- | net-misc/radvd/radvd-0.7.2-r1.ebuild | 53 |
4 files changed, 65 insertions, 2 deletions
diff --git a/net-misc/radvd/ChangeLog b/net-misc/radvd/ChangeLog index 1dc4b6392c47..67e3ae4b119c 100644 --- a/net-misc/radvd/ChangeLog +++ b/net-misc/radvd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/radvd # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.3 2003/02/12 08:31:15 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.4 2003/04/21 15:11:30 gmsoft Exp $ + +*radvd-0.7.2 (21 Apr 2003) + + 21 Apr 2003; Guy Martin <gmsoft@gentoo.org> radvd-0.7.2-r1.ebuild, files/radvd, + files/digest-radvd-0.7.2-r1 : + Corrected ownership of /var/run/radvd. Fix #19647 + Marked stable for x86 and hppa. 02 Nov 2002; Hannes Mehnert <hannes@gentoo.org> radvd-0.7.1.ebuild: marked stable for x86 diff --git a/net-misc/radvd/files/digest-radvd-0.7.2-r1 b/net-misc/radvd/files/digest-radvd-0.7.2-r1 new file mode 100644 index 000000000000..e70ec263610e --- /dev/null +++ b/net-misc/radvd/files/digest-radvd-0.7.2-r1 @@ -0,0 +1 @@ +MD5 26ea468b2323e44cf827ae5f84d18dc8 radvd-0.7.2.tar.gz 116442 diff --git a/net-misc/radvd/files/radvd b/net-misc/radvd/files/radvd index 5923ea6fda09..1687ea32bdb7 100644 --- a/net-misc/radvd/files/radvd +++ b/net-misc/radvd/files/radvd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd,v 1.2 2003/02/14 23:07:53 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd,v 1.3 2003/04/21 15:11:30 gmsoft Exp $ depend () { need net @@ -9,12 +9,14 @@ depend () { start () { ebegin "Starting radvd" + echo 1 > /proc/sys/net/ipv6/conf/all/forwarding start-stop-daemon --start --quiet --exec /usr/sbin/radvd -- -u radvd -p /var/run/radvd/radvd.pid eend } stop() { ebegin "Stopping radvd" + echo 0 > /proc/sys/net/ipv6/conf/all/forwarding start-stop-daemon --stop --quiet --pidfile /var/run/radvd/radvd.pid eend } diff --git a/net-misc/radvd/radvd-0.7.2-r1.ebuild b/net-misc/radvd/radvd-0.7.2-r1.ebuild new file mode 100644 index 000000000000..b2908b6f56d6 --- /dev/null +++ b/net-misc/radvd/radvd-0.7.2-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-0.7.2-r1.ebuild,v 1.1 2003/04/21 15:11:30 gmsoft Exp $ + +DESCRIPTION="Linux IPv6 Router Advertisement Daemon (radvd)" +HOMEPAGE="http://v6web.litech.org/radvd/" +SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="x86 hppa" + +DEPEND="virtual/glibc + virtual/kernel" + +pkg_preinst() { + # Force ownership of radvd user and group. fix #19647 + [ -d "/var/run/radvd" ] && chown 75.75 /var/run/radvd + + if ! groupmod radvd; then + groupadd -g 75 radvd || die "problem adding group radvd" + fi + + usermod radvd &>/dev/null + if [ $? != 2 ]; then + useradd -u 75 -g radvd -s /bin/false -d / -c "Router Advertisement Daemon (radvd)" radvd + assert "problem adding user radvd" + fi +} + +src_compile() { + econf --libexecdir=/usr/lib/radvd \ + --with-pidfile=/var/run/radvd/radvd.pid \ + --sysconfdir=/etc/radvd + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + dodoc CHANGES COPYRIGHT INTRO.html README TODO + + insinto /etc/radvd + doins radvd.conf.example + + exeinto /etc/init.d + doexe ${FILESDIR}/radvd + + dodir /var/run/radvd + touch ${D}/var/run/radvd/.keep + chown -R 75.75 ${D}/var/run/radvd + chmod 755 ${D}/var/run/radvd + +} |