summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/radvd')
-rw-r--r--net-misc/radvd/ChangeLog10
-rw-r--r--net-misc/radvd/files/digest-radvd-0.92
-rw-r--r--net-misc/radvd/files/digest-radvd-1.0-r13
-rw-r--r--net-misc/radvd/files/radvd.init25
-rw-r--r--net-misc/radvd/radvd-1.0-r1.ebuild62
5 files changed, 96 insertions, 6 deletions
diff --git a/net-misc/radvd/ChangeLog b/net-misc/radvd/ChangeLog
index c07007836afa..fd4bf1cdffbf 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.32 2006/11/01 17:29:29 uberlord Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.33 2007/02/09 16:57:13 uberlord Exp $
+
+*radvd-1.0-r1 (09 Feb 2007)
+
+ 09 Feb 2007; Roy Marples <uberlord@gentoo.org> files/radvd.init,
+ +radvd-1.0-r1.ebuild:
+ Add reload option to init script, #166095 thanks to Martin von Gagern.
01 Nov 2006; Roy Marples <uberlord@gentoo.org> ChangeLog:
New version.
diff --git a/net-misc/radvd/files/digest-radvd-0.9 b/net-misc/radvd/files/digest-radvd-0.9
index 8337ec3c177a..e3c70ca16ee9 100644
--- a/net-misc/radvd/files/digest-radvd-0.9
+++ b/net-misc/radvd/files/digest-radvd-0.9
@@ -1 +1,3 @@
MD5 128c1825975cd81168fe607e41587fbf radvd-0.9.tar.gz 104356
+RMD160 a1bc693c30d6d929dfe012a53dc22428a7022a64 radvd-0.9.tar.gz 104356
+SHA256 751fa0e5e536c1b57cc09e63440a0f01209dc4297a3c58e69058e741ef28ea15 radvd-0.9.tar.gz 104356
diff --git a/net-misc/radvd/files/digest-radvd-1.0-r1 b/net-misc/radvd/files/digest-radvd-1.0-r1
new file mode 100644
index 000000000000..4ea586cdd5d0
--- /dev/null
+++ b/net-misc/radvd/files/digest-radvd-1.0-r1
@@ -0,0 +1,3 @@
+MD5 8bce4a21757cf069f5a69e2f9bee9e5b radvd-1.0.tar.gz 110170
+RMD160 a6d5aa3fe25b7751e5b0188add1d68633b20174e radvd-1.0.tar.gz 110170
+SHA256 fbc44fac8356426c115914eb5dce6fc84afea923ad6aba1670a3402c06bda7ab radvd-1.0.tar.gz 110170
diff --git a/net-misc/radvd/files/radvd.init b/net-misc/radvd/files/radvd.init
index af2659926cb2..243c79872a26 100644
--- a/net-misc/radvd/files/radvd.init
+++ b/net-misc/radvd/files/radvd.init
@@ -1,18 +1,20 @@
#!/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.init,v 1.1 2006/07/19 13:02:36 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd.init,v 1.2 2007/02/09 16:57:13 uberlord Exp $
CONFIGFILE=/etc/radvd.conf
PIDFILE=/var/run/radvd/radvd.pid
SYSCTL_FORWARD=net.ipv6.conf.all.forwarding
+opts="reload"
+
depend () {
need net
}
checkconfig() {
- if [ ! -f ${CONFIGFILE} ]; then
+ if [ ! -f "${CONFIGFILE}" ]; then
eerror "Configuration file ${CONFIGFILE} not found"
return 1
fi
@@ -21,7 +23,7 @@ checkconfig() {
start () {
checkconfig || return 1
- if [[ ${FORWARD} != "no" ]]; then
+ if [ "${FORWARD}" != "no" ]; then
ebegin "Enabling IPv6 forwarding"
sysctl "${SYSCTL_FORWARD}=1" >/dev/null
eend $?
@@ -39,9 +41,24 @@ stop() {
start-stop-daemon --stop --exec /usr/sbin/radvd --pidfile "${PIDFILE}"
eend $?
- if [[ ${FORWARD} != "no" ]]; then
+ if [ "${FORWARD}" != "no" ]; then
ebegin "Disabling IPv6 forwarding"
sysctl "${SYSCTL_FORWARD}=0" > /dev/null
eend $?
fi
}
+
+reload() {
+ checkconfig || return 1
+
+ if [ "${FORWARD}" != "no" ]; then
+ ebegin "Enabling IPv6 forwarding"
+ sysctl "${SYSCTL_FORWARD}=1" >/dev/null
+ eend $?
+ fi
+
+ ebegin "Reloading IPv6 Router Advertisement Daemon"
+ start-stop-daemon --stop --signal HUP --oknodo \
+ --exec /usr/sbin/radvd --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/net-misc/radvd/radvd-1.0-r1.ebuild b/net-misc/radvd/radvd-1.0-r1.ebuild
new file mode 100644
index 000000000000..1c8d765e5bac
--- /dev/null
+++ b/net-misc/radvd/radvd-1.0-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-1.0-r1.ebuild,v 1.1 2007/02/09 16:57:13 uberlord 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"
+RDEPEND=">=sys-process/procps-3.2"
+
+pkg_setup() {
+ enewgroup radvd
+ enewuser radvd -1 -1 /dev/null radvd
+
+ # force ownership of radvd user and group (bug #19647)
+ [[ -d ${ROOT}/var/run/radvd ]] && chown radvd:radvd "${ROOT}"/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}/${PN}".init "${PN}"
+ newconfd "${FILESDIR}/${PN}".conf "${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
+ fperms 755 /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
+ einfo "grsec users should allow a specific group to read /proc"
+ einfo "and add the radvd user to that group, otherwise radvd may"
+ einfo "segfault on startup"
+}