summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2006-01-13 17:45:41 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2006-01-13 17:45:41 +0000
commit80787f228181eb423eeceebd2a8e1c60432cd697 (patch)
treea9b3fa6c77ca0356761741bf97e66501ad0dced3 /net-misc/radvd
parentMarking stable x86 (diff)
downloadgentoo-2-80787f228181eb423eeceebd2a8e1c60432cd697.tar.gz
gentoo-2-80787f228181eb423eeceebd2a8e1c60432cd697.tar.bz2
gentoo-2-80787f228181eb423eeceebd2a8e1c60432cd697.zip
Version bump.
(Portage version: 2.0.53)
Diffstat (limited to 'net-misc/radvd')
-rw-r--r--net-misc/radvd/ChangeLog8
-rw-r--r--net-misc/radvd/Manifest6
-rw-r--r--net-misc/radvd/files/digest-radvd-0.9.11
-rw-r--r--net-misc/radvd/files/radvd-0.9.1-conf.d11
-rw-r--r--net-misc/radvd/files/radvd-0.9.1-init.d46
-rw-r--r--net-misc/radvd/radvd-0.9.1.ebuild60
6 files changed, 130 insertions, 2 deletions
diff --git a/net-misc/radvd/ChangeLog b/net-misc/radvd/ChangeLog
index c06593dba597..6733a5feecd6 100644
--- a/net-misc/radvd/ChangeLog
+++ b/net-misc/radvd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/radvd
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.26 2006/01/03 13:56:18 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.27 2006/01/13 17:45:41 brix Exp $
+
+*radvd-0.9.1 (13 Jan 2006)
+
+ 13 Jan 2006; Henrik Brix Andersen <brix@gentoo.org>
+ +files/radvd-0.9.1-conf.d, +files/radvd-0.9.1-init.d, +radvd-0.9.1.ebuild:
+ Version bump.
03 Jan 2006; Henrik Brix Andersen <brix@gentoo.org>
-files/radvd-0.8-conf.d, -files/radvd-0.8-init.d, -files/radvd,
diff --git a/net-misc/radvd/Manifest b/net-misc/radvd/Manifest
index 024e8ea4712e..551a41262dbb 100644
--- a/net-misc/radvd/Manifest
+++ b/net-misc/radvd/Manifest
@@ -1,6 +1,10 @@
-MD5 981574ac79ebae7b4b29debd4c070224 ChangeLog 3162
+MD5 5d452b3049fedcb67989a995a7a522d3 ChangeLog 3338
MD5 707572a18aaddef9ed366e5f950f4460 files/digest-radvd-0.9 61
+MD5 c1fb012ad769a0590575c6be7ccaae91 files/digest-radvd-0.9.1 63
MD5 6d745a03aa165ab8b22ddb683793c467 files/radvd-0.9-conf.d 447
MD5 deb9430f74948534b343c3199157d78d files/radvd-0.9-init.d 1094
+MD5 6d745a03aa165ab8b22ddb683793c467 files/radvd-0.9.1-conf.d 447
+MD5 deb9430f74948534b343c3199157d78d files/radvd-0.9.1-init.d 1094
MD5 e41411344bcec2e0a59605acf1d821e9 metadata.xml 316
+MD5 fa905ee08fd7b3cc2b0e50d85ef17590 radvd-0.9.1.ebuild 1395
MD5 fcfa14bf2bf353b672dead1b14385526 radvd-0.9.ebuild 1485
diff --git a/net-misc/radvd/files/digest-radvd-0.9.1 b/net-misc/radvd/files/digest-radvd-0.9.1
new file mode 100644
index 000000000000..6ecddeacaa1a
--- /dev/null
+++ b/net-misc/radvd/files/digest-radvd-0.9.1
@@ -0,0 +1 @@
+MD5 d5d24abd3dddc2b702e621ebf6b9cfdc radvd-0.9.1.tar.gz 104993
diff --git a/net-misc/radvd/files/radvd-0.9.1-conf.d b/net-misc/radvd/files/radvd-0.9.1-conf.d
new file mode 100644
index 000000000000..b07663f247c2
--- /dev/null
+++ b/net-misc/radvd/files/radvd-0.9.1-conf.d
@@ -0,0 +1,11 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd-0.9.1-conf.d,v 1.1 2006/01/13 17:45:41 brix Exp $
+
+# Extra options to pass to radvd
+OPTIONS=""
+
+# Set this to "no" to tell the init script NOT to set up IPv6 forwarding
+# using /proc/sys/net/ipv6/conf/all/forwarding
+# Only change this if you know what you're doing!
+FORWARD="yes"
diff --git a/net-misc/radvd/files/radvd-0.9.1-init.d b/net-misc/radvd/files/radvd-0.9.1-init.d
new file mode 100644
index 000000000000..3002a5cc249d
--- /dev/null
+++ b/net-misc/radvd/files/radvd-0.9.1-init.d
@@ -0,0 +1,46 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd-0.9.1-init.d,v 1.1 2006/01/13 17:45:41 brix Exp $
+
+CONFIGFILE=/etc/radvd.conf
+PIDFILE=/var/run/radvd/radvd.pid
+SYSCTL_FORWARD=net.ipv6.conf.all.forwarding
+
+depend () {
+ need net
+}
+
+checkconfig() {
+ if [ ! -f ${CONFIGFILE} ]; then
+ eerror "Configuration file ${CONFIGFILE} not found"
+ return 1
+ fi
+}
+
+start () {
+ checkconfig || return 1
+
+ if [[ ${FORWARD} != "no" ]]; then
+ ebegin "Enabling IPv6 forwarding"
+ sysctl ${SYSCTL_FORWARD}=1 > /dev/null
+ eend ${?}
+ fi
+
+ ebegin "Starting IPv6 Router Advertisement Daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/radvd -- \
+ -C ${CONFIGFILE} -p ${PIDFILE} -u radvd ${OPTIONS}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping IPv6 Router Advertisement Daemon"
+ start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
+ eend ${?}
+
+ if [[ ${FORWARD} != "no" ]]; then
+ ebegin "Disabling IPv6 forwarding"
+ sysctl ${SYSCTL_FORWARD}=0 > /dev/null
+ eend ${?}
+ fi
+}
diff --git a/net-misc/radvd/radvd-0.9.1.ebuild b/net-misc/radvd/radvd-0.9.1.ebuild
new file mode 100644
index 000000000000..bc9dcc0aaa04
--- /dev/null
+++ b/net-misc/radvd/radvd-0.9.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-0.9.1.ebuild,v 1.1 2006/01/13 17:45:41 brix Exp $
+
+inherit eutils
+
+DESCRIPTION="Linux IPv6 Router Advertisement Daemon"
+HOMEPAGE="http://v6web.litech.org/radvd/"
+SRC_URI="http://v6web.litech.org/radvd/dist/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
+
+IUSE=""
+DEPEND="sys-devel/bison
+ sys-devel/flex
+ sys-apps/sed"
+RDEPEND="sys-process/procps"
+
+pkg_setup() {
+ enewgroup radvd
+ enewuser radvd -1 -1 /dev/null radvd
+
+ # force ownership of radvd user and group (bug #19647)
+ [ -d "/var/run/radvd" ] && chown radvd:radvd /var/run/radvd
+}
+
+src_compile() {
+ econf \
+ --with-pidfile=/var/run/radvd/radvd.pid \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc CHANGES README TODO radvd.conf.example
+ dohtml INTRO.html
+
+ newinitd ${FILESDIR}/${P}-init.d ${PN}
+ newconfd ${FILESDIR}/${P}-conf.d ${PN}
+
+ # location of radvd.pid needs to be writeable by the radvd user
+ keepdir /var/run/radvd
+ chown -R radvd:radvd ${D}/var/run/radvd
+ chmod 755 ${D}/var/run/radvd
+}
+
+pkg_postinst() {
+ einfo
+ einfo "To use ${PN} you must create the configuration file"
+ einfo "/etc/radvd.conf"
+ einfo
+ einfo "An example configuration file has been installed as"
+ einfo "/usr/share/doc/${PF}/radvd.conf.example.gz"
+ einfo
+}