summaryrefslogtreecommitdiffstats
path: root/main/dansguardian
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-21 07:15:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-21 07:15:49 +0000
commitc95c7923ee7150cc152ab8ed72544eded4cfdff4 (patch)
tree7d30dd8882921abf29e4c68510623065cefda6c2 /main/dansguardian
parent600c274d15c2a5124895c771b1e962693267b8ae (diff)
downloadaports-c95c7923ee7150cc152ab8ed72544eded4cfdff4.tar.bz2
aports-c95c7923ee7150cc152ab8ed72544eded4cfdff4.tar.xz
main/dansguardian: provide a logrotate script
fixes #84
Diffstat (limited to 'main/dansguardian')
-rw-r--r--main/dansguardian/APKBUILD12
-rw-r--r--main/dansguardian/dansguardian.logrotate15
2 files changed, 21 insertions, 6 deletions
diff --git a/main/dansguardian/APKBUILD b/main/dansguardian/APKBUILD
index 7bfc32814..8e15b043c 100644
--- a/main/dansguardian/APKBUILD
+++ b/main/dansguardian/APKBUILD
@@ -2,22 +2,22 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dansguardian
pkgver=2.10.1.1
-pkgrel=0
+pkgrel=1
pkgdesc="Web content filter"
url="http://dansguardian.org"
license="GPL"
-depends=
+depends="logrotate"
makedepends="zlib-dev uclibc++-dev pcre-dev pkgconfig libiconv-dev"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://dansguardian.org/downloads/2/Stable/$pkgname-$pkgver.tar.gz
dansguardian.initd
- $install
+ dansguardian.logrotate
"
build() {
cd "$srcdir/$pkgname-$pkgver"
- export CXX=g++-uc
+ export CXX=${CXX_UC:-g++-uc}
./configure --prefix=/usr \
--sysconfdir=/etc \
@@ -32,9 +32,9 @@ build() {
make DESTDIR="$pkgdir" install
install -D -m 755 ../dansguardian.initd "$pkgdir"/etc/init.d/dansguardian
+ install -D -m 644 ../dansguardian.logrotate "$pkgdir"/etc/logrotate.d/dansguardian
}
md5sums="0987a1c9bfbdf398118386f10279611a dansguardian-2.10.1.1.tar.gz
0c04f74cd5db9fc7a8e80b407ec34214 dansguardian.initd
-ab4e1104633aad0595a8b530fceb810a dansguardian.pre-install
-e3dcc0f51e44f15a2ff152ac338999d1 dansguardian.post-install"
+85b6de01c9508e8ceff5ebb55752f8d3 dansguardian.logrotate"
diff --git a/main/dansguardian/dansguardian.logrotate b/main/dansguardian/dansguardian.logrotate
new file mode 100644
index 000000000..001d95545
--- /dev/null
+++ b/main/dansguardian/dansguardian.logrotate
@@ -0,0 +1,15 @@
+/var/log/dansguardian/*.log {
+ rotate 4
+ weekly
+ missingok
+ notifempty
+ nocreate
+ nocopy
+ nocopytruncate
+ compress
+
+ postrotate
+ /usr/sbin/dansguardian -r
+ endscript
+}
+