net-misc/mrouted: add 4.7

Bug: https://bugs.gentoo.org/982506
Signed-off-by: Brett A C Sheffield <bacs@librecast.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1849
Merges: https://codeberg.org/gentoo/gentoo/pulls/1849
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Brett A C Sheffield
2026-09-13 19:55:36 +00:00
committed by Sam James
parent 88ba664c9f
commit d1c54e2360
2 changed files with 51 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST mrouted-4.6.tar.gz 325200 BLAKE2B eee3509d2a87ca6e089889900e5b96e14e344d12a895c6d6a4a8a3c65fab78640f0906839fda0a88f6803b608d8a9551d66d1fffae218c14331a7bfc655f2ae9 SHA512 e3e4483c38cc85787e1873a733213eedcdccaf371e39ba6ccc01786184d2ddf1ee5e44bde6d04424b28ebbcec2a020d9575ad48323fc4d2a58a88f4cf639ec1c
DIST mrouted-4.7.tar.gz 325769 BLAKE2B ff026175bb880b54dc57511ad20540a2b33b2c2448b582e23cc2d072c13b0e59ebff3959951c32575d9b5feb6d3f948d3034a4af3d36ac926e35a885dc9a27e0 SHA512 d8035dce5cc448657f347269239963d5702d61a30e020e9a5e0ae29dca2c642095b37186294509f0ceb57552dafbd3eafd6320b578644ee0ffde089bda0add9c

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs systemd
DESCRIPTION="IP multicast routing daemon"
HOMEPAGE="https://troglobit.com/projects/mrouted/"
SRC_URI="https://github.com/troglobit/${PN}/releases/download/${PV}/${P}.tar.gz"
LICENSE="Stanford GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="test"
# Needs unshare
RESTRICT="!test? ( test ) test"
BDEPEND="
app-alternatives/yacc
virtual/pkgconfig
"
src_configure() {
tc-export CC CXX
# rename mtrace binary to mrtrace to avoid conflict with glibc (886145)
# and rewrite the man page so we don't confuse people
sed -i -e 's/MTRACE/MRTRACE/' -e 's/mtrace/mrtrace/' man/mtrace.8 || die
econf $(use_enable test) "--program-transform-name='s/^mtrace/mrtrace/'"
}
src_compile() {
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
}
src_install() {
default
insinto /etc
doins mrouted.conf
newinitd "${FILESDIR}"/mrouted.rc mrouted
systemd_dounit mrouted.service
}
pkg_postinst() {
ewarn "The mtrace program from mrouted conflicts with the one installed by glibc"
ewarn "so it has been renamed to mrtrace. See mrtrace(8) for documentation."
}