[arch-commits] Commit in logrotate/trunk (PKGBUILD logrotate.conf)

Allan McRae allan at archlinux.org
Mon Apr 13 06:34:59 EDT 2009


    Date: Monday, April 13, 2009 @ 06:34:58
  Author: allan
Revision: 35399

upgpkg: logrotate 3.7.8-1
    directly FHS manpages, add commented size option to logrotate.conf (FS#13935)

Modified:
  logrotate/trunk/PKGBUILD
  logrotate/trunk/logrotate.conf

----------------+
 PKGBUILD       |   20 +++++++++-----------
 logrotate.conf |    3 +++
 2 files changed, 12 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-04-13 10:33:51 UTC (rev 35398)
+++ PKGBUILD	2009-04-13 10:34:58 UTC (rev 35399)
@@ -3,34 +3,32 @@
 # Contributor: Judd Vinet <jvinet at zeroflux.org>
 
 pkgname=logrotate
-pkgver=3.7.7
-pkgrel=3
+pkgver=3.7.8
+pkgrel=1
 pkgdesc="Rotates system logs automatically"
 url='http://cvs.fedora.redhat.com'
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 license=('GPL')
 groups=('base')
 depends=('popt' 'cron' 'gzip')
 backup=('etc/logrotate.conf')
 #WTF are you doing, Fedora?
-_pkgmd5=431e135abb7f3fe19de4c6a65bb66823
+_pkgmd5=b3589bea6d8d5afc8a84134fddaae973
 source=( http://cvs.fedora.redhat.com/repo/pkgs/$pkgname/$pkgname-$pkgver.tar.gz/$_pkgmd5/$pkgname-$pkgver.tar.gz
         logrotate.conf logrotate.cron.daily)
 md5sums=($_pkgmd5
-         'c8b915903825befc401797b7620f249e'
+         '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
   sed -i "s|CFLAGS = -Wall|CFLAGS = -Wall $CFLAGS|" Makefile
+  sed -i "s|$(BASEDIR)/man|$(BASEDIR)/share/man|" Makefile
   make || return 1
   make PREFIX=$pkgdir install
-  install -D -m644 ../logrotate.conf $pkgdir/etc/logrotate.conf
-  install -D -m744 ../logrotate.cron.daily $pkgdir/etc/cron.daily/logrotate
-
-  mkdir -p $pkgdir/usr/share/
-  mv $pkgdir/usr/man $pkgdir/usr/share
+  install -Dm644 $srcdir/logrotate.conf $pkgdir/etc/logrotate.conf
+  install -Dm744 $srcdir/logrotate.cron.daily $pkgdir/etc/cron.daily/logrotate
 }

Modified: logrotate.conf
===================================================================
--- logrotate.conf	2009-04-13 10:33:51 UTC (rev 35398)
+++ logrotate.conf	2009-04-13 10:34:58 UTC (rev 35399)
@@ -5,6 +5,9 @@
 # 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
 



More information about the arch-commits mailing list