diff options
author | Michael Weber <xmw@gentoo.org> | 2017-02-01 10:59:59 +0100 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2017-02-01 11:02:29 +0100 |
commit | f2146e7a0aa26abcb5a6ea1292d353da4a8c7865 (patch) | |
tree | 3f86276cbc2bdc7db1ddc35b864e4ff3933d550e /net-misc | |
parent | net-misc/radvd: Remove old versions. (diff) | |
download | gentoo-f2146e7a0aa26abcb5a6ea1292d353da4a8c7865.tar.gz gentoo-f2146e7a0aa26abcb5a6ea1292d353da4a8c7865.tar.bz2 gentoo-f2146e7a0aa26abcb5a6ea1292d353da4a8c7865.zip |
net-misc/radvd: Version bump. Fix tmpfiles.d issue (bug 603106, thanks Randy Barlow).
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/radvd/Manifest | 1 | ||||
-rw-r--r-- | net-misc/radvd/radvd-2.16.ebuild | 72 |
2 files changed, 73 insertions, 0 deletions
diff --git a/net-misc/radvd/Manifest b/net-misc/radvd/Manifest index 3ebb7f864ffe..6d78f1b5d291 100644 --- a/net-misc/radvd/Manifest +++ b/net-misc/radvd/Manifest @@ -1,2 +1,3 @@ DIST radvd-2.14.tar.gz 211461 SHA256 46d31c05daea11c3d1e3dc092997d3631b3bc72b20a4f279b05304b83dbd7aa8 SHA512 8fdfd776f998b82e9dcbb29a13e44b1ba060f2e4b03bae0167549fb58731f16e80e980f9636e0d7614270b8e6457779ac044b433c5c5d26d9fb72ea9e2d3cb02 WHIRLPOOL 6f2974c4e9d689052b36885c2b82425e346bdd7fd3a928a650f2c71debc7cd5e3c13504759fb5cec20641f4e6fdf35ce6a83fe3023f6efa00efff3da84b01954 DIST radvd-2.15.tar.gz 214256 SHA256 83dd770595e6182757fd652cfc46ee462b73d8d34ba0848a1d481c4d51143607 SHA512 51ed457814f32750f915e22556c739d0a574af6318d469ae77c42fb7dfce8752edc2b70e3dd910d46c6198a5a81e4be4611dd4e379920488f4d4427cda0a7ea0 WHIRLPOOL 3b8d9436b6c37088f7af0de06e12ef93a05ab2b71df0617e63d6ee106b336a22dfad3df07e6c0301da5bf4d8a646a2c2ce2a50d9ca991f541c51ce35ebb2b187 +DIST radvd-2.16.tar.gz 213901 SHA256 fe2d81b00120215b244749bdbb234579a059e71cc6d54bcdc56c68ae8f0c2e35 SHA512 7e4f882acca7b754cf452a710cef847150bc6da35a8e6c18f35764ec0dceffc5ec7e98008faed5e9e39754894fb72066a1a00da0e4b8b9b55b1d56f024a887f8 WHIRLPOOL ab544ecaca598ccf01c578bf517b465b7445ffa1233778fa5be32ca2db34ce483c6e52fcd5e80deff3e6619f172ae5bb95910eee45b2ba6bb954a586546ea33a diff --git a/net-misc/radvd/radvd-2.16.ebuild b/net-misc/radvd/radvd-2.16.ebuild new file mode 100644 index 000000000000..3e0364d5756b --- /dev/null +++ b/net-misc/radvd/radvd-2.16.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit systemd user eutils readme.gentoo-r1 tmpfiles + +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 ~arm64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="kernel_FreeBSD selinux test" + +CDEPEND="dev-libs/libdaemon" +DEPEND="${CDEPEND} + sys-devel/bison + sys-devel/flex + virtual/pkgconfig + test? ( dev-libs/check )" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-radvd ) +" +DOCS=( CHANGES README TODO radvd.conf.example ) + +pkg_setup() { + enewgroup radvd + enewuser radvd -1 -1 /dev/null radvd +} + +src_configure() { + econf --with-pidfile=/run/radvd/radvd.pid \ + --disable-silent-rules \ + --with-systemdsystemunitdir=no \ + $(use_with test check) +} + +src_install() { + default + + insinto /usr/share/doc/${PF}/html + doins INTRO.html + + newinitd "${FILESDIR}"/${PN}-2.15.init ${PN} + newconfd "${FILESDIR}"/${PN}.conf ${PN} + + systemd_dounit "${FILESDIR}"/${PN}.service + systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfilesd ${PN}.conf + + 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 + + readme.gentoo_create_doc +} + +pkg_postinst() { + tmpfiles_process ${PN}.conf +} + +DISABLE_AUTOFORMATTING=1 +DOC_CONTENTS="Please create a configuration file ${ROOT}etc/radvd.conf. +See ${ROOT}usr/share/doc/${PF} for an example. + +grsecurity users should allow a specific group to read /proc +and add the radvd user to that group, otherwise radvd may +segfault on startup." |