commit:     96d711dc8d5fb000b211bd435524a027b15186a7
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 31 06:39:41 2024 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Dec 31 06:40:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96d711dc

net-misc/radvd: version bump

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 net-misc/radvd/Manifest          |  1 +
 net-misc/radvd/radvd-2.20.ebuild | 73 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git a/net-misc/radvd/Manifest b/net-misc/radvd/Manifest
index 9f1864d92042..6d93dd095ce1 100644
--- a/net-misc/radvd/Manifest
+++ b/net-misc/radvd/Manifest
@@ -1 +1,2 @@
 DIST radvd-2.19.tar.xz 168264 BLAKE2B 
e28705837263d2d377721e4eaee56b2f86d636d77cf052f08a7c74d5d7f3871f6821a2681ba4997f283b4debe9b3df28a88b01f6fc16b87ee7c3f8b6bbf431b4
 SHA512 
a1eb40af90fc83ebab2517c16a0f7e85c11338ab276bec400b7c33177748d1e36bc5abd7e373b6742f12f7c690dd7ae6b951bc832c7de9bbb56f7e9bc844ed22
+DIST radvd-2.20.tar.xz 188720 BLAKE2B 
4f7d0388ba0a0f0ba44e0a4afa1dc8c0e81e6c4b9b77257d4b493db058bffe7c570d20a0bc057184257ae8a5223ce88b01b4a219cd206bdd81142350484e32c6
 SHA512 
22d6d8888aae326d65e82359879082f5b7d6977eacb198e3f4af2ae9fba4c1d8723eccebd8857ddc60053ae08f0ca0a5406729883dd76766d3ec61a4b5e5e956

diff --git a/net-misc/radvd/radvd-2.20.ebuild b/net-misc/radvd/radvd-2.20.ebuild
new file mode 100644
index 000000000000..c77eb8fe872f
--- /dev/null
+++ b/net-misc/radvd/radvd-2.20.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools readme.gentoo-r1 systemd toolchain-funcs
+
+DESCRIPTION="Linux IPv6 Router Advertisement Daemon"
+HOMEPAGE="https://radvd-project.github.io/";
+SRC_URI="https://github.com/radvd-project/radvd/releases/download/v${PV}/${P}.tar.xz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="selinux test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       sys-devel/bison
+       sys-devel/flex
+       virtual/pkgconfig"
+DEPEND="test? ( dev-libs/check )"
+RDEPEND="
+       acct-group/radvd
+       acct-user/radvd
+       selinux? ( sec-policy/selinux-radvd )"
+
+PATCHES=(
+)
+
+src_prepare() {
+       default
+
+       # Drop once clang16 patch is in a release
+       eautoreconf
+}
+
+src_configure() {
+       # Needs reentrant functions (yyset_in), bug #884375
+       export LEX=flex
+
+       econf --with-pidfile=/run/radvd/radvd.pid \
+               --with-systemdsystemunitdir=no \
+               $(use_with test check)
+}
+
+src_compile() {
+       emake AR="$(tc-getAR)"
+}
+
+src_install() {
+       HTML_DOCS=( INTRO.html )
+       default
+       dodoc radvd.conf.example
+
+       newinitd "${FILESDIR}"/${PN}-2.19.init ${PN}
+       newconfd "${FILESDIR}"/${PN}.conf ${PN}
+
+       systemd_dounit "${FILESDIR}"/${PN}.service
+
+       DISABLE_AUTOFORMATTING=1
+       local DOC_CONTENTS="Please create a configuration file 
${EPREFIX}/etc/radvd.conf.
+See ${EPREFIX}/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."
+       readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+}

Reply via email to