mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 20:02:24 +01:00
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
# Contributor: Michael Mason <ms13sp@gmail.com>
|
|
# Maintainer: Michael Mason <ms13sp@gmail.com>
|
|
pkgname=tinyproxy
|
|
pkgver=1.8.3
|
|
pkgrel=3
|
|
pkgdesc="Lightweight HTTP proxy"
|
|
pkgusers="tinyproxy"
|
|
pkggroups="tinyproxy"
|
|
url="https://www.banu.com/tinyproxy/"
|
|
arch="all"
|
|
license="GPL"
|
|
depends=
|
|
makedepends="asciidoc"
|
|
install="tinyproxy.pre-install"
|
|
subpackages="$pkgname-doc"
|
|
source="https://www.banu.com/pub/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
|
|
limit_headers.patch
|
|
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 --prefix=/usr \
|
|
--localstatedir=/var \
|
|
--sysconfdir=/etc/tinyproxy \
|
|
--disable-dependency-tracking \
|
|
|| return
|
|
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="292ac51da8ad6ae883d4ebf56908400d tinyproxy-1.8.3.tar.bz2
|
|
cf72d2503f6415079c4702853d467ea8 limit_headers.patch
|
|
9c6df6fa8eb85558e46cf66b96820807 tinyproxy.initd"
|