diff options
author | root <root@rshg047.dnsready.net> | 2011-07-10 23:13:07 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-07-10 23:13:07 +0000 |
commit | 139460a7a8b085588b699c488fd19b166db18a74 (patch) | |
tree | c7ef8dc756803db980465dd7bc9186f9c642aa50 /core/logrotate | |
parent | d1e588afc2779754c0abd1122ecf4f8e3c863d7a (diff) |
Sun Jul 10 23:13:07 UTC 2011
Diffstat (limited to 'core/logrotate')
-rw-r--r-- | core/logrotate/PKGBUILD | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/core/logrotate/PKGBUILD b/core/logrotate/PKGBUILD index 1cb10e4bd..95a0681bd 100644 --- a/core/logrotate/PKGBUILD +++ b/core/logrotate/PKGBUILD @@ -1,13 +1,13 @@ -# $Id: PKGBUILD 92736 2010-09-30 15:38:29Z allan $ +# $Id: PKGBUILD 130804 2011-07-08 03:53:21Z eric $ # Maintainer: Aaron Griffin <aaron@archlinux.org> # Contributor: Judd Vinet <jvinet@zeroflux.org> pkgname=logrotate -pkgver=3.7.9 +pkgver=3.8.0 pkgrel=1 pkgdesc="Rotates system logs automatically" -url='https://fedorahosted.org/logrotate/' arch=('i686' 'x86_64') +url="https://fedorahosted.org/logrotate/" license=('GPL') groups=('base') depends=('popt' 'cron' 'gzip') @@ -15,12 +15,12 @@ backup=('etc/logrotate.conf') source=(https://fedorahosted.org/releases/l/o/logrotate/logrotate-${pkgver}.tar.gz logrotate.conf logrotate.cron.daily) -md5sums=('eeba9dbca62a9210236f4b83195e4ea5' +md5sums=('590f77c13077a4c384dbec7ca9c5f242' '462a5f364717461537eb2ae6394ad23e' '8e23d5d4cc29b1e055b24df87e355cdc') build() { - cd $srcdir/${pkgname}-${pkgver} + cd "$srcdir/${pkgname}-${pkgver}" sed -i 's|#define DEFAULT_MAIL_COMMAND .*|#define DEFAULT_MAIL_COMMAND "/usr/bin/mail"|'\ config.h @@ -30,10 +30,15 @@ build() { make } +check() { + cd "$srcdir/${pkgname}-${pkgver}" + make test +} + package() { - cd $srcdir/${pkgname}-${pkgver} - make PREFIX=$pkgdir install + 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 + install -Dm644 "$srcdir/logrotate.conf" "$pkgdir/etc/logrotate.conf" + install -Dm744 "$srcdir/logrotate.cron.daily" "$pkgdir/etc/cron.daily/logrotate" } |