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

Allan McRae allan at archlinux.org
Thu Sep 30 15:38:29 UTC 2010


    Date: Thursday, September 30, 2010 @ 11:38:29
  Author: allan
Revision: 92736

upgpkg: logrotate 3.7.9-1
upstream update

Modified:
  logrotate/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-09-30 14:57:02 UTC (rev 92735)
+++ PKGBUILD	2010-09-30 15:38:29 UTC (rev 92736)
@@ -3,7 +3,7 @@
 # Contributor: Judd Vinet <jvinet at zeroflux.org>
 
 pkgname=logrotate
-pkgver=3.7.8
+pkgver=3.7.9
 pkgrel=1
 pkgdesc="Rotates system logs automatically"
 url='https://fedorahosted.org/logrotate/'
@@ -12,23 +12,28 @@
 groups=('base')
 depends=('popt' 'cron' 'gzip')
 backup=('etc/logrotate.conf')
-#WTF are you doing, Fedora?
-_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
+source=(https://fedorahosted.org/releases/l/o/logrotate/logrotate-${pkgver}.tar.gz
+        logrotate.conf
+        logrotate.cron.daily)
+md5sums=('eeba9dbca62a9210236f4b83195e4ea5'
          '462a5f364717461537eb2ae6394ad23e'
          '8e23d5d4cc29b1e055b24df87e355cdc')
 
 build() {
   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
+}
+
+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
 }




More information about the arch-commits mailing list