diff options
Diffstat (limited to 'community/tinyproxy')
-rw-r--r-- | community/tinyproxy/PKGBUILD | 12 | ||||
-rw-r--r-- | community/tinyproxy/tinyproxy | 50 | ||||
-rw-r--r-- | community/tinyproxy/tinyproxy.service | 2 |
3 files changed, 6 insertions, 58 deletions
diff --git a/community/tinyproxy/PKGBUILD b/community/tinyproxy/PKGBUILD index 7206f5728..af06dc7ef 100644 --- a/community/tinyproxy/PKGBUILD +++ b/community/tinyproxy/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 80139 2012-11-16 17:14:04Z lfleischer $ +# $Id: PKGBUILD 92033 2013-05-30 23:55:47Z seblu $ # Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de> # Contributor: Andrea Zucchelli <zukka77@gmail.com> pkgname=tinyproxy pkgver=1.8.3 -pkgrel=6 +pkgrel=7 pkgdesc='A light-weight HTTP proxy daemon for POSIX operating systems.' arch=('i686' 'x86_64' 'mips64el') url='https://banu.com/tinyproxy/' @@ -13,18 +13,17 @@ makedepends=('asciidoc') install="${pkgname}.install" backup=('etc/tinyproxy/tinyproxy.conf') source=("https://banu.com/pub/${pkgname}/1.8/${pkgname}-${pkgver}.tar.bz2" - 'tinyproxy' 'tinyproxy.tmpfiles.conf' 'tinyproxy.service') md5sums=('292ac51da8ad6ae883d4ebf56908400d' - '90eb2b3371e56d5a784fd826d4a6e5f8' '3c2764578f26581346fe312da0519a3e' - '299ca484c08d9873c74e1eb96f6a5cc0') + '41938243faca487a14beeee5114f244e') build() { cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr --sysconfdir=/etc/tinyproxy --localstatedir=/var --enable-transparent + ./configure --prefix=/usr --sysconfdir=/etc/tinyproxy --sbindir=/usr/bin \ + --localstatedir=/var --enable-transparent make } @@ -32,7 +31,6 @@ package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install - install -Dm0755 "${srcdir}/tinyproxy" "${pkgdir}/etc/rc.d/tinyproxy" install -Dm0644 "${srcdir}/tinyproxy.tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/tinyproxy.conf" install -dm0755 -o nobody -g nobody "${pkgdir}/var/log/${pkgname}" diff --git a/community/tinyproxy/tinyproxy b/community/tinyproxy/tinyproxy deleted file mode 100644 index 5580ea804..000000000 --- a/community/tinyproxy/tinyproxy +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -PID=$(pidof -o %PPID /usr/sbin/tinyproxy) - -start() { - stat_busy "Starting Tinyproxy" - - [ -z "$PID" ] && rm -f /var/run/tinyproxy/tinyproxy.pid && \ - /usr/sbin/tinyproxy -c /etc/tinyproxy/tinyproxy.conf 2>/dev/null - - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon tinyproxy - stat_done - fi -} - -stop() { - stat_busy "Stopping Tinyproxy" - - [ ! -z "$PID" ] && kill $PID &> /dev/null - - if [ $? -gt 0 ]; then - stat_fail - else - rm_daemon tinyproxy - stat_done - fi -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart) - $0 stop - sleep 1 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 diff --git a/community/tinyproxy/tinyproxy.service b/community/tinyproxy/tinyproxy.service index 8776a0ee1..f1ef18faa 100644 --- a/community/tinyproxy/tinyproxy.service +++ b/community/tinyproxy/tinyproxy.service @@ -4,7 +4,7 @@ After=network.target [Service] Type=forking -ExecStart=/usr/sbin/tinyproxy -c /etc/tinyproxy/tinyproxy.conf +ExecStart=/usr/bin/tinyproxy -c /etc/tinyproxy/tinyproxy.conf PIDFile=/run/tinyproxy/tinyproxy.pid [Install] |