commit: 5022f21d9d23fd2126ac38516a8eaf7024e92689 Author: Austin English <wizardedit <AT> gentoo <DOT> org> AuthorDate: Wed May 4 00:26:36 2016 +0000 Commit: Austin English <wizardedit <AT> gentoo <DOT> org> CommitDate: Wed May 4 00:26:36 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5022f21d
net-misc/netkit-timed: use #!/sbin/openrc-run instead of #!/sbin/runscript Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26 net-misc/netkit-timed/files/timed.rc6 | 4 +- net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild | 43 ++++++++++++++++++++++ 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/net-misc/netkit-timed/files/timed.rc6 b/net-misc/netkit-timed/files/timed.rc6 index f634526..0aaa477 100644 --- a/net-misc/netkit-timed/files/timed.rc6 +++ b/net-misc/netkit-timed/files/timed.rc6 @@ -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 index 0000000..80ed917 --- /dev/null +++ b/net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild @@ -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 +}
