1 |
commit: 1f52baaefd3b5bb995d64f11df12433dfa9c8a5e |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 23:43:51 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 23:43:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f52baae |
7 |
|
8 |
net-irc/ptlink-opm: 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-irc/ptlink-opm/files/ptlink-opm.init.d | 4 +-- |
15 |
net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild | 49 +++++++++++++++++++++++++++ |
16 |
2 files changed, 51 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-irc/ptlink-opm/files/ptlink-opm.init.d b/net-irc/ptlink-opm/files/ptlink-opm.init.d |
19 |
index 0994939..8e50467 100644 |
20 |
--- a/net-irc/ptlink-opm/files/ptlink-opm.init.d |
21 |
+++ b/net-irc/ptlink-opm/files/ptlink-opm.init.d |
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-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild b/net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..c4f0851 |
34 |
--- /dev/null |
35 |
+++ b/net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild |
36 |
@@ -0,0 +1,49 @@ |
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 eutils user |
44 |
+ |
45 |
+MY_P="PTlink.OPM${PV}" |
46 |
+ |
47 |
+DESCRIPTION="PTlink Open Proxy Monitor" |
48 |
+HOMEPAGE="http://www.ptlink.net/" |
49 |
+SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/ptopm/${MY_P}.tar.gz" |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~x86 ~ppc" |
53 |
+IUSE="" |
54 |
+ |
55 |
+RDEPEND="" |
56 |
+DEPEND=">=sys-apps/sed-4" |
57 |
+ |
58 |
+S=${WORKDIR}/${MY_P} |
59 |
+ |
60 |
+src_configure() { |
61 |
+ econf \ |
62 |
+ --sysconfdir=/etc/ptlink-opm \ |
63 |
+ --localstatedir=/var/lib/ptlink-opm |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ newbin src/ptopm ptlink-opm |
68 |
+ |
69 |
+ insinto /etc/ptlink-opm |
70 |
+ newins samples/ptopm.dconf.sample ptopm.dconf |
71 |
+ doins samples/scan_rules.dconf |
72 |
+ |
73 |
+ keepdir /var/{lib,log}/ptlink-opm |
74 |
+ dosym /var/log/ptlink-opm /var/lib/ptlink-opm/log |
75 |
+ |
76 |
+ dodoc CHANGES README || die "dodoc failed" |
77 |
+ |
78 |
+ newinitd "${FILESDIR}"/ptlink-opm.init.d ptlink-opm |
79 |
+ newconfd "${FILESDIR}"/ptlink-opm.conf.d ptlink-opm |
80 |
+} |
81 |
+ |
82 |
+pkg_postinst() { |
83 |
+ enewuser ptlink-opm |
84 |
+ chown ptlink-opm "${ROOT}"/var/{log,lib}/ptlink-opm |
85 |
+} |