aboutsummaryrefslogtreecommitdiffstats
path: root/main/privoxy/APKBUILD
blob: acb7d00ae2f1e4b613ae989da73af8f24383f0ad (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
61
62
63
64
65
66
67
68
69
70
71
72
73
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=privoxy
pkgver=3.0.22
pkgrel=0
pkgdesc="A web proxy with advanced filtering capabilities"
url="http://www.privoxy.org"
arch="all"
license="GPL"
pkgusers="privoxy"
pkggroups="privoxy"
depends=
makedepends="autoconf automake pcre-dev zlib-dev coreutils"
install="privoxy.pre-install"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/ijbswa/$pkgname-$pkgver-stable-src.tar.gz
	$pkgname.initd
	$pkgname.logrotate
	privoxy-alpine.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver-stable
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	aclocal && autoheader && autoconf
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--localstatedir=/var/ \
		--enable-zlib \
		--enable-dynamic-pcre \
		--with-user=privoxy \
		--with-group=privoxy \
		--sysconfdir=/etc/privoxy \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm $pkgdir/var/log/privoxy/*
	install -D -m755 "$srcdir"/privoxy.initd "$pkgdir"/etc/init.d/privoxy
	install -D -m644 "$srcdir"/privoxy.logrotate \
		"$pkgdir"/etc/logrotate.d/privoxy
	find "$pkgdir"/etc/privoxy/ -type d | xargs chmod 770
	find "$pkgdir"/etc/privoxy/ -type f | xargs chmod 660
	chown -R privoxy:privoxy "$pkgdir"/var/log/privoxy \
		"$pkgdir"/etc/privoxy
}

md5sums="aa121751d332a51d37d3c6e4b7594daa  privoxy-3.0.22-stable-src.tar.gz
170d5679e4c3504f07ef1a4c9859e9b8  privoxy.initd
f2b6a652dbfbc65e5b89024a8ea3da7e  privoxy.logrotate
cb233d3e5b13027557a405f467ee307c  privoxy-alpine.patch"
sha256sums="1a214fec1f3616ea7ff42f1ecdb67ce82690199ec403de9d34b99d0896efcc41  privoxy-3.0.22-stable-src.tar.gz
14f021afb156336f4065a9c349b2d9005025788cecdea9ea0c86b98fc7e44263  privoxy.initd
a14373c8a26aab32f6f025c11a5521d7923ce900d00b31aa61da9f3979e3bb2e  privoxy.logrotate
7b516e4d1bdc899069047f5cefda510060ee3e3f532c38cdab268049a0c540eb  privoxy-alpine.patch"
sha512sums="40e893ac25d69575c3a2c28bcc5882d91093f8eb6194a54d5b5298ad4023563e586c9aa2a793bbafe2fe3aeef7aa9094aa01e72861a51f0e569d1e5c74f974b2  privoxy-3.0.22-stable-src.tar.gz
50a2134b6dc13aa79f7e2ebbafde4767a5a1e6b8836b49fe1304bbb1e07329a2c6c3789c291f2cea6bf89128296269a10ebec81d79f6d8e4841b696b80d21455  privoxy.initd
118caaeac3aba751584c5bdfc737bf5bfeddf1a62fda1f44bcd4654ae2e33183bc1ce6fc66d4a1bdd79766e42e669b1615a6d46d528a1bd49cabdf98385a3bb9  privoxy.logrotate
0220785fff0b34b75e3c8cecbeb302e0137e96039e0663ae44d7450e334a3c1d742c2760de55d52817fb9ed2efb19f505e1fb7406d055b387b7b084f5f52011f  privoxy-alpine.patch"