summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-08-31 13:28:08 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-08-31 13:28:08 +0000
commite517b77e3d7133dec7ad400971da8e7b63508e1b (patch)
tree0c0ab5db0535bc0ed7e3a1ed8e6c6132ccd16b1a /net-misc/radvd/files
parentAnd here we unmask it... (diff)
downloadhistorical-e517b77e3d7133dec7ad400971da8e7b63508e1b.tar.gz
historical-e517b77e3d7133dec7ad400971da8e7b63508e1b.tar.bz2
historical-e517b77e3d7133dec7ad400971da8e7b63508e1b.zip
Cleaned up ebuild, taking ownership.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'net-misc/radvd/files')
-rw-r--r--net-misc/radvd/files/digest-radvd-0.8-r11
-rw-r--r--net-misc/radvd/files/radvd-0.8-conf.d11
-rw-r--r--net-misc/radvd/files/radvd-0.8-init.d45
3 files changed, 57 insertions, 0 deletions
diff --git a/net-misc/radvd/files/digest-radvd-0.8-r1 b/net-misc/radvd/files/digest-radvd-0.8-r1
new file mode 100644
index 000000000000..734bed4ec89f
--- /dev/null
+++ b/net-misc/radvd/files/digest-radvd-0.8-r1
@@ -0,0 +1 @@
+MD5 374c18e6aa456b02951b42b661cf855a radvd-0.8.tar.gz 103682
diff --git a/net-misc/radvd/files/radvd-0.8-conf.d b/net-misc/radvd/files/radvd-0.8-conf.d
new file mode 100644
index 000000000000..dd507293e627
--- /dev/null
+++ b/net-misc/radvd/files/radvd-0.8-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.8-conf.d,v 1.1 2005/08/31 13:28:08 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.8-init.d b/net-misc/radvd/files/radvd-0.8-init.d
new file mode 100644
index 000000000000..6994874459ca
--- /dev/null
+++ b/net-misc/radvd/files/radvd-0.8-init.d
@@ -0,0 +1,45 @@
+#!/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.8-init.d,v 1.1 2005/08/31 13:28:08 brix Exp $
+
+CONFIGFILE=/etc/radvd.conf
+PIDFILE=/var/run/radvd/radvd.pid
+
+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"
+ echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
+ 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"
+ echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
+ eend ${?}
+ fi
+}