summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/mrouted')
-rw-r--r--net-misc/mrouted/Manifest1
-rw-r--r--net-misc/mrouted/metadata.xml3
-rw-r--r--net-misc/mrouted/mrouted-3.9.8.ebuild48
3 files changed, 52 insertions, 0 deletions
diff --git a/net-misc/mrouted/Manifest b/net-misc/mrouted/Manifest
index 3441e8661a13..cee5d0e38fad 100644
--- a/net-misc/mrouted/Manifest
+++ b/net-misc/mrouted/Manifest
@@ -1 +1,2 @@
DIST mrouted-3.9.5.tar.bz2 112746 BLAKE2B 146d088b0fe3691c48b86a5bb4fb191c6a138fcef065c2afb549e068181953bb5ec46a6d710b2f158ba9290f8b7cc8dd3314cafeb0d681a43419a69d2cda58e4 SHA512 6ab7335fd18bcb971eb0f9af26e8fd566b1bf2e53abdfcdea847c4bd719d282496c443914678c6fcbcf754e276663ed48ac9f0ae9e940e60eff71ceb1f4622fd
+DIST mrouted-3.9.8.tar.bz2 112863 BLAKE2B 4a7defbb1b97be8e452881a689d99742df2878dc9c2613c79e1bdc33af398c2be1b2d21de94e90592877ee5b6aa6b2f0c64948193eda9005c828a6cc84e492c0 SHA512 50abf2271c76b604d1e356ca5c0b62a7f07487f364991502326bbee169c451b43b3dbf01b88340d6b406f16d86a6d6fd9e7bb03c6e76d6af463b46d8423a41f4
diff --git a/net-misc/mrouted/metadata.xml b/net-misc/mrouted/metadata.xml
index 6f49eba8f496..b3b5c800ae34 100644
--- a/net-misc/mrouted/metadata.xml
+++ b/net-misc/mrouted/metadata.xml
@@ -2,4 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
+<use>
+<flag name='rsrr'>Enable Routing Support for Resource Reservations, for RSVP</flag>
+</use>
</pkgmetadata>
diff --git a/net-misc/mrouted/mrouted-3.9.8.ebuild b/net-misc/mrouted/mrouted-3.9.8.ebuild
new file mode 100644
index 000000000000..74cff54b4c32
--- /dev/null
+++ b/net-misc/mrouted/mrouted-3.9.8.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+DESCRIPTION="IP multicast routing daemon"
+HOMEPAGE="https://troglobit.com/projects/mrouted/"
+SRC_URI="https://github.com/troglobit/${PN}/releases/download/${PV}/${P}.tar.bz2"
+LICENSE="Stanford GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="rsrr"
+RESTRICT="test"
+
+DEPEND="|| ( dev-util/yacc sys-devel/bison )"
+
+src_prepare() {
+ # Respect user CFLAGS, remove upstream optimisation and -Werror, do not
+ # print command summaries, do print commands
+ sed -i \
+ -e '/^CFLAGS/{s|[[:space:]]=| +=|g;s|-O2||g;s|-Werror||g}' \
+ -e '/@printf/d' \
+ -e 's|^\t-@|\t-|g' \
+ -e 's|^\t@|\t|g' \
+ Makefile || die
+ default
+}
+
+src_configure() {
+ sh configure $(usex rsrr --enable-rsrr '')
+ tc-export CC CXX
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) CXX=$(tc-getCXX)
+}
+
+src_install() {
+ dobin mrouted
+ dosbin mtrace mrinfo map-mbone
+ doman mrouted.8 mtrace.8 mrinfo.8 map-mbone.8
+
+ insinto /etc
+ doins mrouted.conf
+ newinitd "${FILESDIR}"/mrouted.rc mrouted
+}