diff options
Diffstat (limited to 'main/tinyproxy/APKBUILD')
-rw-r--r-- | main/tinyproxy/APKBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/main/tinyproxy/APKBUILD b/main/tinyproxy/APKBUILD index 625a46d60..4e9cf93cc 100644 --- a/main/tinyproxy/APKBUILD +++ b/main/tinyproxy/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Michael Mason <ms13sp@gmail.com> pkgname=tinyproxy pkgver=1.6.5 -pkgrel=6 +pkgrel=7 pkgdesc="Lightweight HTTP proxy" pkgusers="tinyproxy" pkggroups="tinyproxy" @@ -17,8 +17,9 @@ source="https://www.banu.com/pub/$pkgname/1.6/$pkgname-$pkgver.tar.gz tinyproxy.initd " +_builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" # set default user to tinyproxy:tinyproxy and correct pidfile sed -i -e 's:^User.*:User tinyproxy:' \ @@ -32,6 +33,10 @@ build() { --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 |