diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2008-06-15 11:19:23 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2008-06-15 11:19:23 +0000 |
commit | ded3822867e76de04ab7c35cf4d78651e14db8e7 (patch) | |
tree | 05b878afd3493bd3d04850a1a8589515c4a9fd31 /net-misc | |
parent | Add missing pkg-config dependency (diff) | |
download | gentoo-2-ded3822867e76de04ab7c35cf4d78651e14db8e7.tar.gz gentoo-2-ded3822867e76de04ab7c35cf4d78651e14db8e7.tar.bz2 gentoo-2-ded3822867e76de04ab7c35cf4d78651e14db8e7.zip |
version bump wrt bug #226509
(Portage version: 2.1.5.4)
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/radvd/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/radvd/files/radvd-1.1-gnu-source.patch | 11 | ||||
-rw-r--r-- | net-misc/radvd/radvd-1.1.ebuild | 74 |
3 files changed, 93 insertions, 2 deletions
diff --git a/net-misc/radvd/ChangeLog b/net-misc/radvd/ChangeLog index 19b76f408343..d70c7fa202e5 100644 --- a/net-misc/radvd/ChangeLog +++ b/net-misc/radvd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/radvd -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.39 2007/12/25 16:28:41 phreak Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/ChangeLog,v 1.40 2008/06/15 11:19:23 wschlich Exp $ + +*radvd-1.1 (15 Jun 2008) + + 15 Jun 2008; Wolfram Schlich <wschlich@gentoo.org> + +files/radvd-1.1-gnu-source.patch, +radvd-1.1.ebuild: + version bump wrt bug #226509 25 Dec 2007; Christian Heim <phreak@gentoo.org> metadata.xml: Removing uberlord from metadata.xml as per #199318. diff --git a/net-misc/radvd/files/radvd-1.1-gnu-source.patch b/net-misc/radvd/files/radvd-1.1-gnu-source.patch new file mode 100644 index 000000000000..fc0d883557ad --- /dev/null +++ b/net-misc/radvd/files/radvd-1.1-gnu-source.patch @@ -0,0 +1,11 @@ +--- radvd-1.1.orig/includes.h 2007-10-25 21:29:40.000000000 +0200 ++++ radvd-1.1/includes.h 2008-06-14 12:30:25.000000000 +0200 +@@ -18,6 +18,8 @@ + + #include <config.h> + ++#define _GNU_SOURCE /* needed for struct in6_pktinfo */ ++ + #include <string.h> + #include <stdio.h> + #include <stdarg.h> diff --git a/net-misc/radvd/radvd-1.1.ebuild b/net-misc/radvd/radvd-1.1.ebuild new file mode 100644 index 000000000000..078de6e0cdaa --- /dev/null +++ b/net-misc/radvd/radvd-1.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/radvd/radvd-1.1.ebuild,v 1.1 2008/06/15 11:19:23 wschlich 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 ~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_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-gnu-source.patch +} + +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 + + 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() { + 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" +} |