1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Yejun Yang yejunx AT gmail DOT com
7 pkgdesc="forwarding, non-caching, compressing HTTP proxy server"
9 url="http://ziproxy.sourceforge.net/"
11 depends=('giflib' 'libpng' 'libjpeg' 'zlib' 'jasper' 'libsasl')
12 backup=(etc/ziproxy/ziproxy.conf
13 etc/ziproxy/bo_exception.list
14 etc/ziproxy/http.passwd
15 etc/ziproxy/noprocess.list
16 etc/ziproxy/replace.list
18 var/lib/ziproxy/error/400.html
19 var/lib/ziproxy/error/404.html
20 var/lib/ziproxy/error/407.html
21 var/lib/ziproxy/error/408.html
22 var/lib/ziproxy/error/409.html
23 var/lib/ziproxy/error/500.html
24 var/lib/ziproxy/error/503.html)
25 source=(https://downloads.sourceforge.net/project/ziproxy/ziproxy/ziproxy-$pkgver/ziproxy-$pkgver.tar.bz2
31 sha256sums=('76a1fc62c76dfa1a8d0784193aba20a96e214dd615b7927b497ceee5059699f1'
32 '6087c75dc9a9d493365bb599bf4dcb72fab95da54ea9b75418616cf0cd9be5e3'
33 'a2aa82f37b0436e99cda917d994a728d0e8b08ffc9c3f87dd3b6e509a0b36a14'
34 '28e6c059c8bf0c9291c20157a356991de67b2459dc3b333f58bd93e02bbb3e01'
35 '27c2ce6207c24e1af5bc1cb7b350ef5ca12ea3bdaf7b5f10f00251ec1292c3a0'
36 'dd462a5604aba5bfea8e12a4abe6db317f8d45bc7614696e6d7379cf8120a616')
39 cd "$srcdir"/$pkgname-$pkgver
40 # sed -i '1,1i#include <string.h>' src/qparser.c
41 # patch -p1 <"$srcdir"/build-fix.patch
45 cd "$srcdir"/$pkgname-$pkgver
46 [ -f Makefile ] || CFLAGS+=' -fcommon' ./configure --prefix=/usr --with-jasper
51 cd "$srcdir"/$pkgname-$pkgver
52 make DESTDIR="$pkgdir" install
54 install -d "$pkgdir"/var/lib/ziproxy/error
55 install -d "$pkgdir"/etc/conf.d
57 sed -i 's#var/ziproxy#var/lib/ziproxy#' etc/ziproxy/ziproxy.conf
58 cp -a etc/ziproxy "$pkgdir"/etc/ziproxy
59 install -m644 var/ziproxy/error/* "$pkgdir"/var/lib/ziproxy/error
60 echo "ZIPROXY_ARGS=\"-c /etc/ziproxy/ziproxy.conf\"" >"$pkgdir"/etc/conf.d/ziproxy
61 install -Dm0644 "$srcdir"/ziproxy.logrotate "$pkgdir"/etc/logrotate.d/ziproxy
62 install -Dm0644 "$srcdir"/ziproxy.xinetd "$pkgdir"/etc/xinetd.d/ziproxy
63 install -Dm0644 "$srcdir"/ziproxy.sysusers "$pkgdir"/usr/lib/sysusers.d/ziproxy.conf
64 install -Dm0644 "$srcdir"/ziproxy.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/ziproxy.conf