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

Package-Manager: portage-2.2.26

net-misc/netkit-routed/files/routed.initd
net-misc/netkit-routed/netkit-routed-0.17-r5.ebuild [new file with mode: 0644]

index 562af6f10adb5b099ce3e2908904bab3b2598083..0b821fd19e83f008ac00e13c0d2caa82a6018f08 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/netkit-routed/netkit-routed-0.17-r5.ebuild b/net-misc/netkit-routed/netkit-routed-0.17-r5.ebuild
new file mode 100644 (file)
index 0000000..2356857
--- /dev/null
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Netkit - routed"
+HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+SRC_URI="mirror://debian/pool/main/n/netkit-routed/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="alpha ~amd64 ~mips ppc sparc x86"
+IUSE=""
+
+src_prepare() {
+       sed -i configure -e '/^LDFLAGS=/d' || die
+       epatch "${FILESDIR}"/${P}-time.patch
+       epatch "${FILESDIR}"/${P}-printf.patch #529992
+}
+
+src_configure() {
+       # Not an autotools generated configure script
+       ./configure --with-c-compiler=$(tc-getCC) || die
+}
+
+src_install() {
+       # ripquery
+       dosbin ripquery/ripquery
+       doman ripquery/ripquery.8
+
+       # routed
+       dosbin routed/routed
+       dosym routed /usr/sbin/in.routed
+       doman routed/routed.8
+       dosym routed.8 /usr/share/man/man8/in.routed.8
+
+       # docs
+       dodoc README ChangeLog
+       newdoc routed/README README.routed
+
+       # init scripts
+       newconfd "${FILESDIR}"/routed.confd routed
+       newinitd "${FILESDIR}"/routed.initd routed
+}