blob: 1e5446ed4f8ca0265b0937023d1cfa6e82f0ae95 (
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
|
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tinyproxy
pkgver=1.8.4
pkgrel=3
pkgdesc="Lightweight HTTP proxy"
pkgusers="tinyproxy"
pkggroups="tinyproxy"
url="https://www.banu.com/tinyproxy/"
arch="all"
license="GPL2+"
depends=
makedepends="asciidoc"
install="tinyproxy.pre-install"
subpackages="$pkgname-doc"
source="https://www.samba.org/~obnox/tinyproxy/release/$pkgver/tinyproxy-$pkgver.tar.xz
tinyproxy.initd
"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
# 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":' \
etc/tinyproxy.conf.in
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc/tinyproxy \
--disable-dependency-tracking \
--enable-reverse \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -d -D -o tinyproxy -g tinyproxy "$pkgdir"/var/run/tinyproxy
install -d -D -o tinyproxy -g tinyproxy "$pkgdir"/var/log/tinyproxy
install -Dm755 "$srcdir"/tinyproxy.initd "$pkgdir"/etc/init.d/tinyproxy
}
md5sums="7d3378ad9681be3423c491775f7d9e35 tinyproxy-1.8.4.tar.xz
09ed565df8a3911051a32b2c0d332ea2 tinyproxy.initd"
sha256sums="3eb89d5adf388690dd170384540d61ca088eb2072d14946184b575810582410a tinyproxy-1.8.4.tar.xz
ad0302ff17a93ec299da63ca5e87d80e5c1fbf605a561a4aa49bbc442425bbe5 tinyproxy.initd"
sha512sums="4b7ed1657f66c8e26715016c32b1021b39a936632add7c69f1ec624b6f12272b63cd28c50476aa6757a812b8707debbeca5d83c7018599a660a9e5b2de3489e3 tinyproxy-1.8.4.tar.xz
78ed4e80cce82a3d08685c67ae2d0e7e5d238b394fb4a58c3f30ff3de2fb96db0afdfd7ff474effae6215172ffcbad193fbbcc483dba8cdc8aa08eb893fc0717 tinyproxy.initd"
|