aboutsummaryrefslogtreecommitdiffstats
path: root/main/tinyproxy/APKBUILD
blob: 72abc3f24d1505c76a8415ce28725fba4808bd28 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tinyproxy
pkgver=1.6.3
pkgrel=1
pkgdesc="Lightweight HTTP proxy"
url="https://www.banu.com/tinyproxy/"
license="GPL"
depends=
makedepends=""
install="tinyproxy.pre-install tinyproxy.post-install"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	tinyproxy.initd
	$install
	"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	# set default user to tinyproxy:tinyproxy and correct pidfile
	sed -i -e 's:^User.*:User tinyproxy:' \
		-e 's:^Group.*:Group tinyproxy:' \
		-e 's:^PidFile.*:PidFile "/var/run/tinyproxy/tinyproxy.pid":' \
		doc/tinyproxy.conf

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info

	make || return 1
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/var/run/tinyproxy
	install -Dm755 "$srcdir"/tinyproxy.initd "$pkgdir"/etc/init.d/tinyproxy
}

md5sums="bd14d029b12621bcfd7ee71b2f4893da  tinyproxy-1.6.3.tar.gz
554da6fc363fbe251f081b342541bef4  tinyproxy.initd
ab854eaf0ad44de6c85660350ed9f758  tinyproxy.pre-install
0d2d99e5759292d00c4e5c73d8c220ff  tinyproxy.post-install"