blob: b7deb83f33178d9f613d5004fe4f093abd330d67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $Id: PKGBUILD 113171 2014-06-14 19:22:25Z andyrtr $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Yejun Yang yejunx AT gmail DOT com
pkgname=ziproxy
pkgver=3.3.0
pkgrel=5
pkgdesc="forwarding, non-caching, compressing HTTP proxy server"
arch=('i686' 'x86_64')
url="http://ziproxy.sourceforge.net/"
license=('GPL2')
depends=('giflib' 'libpng' 'libjpeg' 'zlib' 'jasper' 'libsasl')
backup=(etc/ziproxy/ziproxy.conf
etc/ziproxy/bo_exception.list
etc/ziproxy/http.passwd
etc/ziproxy/noprocess.list
etc/ziproxy/replace.list
etc/xinetd.d/ziproxy
var/lib/ziproxy/error/400.html
var/lib/ziproxy/error/404.html
var/lib/ziproxy/error/407.html
var/lib/ziproxy/error/408.html
var/lib/ziproxy/error/409.html
var/lib/ziproxy/error/500.html
var/lib/ziproxy/error/503.html)
install=ziproxy.install
source=(http://downloads.sourceforge.net/project/ziproxy/ziproxy/ziproxy-$pkgver/ziproxy-$pkgver.tar.bz2
ziproxy.logrotate
ziproxy.xinetd
build-fix.patch)
md5sums=('a8fda01591d455bb23c64c9c5ed3980d'
'feb35264391c790cedd5e995182b5ff5'
'3d2f9208b5ab6738c136049e1fd2e433'
'0cc338d537e09c2d643283389b6cac06')
prepare() {
cd $srcdir/$pkgname-$pkgver
patch -p1 <$srcdir/build-fix.patch
}
build() {
cd $srcdir/$pkgname-$pkgver
[ -f Makefile ] || ./configure --prefix=/usr --with-jasper
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
install -d $pkgdir/var/lib/ziproxy/error
install -d $pkgdir/etc/conf.d
sed -i 's#var/ziproxy#var/lib/ziproxy#' etc/ziproxy/ziproxy.conf
cp -a etc/ziproxy $pkgdir/etc/ziproxy
install -m644 var/ziproxy/error/* $pkgdir/var/lib/ziproxy/error
echo "ZIPROXY_ARGS=\"-c /etc/ziproxy/ziproxy.conf\"" >$pkgdir/etc/conf.d/ziproxy
install -Dm0644 $srcdir/ziproxy.logrotate $pkgdir/etc/logrotate.d/ziproxy
install -Dm0644 $srcdir/ziproxy.xinetd $pkgdir/etc/xinetd.d/ziproxy
}
|