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
commit3d235722755693d6d048b1d5c41f2c6b5be5f8f9 (patch)
treef7f3e8a14ddc15f3f1c16ea6077cdc251c1e8d5e /net-misc/radvd/files
parentAnd here we unmask it... (diff)
downloadgentoo-2-3d235722755693d6d048b1d5c41f2c6b5be5f8f9.tar.gz
gentoo-2-3d235722755693d6d048b1d5c41f2c6b5be5f8f9.tar.bz2
gentoo-2-3d235722755693d6d048b1d5c41f2c6b5be5f8f9.zip
Cleaned up ebuild, taking ownership.
(Portage version: 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
+}