From 323200fe791ab3f7caf509051d8054fcfcdfce9c Mon Sep 17 00:00:00 2001 From: Cecil Date: Tue, 5 Jul 2011 19:52:46 -0700 Subject: logrotate:bumped to latest --- abs/core/logrotate/PKGBUILD | 46 ++++++++++++++++++++------------------- abs/core/logrotate/logrotate.conf | 3 +++ 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/abs/core/logrotate/PKGBUILD b/abs/core/logrotate/PKGBUILD index 16a389a..1cb10e4 100644 --- a/abs/core/logrotate/PKGBUILD +++ b/abs/core/logrotate/PKGBUILD @@ -1,37 +1,39 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# $Id: PKGBUILD 92736 2010-09-30 15:38:29Z allan $ # Maintainer: Aaron Griffin # Contributor: Judd Vinet pkgname=logrotate -pkgver=3.7.5 -pkgrel=10 +pkgver=3.7.9 +pkgrel=1 pkgdesc="Rotates system logs automatically" -url='http://rhlinux.redhat.com' -arch=(i686 x86_64) +url='https://fedorahosted.org/logrotate/' +arch=('i686' 'x86_64') license=('GPL') groups=('base') depends=('popt' 'cron' 'gzip') backup=('etc/logrotate.conf') - -# The source is apparently a CVS checkout only. Create the tarball like so: -# cvs -d :pserver:anonymous@rhlinux.redhat.com:/usr/local/CVS co logrotate -# cd logrotate/ -# make create-archive -# Ensure this tarball is places in other/logrotate/ - -source=(ftp://ftp.archlinux.org/other/logrotate/${pkgname}-${pkgver}.tar.gz - logrotate.conf logrotate.cron.daily) -md5sums=('a1a3ea2f1d80e67e902c024bbdef616a' - 'c8b915903825befc401797b7620f249e' +source=(https://fedorahosted.org/releases/l/o/logrotate/logrotate-${pkgver}.tar.gz + logrotate.conf + logrotate.cron.daily) +md5sums=('eeba9dbca62a9210236f4b83195e4ea5' + '462a5f364717461537eb2ae6394ad23e' '8e23d5d4cc29b1e055b24df87e355cdc') build() { - cd $startdir/src/${pkgname}-${pkgver} - + cd $srcdir/${pkgname}-${pkgver} + sed -i 's|#define DEFAULT_MAIL_COMMAND .*|#define DEFAULT_MAIL_COMMAND "/usr/bin/mail"|'\ config.h - make || return 1 - make PREFIX=$startdir/pkg install - install -D -m644 ../logrotate.conf $startdir/pkg/etc/logrotate.conf - install -D -m744 ../logrotate.cron.daily $startdir/pkg/etc/cron.daily/logrotate + sed -i "s|CFLAGS = -Wall|CFLAGS = -Wall $CFLAGS|" Makefile + sed -i 's|$(BASEDIR)/man|$(BASEDIR)/share/man|' Makefile + + make +} + +package() { + cd $srcdir/${pkgname}-${pkgver} + make PREFIX=$pkgdir install + + install -Dm644 $srcdir/logrotate.conf $pkgdir/etc/logrotate.conf + install -Dm744 $srcdir/logrotate.cron.daily $pkgdir/etc/cron.daily/logrotate } diff --git a/abs/core/logrotate/logrotate.conf b/abs/core/logrotate/logrotate.conf index fde947b..88b4935 100644 --- a/abs/core/logrotate/logrotate.conf +++ b/abs/core/logrotate/logrotate.conf @@ -5,6 +5,9 @@ weekly # keep 4 weeks worth of backlogs rotate 4 +# restrict maximum size of log files +#size 20M + # create new (empty) log files after rotating old ones create -- cgit v0.12