diff options
-rw-r--r-- | net-misc/radvd/Manifest | 1 | ||||
-rw-r--r-- | net-misc/radvd/radvd-2.17.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/net-misc/radvd/Manifest b/net-misc/radvd/Manifest index 6d78f1b5d291..1a288a6e6489 100644 --- a/net-misc/radvd/Manifest +++ b/net-misc/radvd/Manifest @@ -1,3 +1,4 @@ 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 +DIST radvd-2.17.tar.gz 214937 SHA256 53757e7f2164899e1145482f1ae91829600a6e2f6fec29cfb3b350a3bb45bd5d SHA512 117a42c2c007d730b956cf999ac281f50a1a9b57c9428fe0f860cb211ac234ec62f59fead244a80191aaa15ef4ce96fb7dba9bd1a3cb6c3b29f1b6897d7a6132 WHIRLPOOL fdd0a9fbe306a6f761e3260071c7557bb3c0b164fb139bce8d9403bc97f087069f96077eb5f2dc92594a0b1e91eca1062ac817610f66c1402cb660703ee3fa12 diff --git a/net-misc/radvd/radvd-2.17.ebuild b/net-misc/radvd/radvd-2.17.ebuild new file mode 100644 index 000000000000..86b02def5e1e --- /dev/null +++ b/net-misc/radvd/radvd-2.17.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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." |