blob: 4e9cf93cc133a7a1e0ab258a8c7ed8b5e281994a (
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
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tinyproxy
pkgver=1.6.5
pkgrel=7
pkgdesc="Lightweight HTTP proxy"
pkgusers="tinyproxy"
pkggroups="tinyproxy"
url="https://www.banu.com/tinyproxy/"
arch="all"
license="GPL"
depends=
makedepends=wget
install="tinyproxy.pre-install tinyproxy.post-install"
subpackages="$pkgname-doc"
source="https://www.banu.com/pub/$pkgname/1.6/$pkgname-$pkgver.tar.gz
tinyproxy.initd
"
_builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$_builddir"
# 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
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
install -d -D -o tinyproxy -g tinyproxy "$pkgdir"/var/run/tinyproxy
install -Dm755 "$srcdir"/tinyproxy.initd "$pkgdir"/etc/init.d/tinyproxy
}
md5sums="2b2862ba33d2939e4572688d442ba415 tinyproxy-1.6.5.tar.gz
ce2b2e3c79fa0e8491fe625bbb15710a tinyproxy.initd"
|