1 |
commit: ee1a0f757602c408482acbedfdc76507bb4d1f85 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 4 00:34:29 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 4 00:34:29 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee1a0f75 |
7 |
|
8 |
net-misc/rinetd: 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/rinetd/files/rinetd.rc | 4 ++-- |
15 |
net-misc/rinetd/rinetd-0.62-r2.ebuild | 34 ++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 36 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-misc/rinetd/files/rinetd.rc b/net-misc/rinetd/files/rinetd.rc |
19 |
index 9fe4d41..88807c9 100644 |
20 |
--- a/net-misc/rinetd/files/rinetd.rc |
21 |
+++ b/net-misc/rinetd/files/rinetd.rc |
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/rinetd/rinetd-0.62-r2.ebuild b/net-misc/rinetd/rinetd-0.62-r2.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..862eb5c |
34 |
--- /dev/null |
35 |
+++ b/net-misc/rinetd/rinetd-0.62-r2.ebuild |
36 |
@@ -0,0 +1,34 @@ |
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 toolchain-funcs |
44 |
+ |
45 |
+DESCRIPTION="redirects TCP connections from one IP address and port to another" |
46 |
+HOMEPAGE="http://www.boutell.com/rinetd/" |
47 |
+SRC_URI="http://www.boutell.com/rinetd/http/rinetd.tar.gz" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="amd64 x86" |
52 |
+IUSE="" |
53 |
+ |
54 |
+S=${WORKDIR}/${PN} |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ sed -i -e "s:gcc:$(tc-getCC) \$(CFLAGS) \$(LDFLAGS):" Makefile |
59 |
+} |
60 |
+ |
61 |
+src_compile() { |
62 |
+ emake CFLAGS="${CFLAGS} -DLINUX" LDFLAGS="${LDFLAGS}" |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ dosbin rinetd |
67 |
+ newinitd "${FILESDIR}"/rinetd.rc rinetd |
68 |
+ doman rinetd.8 |
69 |
+ dodoc CHANGES README index.html |
70 |
+} |