diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-08 09:57:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-08 09:58:05 +0000 |
commit | 7541f8f8de2235eb41c264ae7f9204ffb6856b92 (patch) | |
tree | 71ef91bb40e77d02eb3a2da0772de7be39f32e6c /main/tinyproxy/APKBUILD | |
parent | ee5d63496c23202925f5a014aba62166d9279439 (diff) | |
download | aports-7541f8f8de2235eb41c264ae7f9204ffb6856b92.tar.bz2 aports-7541f8f8de2235eb41c264ae7f9204ffb6856b92.tar.xz |
main/tinyproxy: use /var/run/tinyproxy as homedir for user
ref #685
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 625a46d60b..4e9cf93cc1 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 |