From 57b6320218a87eadb474adf56d5555027b58cc8c Mon Sep 17 00:00:00 2001 From: Michael Weber Date: Thu, 16 Jun 2011 22:42:39 +0000 Subject: Version bump (Portage version: 2.1.9.42/cvs/Linux x86_64) --- net-misc/radvd/ChangeLog | 10 +++++- net-misc/radvd/metadata.xml | 4 +++ net-misc/radvd/radvd-1.7.ebuild | 67 +++++++++++++++++++++++++++++++++++++++++ net-misc/radvd/radvd-1.8.ebuild | 67 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 net-misc/radvd/radvd-1.7.ebuild create mode 100644 net-misc/radvd/radvd-1.8.ebuild (limited to 'net-misc') diff --git a/net-misc/radvd/ChangeLog b/net-misc/radvd/ChangeLog index 9a8392aafceb..027cd8ed8eed 100644 --- a/net-misc/radvd/ChangeLog +++ b/net-misc/radvd/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-misc/radvd # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.64 2011/03/06 10:36:45 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.65 2011/06/16 22:42:39 xmw Exp $ + +*radvd-1.8 (16 Jun 2011) +*radvd-1.7 (16 Jun 2011) + + 16 Jun 2011; Michael Weber +radvd-1.7.ebuild, + +radvd-1.8.ebuild, metadata.xml: + Adding myself as maintainer, version bumps 1.7 and 1.8 (thanks to Klemen + Mihevc and Ɓukasz Stelmach, bug 355323) 06 Mar 2011; Michael Weber radvd-1.6.ebuild: ppc stable (bug 327163) diff --git a/net-misc/radvd/metadata.xml b/net-misc/radvd/metadata.xml index 57853b519d7c..379509ae1aec 100644 --- a/net-misc/radvd/metadata.xml +++ b/net-misc/radvd/metadata.xml @@ -6,4 +6,8 @@ wschlich@gentoo.org Wolfram Schlich + + xmw@gentoo.org + Michael Weber + diff --git a/net-misc/radvd/radvd-1.7.ebuild b/net-misc/radvd/radvd-1.7.ebuild new file mode 100644 index 000000000000..53e91a150396 --- /dev/null +++ b/net-misc/radvd/radvd-1.7.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-1.7.ebuild,v 1.1 2011/06/16 22:42:39 xmw Exp $ + +EAPI=2 +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" + +DEPEND="sys-devel/bison + sys-devel/flex" +RDEPEND="" + +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 \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc CHANGES README TODO radvd.conf.example || die + dohtml INTRO.html || die + + newinitd "${FILESDIR}/${PN}".init "${PN}" || die + newconfd "${FILESDIR}/${PN}".conf "${PN}" || die + + # location of radvd.pid needs to be writeable by the radvd user + keepdir /var/run/radvd + chown -R radvd:radvd "${D}"/var/run/radvd || die + 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." +} diff --git a/net-misc/radvd/radvd-1.8.ebuild b/net-misc/radvd/radvd-1.8.ebuild new file mode 100644 index 000000000000..d4e9aeefc001 --- /dev/null +++ b/net-misc/radvd/radvd-1.8.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-1.8.ebuild,v 1.1 2011/06/16 22:42:39 xmw Exp $ + +EAPI=2 +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" + +DEPEND="sys-devel/bison + sys-devel/flex" +RDEPEND="" + +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 \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc CHANGES README TODO radvd.conf.example || die + dohtml INTRO.html || die + + newinitd "${FILESDIR}/${PN}".init "${PN}" || die + newconfd "${FILESDIR}/${PN}".conf "${PN}" || die + + # location of radvd.pid needs to be writeable by the radvd user + keepdir /var/run/radvd + chown -R radvd:radvd "${D}"/var/run/radvd || die + 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." +} -- cgit v1.2.3-65-gdbad