aboutsummaryrefslogtreecommitdiffstats
path: root/main/dansguardian
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-10 06:15:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-10 06:15:50 +0000
commitfdd0312a868bdb5256940eb0a028a439211dc10d (patch)
tree1ac59e72549cb89e42d6dd17f65791f2cda826c8 /main/dansguardian
parent6ed51d98e5a2bb27277cbefb185e62fe657ee16b (diff)
downloadaports-fdd0312a868bdb5256940eb0a028a439211dc10d.tar.bz2
aports-fdd0312a868bdb5256940eb0a028a439211dc10d.tar.xz
main/dansguardian: set permissions on /var/log/dansguardian
fixes #123
Diffstat (limited to 'main/dansguardian')
-rw-r--r--main/dansguardian/APKBUILD7
-rw-r--r--main/dansguardian/dansguardian.post-install5
2 files changed, 9 insertions, 3 deletions
diff --git a/main/dansguardian/APKBUILD b/main/dansguardian/APKBUILD
index 24c50a6333..7004afb29a 100644
--- a/main/dansguardian/APKBUILD
+++ b/main/dansguardian/APKBUILD
@@ -2,13 +2,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dansguardian
pkgver=2.10.0.3
-pkgrel=3
+pkgrel=4
pkgdesc="Web content filter"
url="http://dansguardian.org"
license="GPL"
depends=
makedepends="zlib-dev uclibc++-dev pcre-dev pkgconfig libiconv-dev"
-install="$pkgname.pre-install"
+install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://dansguardian.org/downloads/2/Stable/$pkgname-$pkgver.tar.gz
dansguardian.initd
@@ -36,4 +36,5 @@ build() {
md5sums="68c8e9a97a3b58d2467a19cb15db5599 dansguardian-2.10.0.3.tar.gz
0c04f74cd5db9fc7a8e80b407ec34214 dansguardian.initd
-ab4e1104633aad0595a8b530fceb810a dansguardian.pre-install"
+ab4e1104633aad0595a8b530fceb810a dansguardian.pre-install
+e3dcc0f51e44f15a2ff152ac338999d1 dansguardian.post-install"
diff --git a/main/dansguardian/dansguardian.post-install b/main/dansguardian/dansguardian.post-install
new file mode 100644
index 0000000000..8d7feafb41
--- /dev/null
+++ b/main/dansguardian/dansguardian.post-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+chown dansguar:dansguar var/log/dansguardian
+exit 0
+