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

Paul Mattal paul at archlinux.org
Tue Jan 12 13:19:28 UTC 2010


    Date: Tuesday, January 12, 2010 @ 08:19:28
  Author: paul
Revision: 62798

upgpkg: dcron 4.3-1
    upstream update to 4.3

Modified:
  dcron/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++----------------
 1 file changed, 11 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-12 13:18:03 UTC (rev 62797)
+++ PKGBUILD	2010-01-12 13:19:28 UTC (rev 62798)
@@ -1,36 +1,31 @@
 # Maintainer: Paul Mattal <paul.archlinux.org>
 
 pkgname=dcron
-pkgver=4.2
+pkgver=4.3
 pkgrel=1
 pkgdesc="dillon's lightweight cron daemon"
 arch=(i686 x86_64)
 license=('GPL')
 url="http://www.jimpryor.net/linux/dcron"
-backup=(var/spool/cron/root etc/rc.d/crond etc/logrotate.d/crond)
+backup=(var/spool/cron/root etc/logrotate.d/crond)
 depends=('glibc')
 provides=('cron')
 source=("http://www.jimpryor.net/linux/releases/${pkgname}-${pkgver}.tar.gz")
-md5sums=('0e19b88708aed7b1bc8426d4f237d431')
+md5sums=('763cf1fe9649bd8864cd034b538aa1c0')
 
 
 build() {
 	cd "$srcdir/${pkgname}-${pkgver}"
 
-	make || return 1
-	make DESTDIR="$pkgdir" PREFIX=/usr install || return 1
-
-	# default make install sets root/wheel
-	chgrp root $pkgdir/{etc/cron.d,usr/sbin/crond,var/spool/cron,var/spool/cronstamps}
-	chgrp -R root $pkgdir/usr/share/man
+	make CRONTABS=/var/spool/cron CRONSTAMPS=/var/spool/cronstamps || return 1
 	# by default, any member of group "users" can edit their own crontab
-	chgrp users $pkgdir/usr/bin/crontab
-	chmod u+s $pkgdir/usr/bin/crontab
+	make DESTDIR="$pkgdir" PREFIX=/usr CRONTAB_GROUP=users CRONTABS=/var/spool/cron CRONSTAMPS=/var/spool/cronstamps install || return 1
 
-	install -d -m755 $pkgdir/etc/cron.{hourly,daily,weekly,monthly} || return 1
-	install -D -m755 extra/crond.rc $pkgdir/etc/rc.d/crond || return 1
-	install -D -m755 extra/run-cron $pkgdir/usr/sbin/run-cron || return 1
-	install -D -m0600 extra/root.crontab $pkgdir/var/spool/cron/root || return 1
-	install -D -m644 extra/crond.logrotate $pkgdir/etc/logrotate.d/crond || return 1
 
+	install -d -m755 "$pkgdir/etc/cron."{hourly,daily,weekly,monthly} || return 1
+	install -D -m755 extra/crond.rc "$pkgdir/etc/rc.d/crond" || return 1
+	install -D -m755 extra/run-cron "$pkgdir/usr/sbin/run-cron" || return 1
+	install -D -m0600 extra/root.crontab "$pkgdir/var/spool/cron/root" || return 1
+	install -D -m644 extra/crond.logrotate "$pkgdir/etc/logrotate.d/crond" || return 1
+
 }




More information about the arch-commits mailing list