Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/netkit-timed/files/, net-misc/netkit-timed/
Date: Wed, 04 May 2016 01:02:25
Message-Id: 1462321596.5022f21d9d23fd2126ac38516a8eaf7024e92689.wizardedit@gentoo
1 commit: 5022f21d9d23fd2126ac38516a8eaf7024e92689
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 4 00:26:36 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 00:26:36 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5022f21d
7
8 net-misc/netkit-timed: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 net-misc/netkit-timed/files/timed.rc6 | 4 +-
15 net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild | 43 ++++++++++++++++++++++
16 2 files changed, 45 insertions(+), 2 deletions(-)
17
18 diff --git a/net-misc/netkit-timed/files/timed.rc6 b/net-misc/netkit-timed/files/timed.rc6
19 index f634526..0aaa477 100644
20 --- a/net-misc/netkit-timed/files/timed.rc6
21 +++ b/net-misc/netkit-timed/files/timed.rc6
22 @@ -1,5 +1,5 @@
23 -#!/sbin/runscript
24 -# Copyright 1999-2004 Gentoo Foundation
25 +#!/sbin/openrc-run
26 +# Copyright 1999-2016 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 # $Id$
29
30
31 diff --git a/net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild b/net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild
32 new file mode 100644
33 index 0000000..80ed917
34 --- /dev/null
35 +++ b/net-misc/netkit-timed/netkit-timed-0.17-r10.ebuild
36 @@ -0,0 +1,43 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI="6"
42 +
43 +inherit flag-o-matic toolchain-funcs
44 +
45 +IUSE=""
46 +DESCRIPTION="Netkit - timed"
47 +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz"
48 +HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
49 +KEYWORDS="amd64 ~mips ppc ppc64 sparc x86"
50 +LICENSE="BSD GPL-2"
51 +SLOT="0"
52 +
53 +DEPEND=""
54 +RDEPEND=""
55 +
56 +src_prepare() {
57 + eapply "${FILESDIR}"/0.17-CFLAG-DEF-fix.patch
58 + eapply "${FILESDIR}"/0.17-timed-opt-parsing.patch
59 + sed -i configure \
60 + -e '/^LDFLAGS=/d' \
61 + || die "sed configure"
62 + default
63 +}
64 +
65 +src_configure() {
66 + # Note this is not an autoconf configure script. econf fails
67 + append-flags -DCLK_TCK=CLOCKS_PER_SEC
68 + ./configure --prefix=/usr --with-c-compiler=$(tc-getCC) || die "bad configure"
69 +}
70 +
71 +src_install() {
72 + dosbin timed/timed/timed
73 + doman timed/timed/timed.8
74 + dosbin timed/timedc/timedc
75 + doman timed/timedc/timedc.8
76 + dodoc README ChangeLog BUGS
77 +
78 + newinitd "${FILESDIR}"/timed.rc6 timed
79 +}