Commit 20686158 authored by Natanael Copa's avatar Natanael Copa

extra/squid: add logrotate script

fixes #9
parent 482fb35c
......@@ -3,11 +3,11 @@
pkgname=squid
pkgver=2.7.6
_ver=2.7.STABLE6
pkgrel=1
pkgrel=2
pkgdesc="A full-featured Web proxy cache server."
url="http://www.squid-cache.org"
license="GPL-2"
depends="openssl $pkgname-errors-english"
depends="openssl $pkgname-errors-english logrotate"
makedepends="openssl-dev perl-dev"
subpackages="$pkgname-doc
$pkgname-errors-armenian:errors_armenian
......@@ -49,6 +49,7 @@ source="http://www.squid-cache.org/Versions/v2/2.7/${pkgname}-${_ver}.tar.bz2
squid.initd
squid.confd
squid-2.7-gentoo.patch
$pkgname.logrotate
"
build() {
......@@ -76,6 +77,8 @@ build() {
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
install -m644 -D "$srcdir"/$pkgname.logrotate \
"$pkgdir"/etc/logrotate.d/squid
}
......@@ -262,4 +265,5 @@ errors_ukrainian_utf8() {
md5sums="6de3a6a7a56a7ecae092f2d31a04f039 squid-2.7.STABLE6.tar.bz2
d31f293cf10a90bc3d60aa6428889db5 squid.initd
44b052db7910f386ef88ddcf69c9ba4e squid.confd
1d33108353d788b238d9a8877bf2e401 squid-2.7-gentoo.patch"
1d33108353d788b238d9a8877bf2e401 squid-2.7-gentoo.patch
58823e0b86bc2dc71d270208b7b284b4 squid.logrotate"
/var/log/squid/*.log {
daily
compress
rotate 5
missingok
nocreate
sharedscripts
postrotate
/usr/sbin/squid -k rotate
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