Commit 7541f8f8 authored by Natanael Copa's avatar Natanael Copa

main/tinyproxy: use /var/run/tinyproxy as homedir for user

ref #685
parent ee5d6349
......@@ -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
......
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment