Commit c95c7923 authored by Natanael Copa's avatar Natanael Copa

main/dansguardian: provide a logrotate script

fixes #84
parent 600c274d
......@@ -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"
/var/log/dansguardian/*.log {
rotate 4
weekly
missingok
notifempty
nocreate
nocopy
nocopytruncate
compress
postrotate
/usr/sbin/dansguardian -r
endscript
}
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