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 | |
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')
-rw-r--r-- | main/tinyproxy/APKBUILD | 9 | ||||
-rwxr-xr-x | main/tinyproxy/tinyproxy.pre-install | 2 |
2 files changed, 8 insertions, 3 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 diff --git a/main/tinyproxy/tinyproxy.pre-install b/main/tinyproxy/tinyproxy.pre-install index d324b044e3..ffa4e65b8b 100755 --- a/main/tinyproxy/tinyproxy.pre-install +++ b/main/tinyproxy/tinyproxy.pre-install @@ -1,6 +1,6 @@ #!/bin/sh -adduser -h /dev/null -s /bin/false -D tinyproxy 2>/dev/null +adduser -h /var/run/tinyproxy -s /bin/false -D tinyproxy 2>/dev/null # return with success even if user already exist exit 0 |