1 |
commit: 8c537ceacee34afc593a7dff3224db4131193f5a |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 9 13:45:50 2018 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 9 13:45:50 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c537cea |
7 |
|
8 |
net-proxy/tinyproxy: revbump for changed paths in service files |
9 |
|
10 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
net-proxy/tinyproxy/files/tinyproxy-1.10.0.initd | 40 ++++++++++++++++++++++ |
14 |
net-proxy/tinyproxy/files/tinyproxy-1.10.0.service | 9 +++++ |
15 |
...xy-1.10.0.ebuild => tinyproxy-1.10.0-r1.ebuild} | 4 +-- |
16 |
3 files changed, 51 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/net-proxy/tinyproxy/files/tinyproxy-1.10.0.initd b/net-proxy/tinyproxy/files/tinyproxy-1.10.0.initd |
19 |
new file mode 100644 |
20 |
index 00000000000..48688a2c19c |
21 |
--- /dev/null |
22 |
+++ b/net-proxy/tinyproxy/files/tinyproxy-1.10.0.initd |
23 |
@@ -0,0 +1,40 @@ |
24 |
+#!/sbin/openrc-run |
25 |
+# Copyright 1999-2018 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+get_config() { |
29 |
+ res=$(awk '$1 == "'$1'" { s=$2 } END { print s }' "$CONFFILE") |
30 |
+ |
31 |
+ if [ "x$res" = "x" ]; then |
32 |
+ echo "$2" |
33 |
+ else |
34 |
+ eval echo "$res" |
35 |
+ fi |
36 |
+} |
37 |
+ |
38 |
+: ${CONFFILE:="/etc/${SVCNAME}/${SVCNAME}.conf"} |
39 |
+ |
40 |
+command=/usr/bin/tinyproxy |
41 |
+command_args="-c ${CONFFILE}" |
42 |
+pidfile=$(get_config PidFile /run/tinyproxy/${SVCNAME}.pid) |
43 |
+ |
44 |
+depend() { |
45 |
+ config "$CONFFILE" |
46 |
+ |
47 |
+ use dns |
48 |
+ |
49 |
+ [ "$(get_config Syslog Off)" = "On" ] && \ |
50 |
+ use logger |
51 |
+} |
52 |
+ |
53 |
+start_pre() { |
54 |
+ piddir=$(dirname ${pidfile}) |
55 |
+ |
56 |
+ if [ "${piddir}" = "/run" ]; then |
57 |
+ eerror "Please change your PidFile settings to be within the" |
58 |
+ eerror "/run/tinyproxy directory" |
59 |
+ eend 1 |
60 |
+ else |
61 |
+ checkpath -d -o $(get_config User tinyproxy):$(get_config Group tinyproxy) ${piddir} |
62 |
+ fi |
63 |
+} |
64 |
|
65 |
diff --git a/net-proxy/tinyproxy/files/tinyproxy-1.10.0.service b/net-proxy/tinyproxy/files/tinyproxy-1.10.0.service |
66 |
new file mode 100644 |
67 |
index 00000000000..e7831009877 |
68 |
--- /dev/null |
69 |
+++ b/net-proxy/tinyproxy/files/tinyproxy-1.10.0.service |
70 |
@@ -0,0 +1,9 @@ |
71 |
+[Unit] |
72 |
+Description=Tinyproxy Web Proxy Server |
73 |
+After=network.target |
74 |
+ |
75 |
+[Service] |
76 |
+ExecStart=/usr/bin/tinyproxy -d -c /etc/tinyproxy/tinyproxy.conf |
77 |
+ |
78 |
+[Install] |
79 |
+WantedBy=multi-user.target |
80 |
|
81 |
diff --git a/net-proxy/tinyproxy/tinyproxy-1.10.0.ebuild b/net-proxy/tinyproxy/tinyproxy-1.10.0-r1.ebuild |
82 |
similarity index 93% |
83 |
rename from net-proxy/tinyproxy/tinyproxy-1.10.0.ebuild |
84 |
rename to net-proxy/tinyproxy/tinyproxy-1.10.0-r1.ebuild |
85 |
index ea8b9f2b083..bb01f626907 100644 |
86 |
--- a/net-proxy/tinyproxy/tinyproxy-1.10.0.ebuild |
87 |
+++ b/net-proxy/tinyproxy/tinyproxy-1.10.0-r1.ebuild |
88 |
@@ -58,8 +58,8 @@ src_install() { |
89 |
diropts -m0775 -o ${PN} -g ${PN} |
90 |
keepdir /var/log/${PN} |
91 |
|
92 |
- newinitd "${FILESDIR}"/${PN}-1.8.3-r2.initd tinyproxy |
93 |
- systemd_dounit "${FILESDIR}"/${PN}.service |
94 |
+ newinitd "${FILESDIR}"/${PN}-1.10.0.initd tinyproxy |
95 |
+ systemd_dounit "${FILESDIR}"/${PN}-1.10.0.service |
96 |
systemd_dotmpfilesd "${FILESDIR}"/${PN}.tmpfiles.conf |
97 |
} |