aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-28 11:05:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-28 11:21:25 +0000
commitced9eb976e2db4d16f30fa93150304c09286000f (patch)
tree57e070f3a9526af8d6eb11d87979c94113a1ead2 /main
parentd86eb1f2c8a3b759bed360350826821463548833 (diff)
downloadaports-ced9eb976e2db4d16f30fa93150304c09286000f.tar.bz2
aports-ced9eb976e2db4d16f30fa93150304c09286000f.tar.xz
main/tinyproxy: fix localstatedir
Logs and run should be in /var, not /usr/var
Diffstat (limited to 'main')
-rw-r--r--main/tinyproxy/APKBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/tinyproxy/APKBUILD b/main/tinyproxy/APKBUILD
index 1ce0c08ade..28ec287fe5 100644
--- a/main/tinyproxy/APKBUILD
+++ b/main/tinyproxy/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tinyproxy
pkgver=1.8.3
-pkgrel=0
+pkgrel=1
pkgdesc="Lightweight HTTP proxy"
pkgusers="tinyproxy"
pkggroups="tinyproxy"
@@ -10,7 +10,7 @@ url="https://www.banu.com/tinyproxy/"
arch="all"
license="GPL"
depends=
-makedepends="wget asciidoc"
+makedepends="asciidoc"
install="tinyproxy.pre-install"
subpackages="$pkgname-doc"
source="https://www.banu.com/pub/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
@@ -31,6 +31,7 @@ prepare() {
build() {
cd "$_builddir"
./configure --prefix=/usr \
+ --localstatedir=/var \
--sysconfdir=/etc/tinyproxy \
--disable-dependency-tracking \
|| return
@@ -41,6 +42,7 @@ package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -d -D -o tinyproxy -g tinyproxy "$pkgdir"/var/run/tinyproxy
+ install -d -D -o tinyproxy -g tinyproxy "$pkgdir"/var/log/tinyproxy
install -Dm755 "$srcdir"/tinyproxy.initd "$pkgdir"/etc/init.d/tinyproxy
}