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

Eric Bélanger eric at archlinux.org
Fri Jul 8 03:53:21 UTC 2011


    Date: Thursday, July 7, 2011 @ 23:53:21
  Author: eric
Revision: 130804

upgpkg: logrotate 3.8.0-1
Upstream update, Added check function

Modified:
  logrotate/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-07-08 03:47:08 UTC (rev 130803)
+++ PKGBUILD	2011-07-08 03:53:21 UTC (rev 130804)
@@ -3,11 +3,11 @@
 # Contributor: Judd Vinet <jvinet at 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 @@
 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 @@
   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"
 }




More information about the arch-commits mailing list