aboutsummaryrefslogtreecommitdiffstats
path: root/main/privoxy/APKBUILD
blob: 769878f5f2e67c355735c616eb8485e95f13dad9 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=privoxy
pkgver=3.0.21
pkgrel=2
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-3.0.19-gentoo.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver-stable
prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/privoxy-3.0.19-gentoo.patch || return 1
	aclocal && autoheader && autoconf
}

build() {
	cd "$_builddir"
	./configure --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="79558f2545cfcf9731f7de611646d837  privoxy-3.0.21-stable-src.tar.gz
170d5679e4c3504f07ef1a4c9859e9b8  privoxy.initd
f2b6a652dbfbc65e5b89024a8ea3da7e  privoxy.logrotate
1b9fc3bcef325f5970dee8ff7fb38497  privoxy-3.0.19-gentoo.patch"
sha256sums="5ec7e601948d2bd0ebf0ebe90eed7d49e7663c395ce16d0403e91ea2d459ddb8  privoxy-3.0.21-stable-src.tar.gz
14f021afb156336f4065a9c349b2d9005025788cecdea9ea0c86b98fc7e44263  privoxy.initd
a14373c8a26aab32f6f025c11a5521d7923ce900d00b31aa61da9f3979e3bb2e  privoxy.logrotate
71c6e6b042a820c44e7110c8a60f7987c826900fd4b22073565977ce63d4860a  privoxy-3.0.19-gentoo.patch"
sha512sums="b7f0d6865bce32445442f3af290e1a43538e4f76c22cb0d0ff9d5a1752f8c019dabb70f023ae370ee59015bd0f6795db97f064f7621efb62265d5e196d2e0e41  privoxy-3.0.21-stable-src.tar.gz
50a2134b6dc13aa79f7e2ebbafde4767a5a1e6b8836b49fe1304bbb1e07329a2c6c3789c291f2cea6bf89128296269a10ebec81d79f6d8e4841b696b80d21455  privoxy.initd
118caaeac3aba751584c5bdfc737bf5bfeddf1a62fda1f44bcd4654ae2e33183bc1ce6fc66d4a1bdd79766e42e669b1615a6d46d528a1bd49cabdf98385a3bb9  privoxy.logrotate
e0f916f33b8f17375b60686a0e4795883f29e46c55e273e0a69fae63d4b4e5a2585bb86b04aa288fdd75cdf51eedf7d72a9f8092e13a853e934e0029ae919a24  privoxy-3.0.19-gentoo.patch"