1 |
commit: e80645174260d52c03050b688f19c71cc9465b74 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 4 00:37:37 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 4 00:37:37 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8064517 |
7 |
|
8 |
net-misc/rwhoisd: 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/rwhoisd/files/rwhoisd | 2 +- |
15 |
net-misc/rwhoisd/rwhoisd-1.5.9.5-r3.ebuild | 47 ++++++++++++++++++++++++++++++ |
16 |
2 files changed, 48 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/net-misc/rwhoisd/files/rwhoisd b/net-misc/rwhoisd/files/rwhoisd |
19 |
index 8e02214..f6978f6 100644 |
20 |
--- a/net-misc/rwhoisd/files/rwhoisd |
21 |
+++ b/net-misc/rwhoisd/files/rwhoisd |
22 |
@@ -1,4 +1,4 @@ |
23 |
-#!/sbin/runscript |
24 |
+#!/sbin/openrc-run |
25 |
|
26 |
depend() { |
27 |
use logger |
28 |
|
29 |
diff --git a/net-misc/rwhoisd/rwhoisd-1.5.9.5-r3.ebuild b/net-misc/rwhoisd/rwhoisd-1.5.9.5-r3.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..3acff49 |
32 |
--- /dev/null |
33 |
+++ b/net-misc/rwhoisd/rwhoisd-1.5.9.5-r3.ebuild |
34 |
@@ -0,0 +1,47 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Id$ |
38 |
+ |
39 |
+EAPI=5 |
40 |
+inherit eutils flag-o-matic user |
41 |
+ |
42 |
+DESCRIPTION="ARIN rwhois daemon" |
43 |
+HOMEPAGE="http://projects.arin.net/rwhois/" |
44 |
+SRC_URI="http://projects.arin.net/rwhois/ftp/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86" |
49 |
+ |
50 |
+DEPEND=" |
51 |
+ sys-devel/flex |
52 |
+ virtual/yacc |
53 |
+" |
54 |
+ |
55 |
+pkg_setup() { |
56 |
+ enewgroup rwhoisd |
57 |
+ enewuser rwhoisd -1 -1 /var/rwhoisd rwhoisd |
58 |
+} |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ epatch "${FILESDIR}"/${PN}-destdir-${PV}.patch |
62 |
+ append-cflags -DNEW_STYLE_BIN_SORT |
63 |
+} |
64 |
+ |
65 |
+src_compile() { |
66 |
+ emake -C common |
67 |
+ emake -C regexp |
68 |
+ emake -C mkdb |
69 |
+ default |
70 |
+} |
71 |
+ |
72 |
+src_install () { |
73 |
+ default |
74 |
+ doinitd "${FILESDIR}"/rwhoisd |
75 |
+ newconfd "${FILESDIR}"/rwhoisd.conf rwhoisd |
76 |
+} |
77 |
+ |
78 |
+pkg_postinst () { |
79 |
+ einfo "Please make sure to set the userid in rwhoisd.conf to rwhoisd." |
80 |
+ einfo "It is highly inadvisable to run rwhoisd as root." |
81 |
+} |