diff options
Diffstat (limited to 'community/privoxy')
-rw-r--r-- | community/privoxy/PKGBUILD | 13 | ||||
-rw-r--r-- | community/privoxy/privoxy.service | 11 |
2 files changed, 20 insertions, 4 deletions
diff --git a/community/privoxy/PKGBUILD b/community/privoxy/PKGBUILD index ca5b69c3f..3aecd81da 100644 --- a/community/privoxy/PKGBUILD +++ b/community/privoxy/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 72126 2012-06-08 23:13:24Z dreisner $ +# $Id: PKGBUILD 75656 2012-08-28 10:03:15Z lfleischer $ # Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de> # Contributor: Juergen Hoetzel <juergen@hoetzel.info> # Contributor: basilburn (basilburn), Paul Bredbury (brebs) pkgname=privoxy pkgver=3.0.19 -pkgrel=4 +pkgrel=5 pkgdesc='A web proxy with advanced filtering capabilities.' arch=('i686' 'x86_64') url='http://www.privoxy.org' @@ -20,11 +20,13 @@ install='privoxy.install' source=("http://downloads.sourceforge.net/ijbswa/${pkgname}-${pkgver}-stable-src.tar.gz" 'privoxy' 'privoxy.logrotate.d' - 'privoxy.conf.d') + 'privoxy.conf.d' + 'privoxy.service') md5sums=('57acc79059565cc42eda67982842785d' '1b4ed8c4e7e5b04b10ef41b597dc3f3b' 'fc3046377137003726a151ee27b142a2' - '27830ef79418e277b90c1c1fa933f876') + '27830ef79418e277b90c1c1fa933f876' + '7285327a5dbef5511242651f88dbc218') build() { cd "${srcdir}/${pkgname}-${pkgver}-stable" @@ -64,4 +66,7 @@ package() { # avoid conflict with filesystem>=2012.06 rmdir "$pkgdir/var/run" + + # systemd unit file + install -Dm0644 "${srcdir}/privoxy.service" "${pkgdir}/usr/lib/systemd/system/privoxy.service" } diff --git a/community/privoxy/privoxy.service b/community/privoxy/privoxy.service new file mode 100644 index 000000000..db0f43012 --- /dev/null +++ b/community/privoxy/privoxy.service @@ -0,0 +1,11 @@ +[Unit] +Description=Privoxy Web Proxy With Advanced Filtering Capabilities +After=network.target + +[Service] +Type=forking +PIDFile=/run/privoxy.pid +ExecStart=/usr/sbin/privoxy --pidfile /run/privoxy.pid --user privoxy.privoxy /etc/privoxy/config + +[Install] +WantedBy=multi-user.target |