summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Martin <gmsoft@gentoo.org>2003-04-21 15:11:30 +0000
committerGuy Martin <gmsoft@gentoo.org>2003-04-21 15:11:30 +0000
commitb1313f49ca434b0f2b95b31389c2d7580f971783 (patch)
tree3e936276d032771d19549e3e4d04dac49c83d015 /net-misc/radvd/radvd-0.7.2-r1.ebuild
parentfinally, evo-1.3.2 (diff)
downloadgentoo-2-b1313f49ca434b0f2b95b31389c2d7580f971783.tar.gz
gentoo-2-b1313f49ca434b0f2b95b31389c2d7580f971783.tar.bz2
gentoo-2-b1313f49ca434b0f2b95b31389c2d7580f971783.zip
Corrected ownership of /var/run/radvd. Fix #19647. Marked stable for x86 and hppa.
Diffstat (limited to 'net-misc/radvd/radvd-0.7.2-r1.ebuild')
-rw-r--r--net-misc/radvd/radvd-0.7.2-r1.ebuild53
1 files changed, 53 insertions, 0 deletions
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
+
+}