summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2012-05-29 13:38:53 +0000
committerMichael Weber <xmw@gentoo.org>2012-05-29 13:38:53 +0000
commit1204524f19dfeaeb21459107c8c343178617f30c (patch)
treecbe0e68bf387723b5b3915c4983c92d3cce800f1 /net-misc/radvd
parentkeyword ~amd64-fbsd (diff)
downloadhistorical-1204524f19dfeaeb21459107c8c343178617f30c.tar.gz
historical-1204524f19dfeaeb21459107c8c343178617f30c.tar.bz2
historical-1204524f19dfeaeb21459107c8c343178617f30c.zip
Revbump for new initd file (bug 417975, thanks Florian Steinel)
Package-Manager: portage-2.1.10.63/cvs/Linux x86_64
Diffstat (limited to 'net-misc/radvd')
-rw-r--r--net-misc/radvd/ChangeLog8
-rw-r--r--net-misc/radvd/Manifest12
-rw-r--r--net-misc/radvd/files/radvd-1.8.5.init66
-rw-r--r--net-misc/radvd/radvd-1.8.5-r1.ebuild68
4 files changed, 148 insertions, 6 deletions
diff --git a/net-misc/radvd/ChangeLog b/net-misc/radvd/ChangeLog
index 98dcb21b49c9..ba9b1b280b4b 100644
--- a/net-misc/radvd/ChangeLog
+++ b/net-misc/radvd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/radvd
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.83 2012/05/23 15:10:33 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.84 2012/05/29 13:38:53 xmw Exp $
+
+*radvd-1.8.5-r1 (28 May 2012)
+
+ 28 May 2012; Michael Weber <xmw@gentoo.org> +radvd-1.8.5-r1.ebuild,
+ +files/radvd-1.8.5.init:
+ Revbump for new initd file (bug 417975, thanks Florian Steinel)
23 May 2012; Jeroen Roovers <jer@gentoo.org> radvd-1.8.5.ebuild:
Stable for HPPA (bug #412587).
diff --git a/net-misc/radvd/Manifest b/net-misc/radvd/Manifest
index 64c3b3df0ae8..7752fda212be 100644
--- a/net-misc/radvd/Manifest
+++ b/net-misc/radvd/Manifest
@@ -1,6 +1,7 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
+AUX radvd-1.8.5.init 1526 RMD160 b039e9ae41a2f7359b3adea154192fc4374c748d SHA1 f24e8f0b32b9a12074e3b804402c01f6ace05fb3 SHA256 0dac2c4668ada0b9c29bba37717018656b5e86d3993a5031593f08b08d9c3c6f
AUX radvd.conf 445 RMD160 8b9a158617b7a2b11548016d98b037f203f13558 SHA1 9605bce0d235a0f33ecb5cd1dd443da6bd2d29c1 SHA256 a9c704a481fc7c24d4ed3e21aa6bf8979fca6e81b93d86a86b40e4433d03809c
AUX radvd.init 1541 RMD160 9839d96b954b4dac3c8b4b3b3d791928d932cd1d SHA1 d8023b41541c0da3f0834d7aa37d7fbfe20aef72 SHA256 8cf4c05cee48049320784f1da9aa76c2f0a8b179e4eb6bc287c5b6333a649c64
DIST radvd-1.8.2.tar.gz 177357 RMD160 502d1b5aa084ca76e682f26d3b11493df85e678c SHA1 9a396ab58216c87308bc86a18864f84aeeba38a9 SHA256 fff5ecb391aa5c054b4ebc14ec2c3d8b7494d065fb00c2bf772ae81e8114cf55
@@ -8,13 +9,14 @@ DIST radvd-1.8.3.tar.gz 177556 RMD160 01e0b8ddcd21d724fe6ed658c22e8c1bce830f18 S
DIST radvd-1.8.5.tar.gz 178114 RMD160 cdadcc1dc96e66142a2a9988676967c2aee9dc48 SHA1 344c145bd29938b7eefb0210cf92bf18df3e191d SHA256 ac789d820c96570fe6921bd0c96ce69d7265c9686bdeb67170d9438091cfd08e
EBUILD radvd-1.8.2.ebuild 1813 RMD160 7a16cf011fa549f37ef39ff8042d01a1d953a884 SHA1 20067605eb9fd28131c67a48f16dedd964632164 SHA256 23aa63be3f346bd55d19388032ff187f9315ecd9a30d0799a82275eed3a06480
EBUILD radvd-1.8.3.ebuild 1790 RMD160 dfc645e1cc3a9a2bea2c30ecc3a3362d0652b02d SHA1 70af13765685fe50abef4cbb2e6fd7023e519937 SHA256 34a13d7a3eea264496106659d1d398783064eb6cbf0c42ac0ddb748329b0495e
+EBUILD radvd-1.8.5-r1.ebuild 1784 RMD160 3e47746c9f152c6062d4bf2ebcd0b35a8e7dd6a6 SHA1 7970e092d13f21964399d24ea3490961ee6c93be SHA256 21f3b3cc271623c53bda09f66d272584183d5fb02ae255a60532e73f4a0dc2db
EBUILD radvd-1.8.5.ebuild 1783 RMD160 4e1adb11cbfc4e60395880adcf7d6c431cf73f89 SHA1 2a0577c2fa9295f1ee8c8ffc0038b2ed6d582720 SHA256 c19a4631b6ba7f1da77eae746f104c97231bb6e3fb756845a025b3522cde637d
-MISC ChangeLog 10766 RMD160 f243d8b2be77cfd80dcfa4e374579e73a42ad5fe SHA1 a613dbdb91886e63088dda70b1ef3c479b5361b2 SHA256 ed7ca877087f7d32faf330ad9ff7c2b4b1592b7bd039aec8ede061f20824af4e
+MISC ChangeLog 10961 RMD160 3455603ef537f6be810c8e574fea17bf6f867bba SHA1 e501f23dea695e9277333e64af07fa16d0a8f29a SHA256 7ebde3571861038090ae33324a741797f05c373fe09351f0407ce433d9bc8502
MISC metadata.xml 326 RMD160 5d3f1dcbdd2aa22e45e4bedc20e9c38aa9d91b02 SHA1 9676b6d6d7b47a3b9b58a92a06b38fd6fd5ac495 SHA256 678c0de324d4f194ae572a0d6b2641f60f54a40a168923d13f16a049344fe803
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAk+8/e8ACgkQVWmRsqeSphMQggCcCEddghZIv/ZEr6aaxcU5E2uN
-2/QAn0bfVkX64XPEN9K9bT8hMA2AuGpJ
-=gMRm
+iF4EAREIAAYFAk/E0VwACgkQknrdDGLu8JAZZgD+LNW1GXjn8tUUt1OmmTqzhCUK
+igsXwHYVN1qZIJy3DLwA/j6VJSbkRcT1OiA5vncG/xOVLcNRLe4V8K9Uq4Dv4kNR
+=oDVT
-----END PGP SIGNATURE-----
diff --git a/net-misc/radvd/files/radvd-1.8.5.init b/net-misc/radvd/files/radvd-1.8.5.init
new file mode 100644
index 000000000000..ce8c825444c3
--- /dev/null
+++ b/net-misc/radvd/files/radvd-1.8.5.init
@@ -0,0 +1,66 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/files/radvd-1.8.5.init,v 1.1 2012/05/29 13:38:53 xmw Exp $
+
+CONFIGFILE=/etc/radvd.conf
+PIDFILE=/var/run/radvd/radvd.pid
+SYSCTL_FORWARD=net.ipv6.conf.all.forwarding
+
+extra_started_commands="reload"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -f "${CONFIGFILE}" ]; then
+ eerror "Configuration file ${CONFIGFILE} not found"
+ return 1
+ fi
+
+ checkpath -d -o radvd:radvd ${PIDFILE%/*}
+}
+
+start() {
+ checkconfig || return 1
+
+ if [ "${FORWARD}" != "no" ]; then
+ ebegin "Enabling IPv6 forwarding"
+ sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null
+ eend $?
+ fi
+
+ ebegin "Starting IPv6 Router Advertisement Daemon"
+ start-stop-daemon --start --exec /usr/sbin/radvd \
+ --pidfile "${PIDFILE}" \
+ -- -C "${CONFIGFILE}" -p "${PIDFILE}" -u radvd ${OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping IPv6 Router Advertisement Daemon"
+ start-stop-daemon --stop --exec /usr/sbin/radvd --pidfile "${PIDFILE}"
+ eend $?
+
+ if [ "${FORWARD}" != "no" ]; then
+ ebegin "Disabling IPv6 forwarding"
+ sysctl -w "${SYSCTL_FORWARD}=0" > /dev/null
+ eend $?
+ fi
+}
+
+reload() {
+ checkconfig || return 1
+
+ if [ "${FORWARD}" != "no" ]; then
+ ebegin "Enabling IPv6 forwarding"
+ sysctl -w "${SYSCTL_FORWARD}=1" >/dev/null
+ eend $?
+ fi
+
+ ebegin "Reloading IPv6 Router Advertisement Daemon"
+ start-stop-daemon --signal HUP \
+ --exec /usr/sbin/radvd --pidfile "${PIDFILE}"
+ eend $?
+}
diff --git a/net-misc/radvd/radvd-1.8.5-r1.ebuild b/net-misc/radvd/radvd-1.8.5-r1.ebuild
new file mode 100644
index 000000000000..77b56c062c1c
--- /dev/null
+++ b/net-misc/radvd/radvd-1.8.5-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-1.8.5-r1.ebuild,v 1.1 2012/05/29 13:38:53 xmw Exp $
+
+EAPI=4
+
+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 ~x86-fbsd"
+IUSE="kernel_FreeBSD selinux"
+
+DEPEND="sys-devel/bison
+ sys-devel/flex
+ selinux? ( sec-policy/selinux-radvd )"
+RDEPEND="selinux? ( sec-policy/selinux-radvd )"
+
+DOCS=( CHANGES README TODO radvd.conf.example )
+
+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_configure() {
+ econf --with-pidfile=/var/run/radvd/radvd.pid
+}
+
+src_install() {
+ default
+
+ dohtml INTRO.html
+
+ newinitd "${FILESDIR}"/${P}.init ${PN}
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+
+ # location of radvd.pid needs to be writeable by the radvd user
+ keepdir /var/run/radvd
+ fowners -R radvd:radvd /var/run/radvd
+ fperms 755 /var/run/radvd
+
+ if use kernel_FreeBSD ; then
+ sed -i -e \
+ 's/^SYSCTL_FORWARD=.*$/SYSCTL_FORWARD=net.inet6.ip6.forwarding/g' \
+ "${D}"/etc/init.d/${PN} || die
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "To use ${PN} you must create the configuration file"
+ elog "${ROOT}etc/radvd.conf"
+ elog
+ elog "An example configuration file has been installed under"
+ elog "${ROOT}usr/share/doc/${PF}"
+ elog
+ elog "grsecurity users should allow a specific group to read /proc"
+ elog "and add the radvd user to that group, otherwise radvd may"
+ elog "segfault on startup."
+}