From 206861582c4bf8ad92aee9f04bf4171893fb56b1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 2 Apr 2009 08:23:12 +0000 Subject: extra/squid: add logrotate script fixes #9 --- extra/squid/APKBUILD | 10 +++++++--- extra/squid/squid.logrotate | 11 +++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 extra/squid/squid.logrotate (limited to 'extra/squid') diff --git a/extra/squid/APKBUILD b/extra/squid/APKBUILD index a4f72a5c..62a8b630 100644 --- a/extra/squid/APKBUILD +++ b/extra/squid/APKBUILD @@ -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" diff --git a/extra/squid/squid.logrotate b/extra/squid/squid.logrotate new file mode 100644 index 00000000..fb3279e0 --- /dev/null +++ b/extra/squid/squid.logrotate @@ -0,0 +1,11 @@ +/var/log/squid/*.log { + daily + compress + rotate 5 + missingok + nocreate + sharedscripts + postrotate + /usr/sbin/squid -k rotate + endscript +} -- cgit v1.2.3