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

Package-Manager: portage-2.2.26

net-misc/netkit-timed/files/timed.rc6
net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild [new file with mode: 0644]

index f6345262c2cb61e4042a08c45bdd845b348527c1..0aaa477a16f9f55c40fe9a968340d8eab727b6a7 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-timed/netkit-timed-0.17-r10.ebuild b/net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild
new file mode 100644 (file)
index 0000000..80ed917
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+inherit flag-o-matic toolchain-funcs
+
+IUSE=""
+DESCRIPTION="Netkit - timed"
+SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz"
+HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+KEYWORDS="amd64 ~mips ppc ppc64 sparc x86"
+LICENSE="BSD GPL-2"
+SLOT="0"
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+       eapply "${FILESDIR}"/0.17-CFLAG-DEF-fix.patch
+       eapply "${FILESDIR}"/0.17-timed-opt-parsing.patch
+       sed -i configure \
+               -e '/^LDFLAGS=/d' \
+               || die "sed configure"
+       default
+}
+
+src_configure() {
+       # Note this is not an autoconf configure script. econf fails
+       append-flags -DCLK_TCK=CLOCKS_PER_SEC
+       ./configure --prefix=/usr --with-c-compiler=$(tc-getCC) || die "bad configure"
+}
+
+src_install() {
+       dosbin timed/timed/timed
+       doman  timed/timed/timed.8
+       dosbin timed/timedc/timedc
+       doman  timed/timedc/timedc.8
+       dodoc  README ChangeLog BUGS
+
+       newinitd "${FILESDIR}"/timed.rc6 timed
+}