Commit 739e583b authored by Natanael Copa's avatar Natanael Copa
Browse files

main/tinyproxy: fix conf location and openrc script

ref #9973
parent ff1b503d
......@@ -2,7 +2,7 @@
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tinyproxy
pkgver=1.10.0
pkgrel=0
pkgrel=1
pkgdesc="Lightweight HTTP proxy"
pkgusers="tinyproxy"
pkggroups="tinyproxy"
......@@ -39,7 +39,7 @@ build() {
--host=$CHOST \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc/tinyproxy \
--sysconfdir=/etc \
--disable-dependency-tracking \
--enable-reverse \
|| return 1
......@@ -55,4 +55,4 @@ package() {
}
sha512sums="53187adef865672a6c29f126189cf896bd02f8b0789ee2ee00b82d93b952c70dacdd2c82b0845392e518560e75e6ee107ce7662d1ec71108f293ba1d7de6aa2a tinyproxy-1.10.0.tar.gz
78ed4e80cce82a3d08685c67ae2d0e7e5d238b394fb4a58c3f30ff3de2fb96db0afdfd7ff474effae6215172ffcbad193fbbcc483dba8cdc8aa08eb893fc0717 tinyproxy.initd"
7ef08d290acec161d0c2257885c10bc5c827a72bcc67d842c4a0396d114d1f6acabd40643e051f4c233798b449046e8c8a449ebe404f9ac4c93238adbff7909b tinyproxy.initd"
......@@ -26,9 +26,9 @@ start() {
checkpath --directory --owner tinyproxy:tinyproxy /var/run/tinyproxy
ebegin "Starting tinyproxy"
if [ -n "${PIDFILE}" ]; then
start-stop-daemon --start --pidfile "${PIDFILE}" --startas /usr/sbin/tinyproxy -- -c "${CONFFILE}"
start-stop-daemon --start --pidfile "${PIDFILE}" --startas /usr/bin/tinyproxy -- -c "${CONFFILE}"
else
start-stop-daemon --start --exec /usr/sbin/tinyproxy -- -c "${CONFFILE}"
start-stop-daemon --start --exec /usr/bin/tinyproxy -- -c "${CONFFILE}"
fi
eend $?
}
......@@ -40,7 +40,7 @@ stop() {
if [ -n "${PIDFILE}" ]; then
start-stop-daemon --stop --pidfile "${PIDFILE}"
else
start-stop-daemon --stop --exec /usr/sbin/tinyproxy
start-stop-daemon --stop --exec /usr/bin/tinyproxy
fi
eend $?
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment