net-misc/mrouted: use #!/sbin/openrc-run instead of #!/sbin/runscript
authorAustin English <wizardedit@gentoo.org>
Wed, 4 May 2016 00:18:42 +0000 (19:18 -0500)
committerAustin English <wizardedit@gentoo.org>
Wed, 4 May 2016 00:18:42 +0000 (19:18 -0500)
Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

net-misc/mrouted/files/mrouted.rc
net-misc/mrouted/mrouted-3.9.5-r1.ebuild [new file with mode: 0644]

index fa47acbd6eff10997bbc7e5c1df6ab0c02ca85a9..ac76f639bb137f52abe41a3a79087c43d8a49f35 100644 (file)
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
diff --git a/net-misc/mrouted/mrouted-3.9.5-r1.ebuild b/net-misc/mrouted/mrouted-3.9.5-r1.ebuild
new file mode 100644 (file)
index 0000000..53de0f0
--- /dev/null
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+DESCRIPTION="IP multicast routing daemon"
+HOMEPAGE="http://troglobit.com/mrouted.shtml"
+SRC_URI="ftp://ftp.vmlinux.org/pub/People/jocke/${PN}/${P}.tar.bz2"
+LICENSE="Stanford GPL-2"
+
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="|| ( dev-util/yacc sys-devel/bison )"
+RDEPEND=""
+
+src_prepare() {
+       # Respect user CFLAGS, remove upstream optimisation and -Werror
+       sed -i Makefile \
+               -e '/^CFLAGS/{s|[[:space:]]=| +=|g;s|-O2||g;s|-Werror||g}' \
+               || die
+       default
+}
+
+src_compile() {
+       emake CC=$(tc-getCC)
+}
+
+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
+}