aboutsummaryrefslogtreecommitdiffstats
path: root/main/tinyproxy
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-08 09:57:24 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-08 09:58:05 +0000
commit7541f8f8de2235eb41c264ae7f9204ffb6856b92 (patch)
tree71ef91bb40e77d02eb3a2da0772de7be39f32e6c /main/tinyproxy
parentee5d63496c23202925f5a014aba62166d9279439 (diff)
downloadaports-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/APKBUILD9
-rwxr-xr-xmain/tinyproxy/tinyproxy.pre-install2
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