1 |
commit: 74c97e15d808a626f7e9e83a6631ab399e2433ad |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 23:27:07 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 4 00:08:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74c97e15 |
7 |
|
8 |
net-misc/fakeidentd: 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/fakeidentd/fakeidentd-2.6-r1.ebuild | 41 ++++++++++++++++++++++++++++ |
15 |
net-misc/fakeidentd/files/fakeidentd.rc | 4 +-- |
16 |
2 files changed, 43 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild b/net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..6b20987 |
21 |
--- /dev/null |
22 |
+++ b/net-misc/fakeidentd/fakeidentd-2.6-r1.ebuild |
23 |
@@ -0,0 +1,41 @@ |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+# $Id$ |
27 |
+ |
28 |
+EAPI=6 |
29 |
+ |
30 |
+inherit toolchain-funcs |
31 |
+ |
32 |
+DESCRIPTION="A static, secure identd. One source file only!" |
33 |
+HOMEPAGE="http://www.guru-group.fi/~too/sw/" |
34 |
+SRC_URI="http://www.guru-group.fi/~too/sw/identd.readme -> ${P}.readme |
35 |
+ http://www.guru-group.fi/~too/sw/releases/identd.c -> ${P}.c" |
36 |
+ |
37 |
+LICENSE="GPL-2" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="alpha amd64 arm hppa ~ia64 ppc ppc64 ~sh sparc x86" |
40 |
+IUSE="" |
41 |
+ |
42 |
+echoit() { |
43 |
+ echo "$@" |
44 |
+ "$@" |
45 |
+} |
46 |
+ |
47 |
+src_unpack() { |
48 |
+ mkdir -p "${S}" |
49 |
+ echoit cp "${DISTDIR}"/${P}.{c,readme} "${S}" || die |
50 |
+} |
51 |
+ |
52 |
+src_compile() { |
53 |
+ echoit $(tc-getCC) ${CFLAGS} ${LDFLAGS} \ |
54 |
+ -DTRG=\"${PN}\" -DUSE_UNIX_OS -DVERSION=\"${PV}\" \ |
55 |
+ -o ${PN} ${P}.c || die |
56 |
+} |
57 |
+ |
58 |
+src_install() { |
59 |
+ dosbin ${PN} |
60 |
+ newdoc ${P}.readme identd.readme |
61 |
+ |
62 |
+ newinitd "${FILESDIR}"/fakeidentd.rc fakeidentd |
63 |
+ newconfd "${FILESDIR}"/fakeidentd.confd fakeidentd |
64 |
+} |
65 |
|
66 |
diff --git a/net-misc/fakeidentd/files/fakeidentd.rc b/net-misc/fakeidentd/files/fakeidentd.rc |
67 |
index 79082f0..4510f74 100644 |
68 |
--- a/net-misc/fakeidentd/files/fakeidentd.rc |
69 |
+++ b/net-misc/fakeidentd/files/fakeidentd.rc |
70 |
@@ -1,5 +1,5 @@ |
71 |
-#!/sbin/runscript |
72 |
-# Copyright 1999-2004 Gentoo Foundation |
73 |
+#!/sbin/openrc-run |
74 |
+# Copyright 1999-2016 Gentoo Foundation |
75 |
# Distributed under the terms of the GNU General Public License v2 |
76 |
# $Id$ |