[arch-commits] Commit in fcron/trunk (PKGBUILD fcron.install systab)
Sébastien Luttringer
seblu at nymeria.archlinux.org
Wed May 29 00:38:10 UTC 2013
Date: Wednesday, May 29, 2013 @ 02:38:09
Author: seblu
Revision: 91895
upgpkg: fcron 3.1.2-7
- systab crontab binary is now generated on target host by install script
It fix a crash on i686 with binary format generaed on x86_64
- systab.orig is no more backuped
This allow updating system wide cron (/etc/cron.*) without user intervention
and even fcron restart.
Added:
fcron/trunk/fcron.install
Modified:
fcron/trunk/PKGBUILD
Deleted:
fcron/trunk/systab
---------------+
PKGBUILD | 16 ++++++----------
fcron.install | 13 +++++++++++++
2 files changed, 19 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-28 20:22:04 UTC (rev 91894)
+++ PKGBUILD 2013-05-29 00:38:09 UTC (rev 91895)
@@ -7,7 +7,7 @@
pkgname=fcron
pkgver=3.1.2
-pkgrel=6
+pkgrel=7
pkgdesc='Feature-rich cron implementation'
arch=(i686 x86_64)
url='http://fcron.free.fr'
@@ -20,15 +20,12 @@
conflicts=('dcron')
backup=('etc/fcron/fcron.conf'
'etc/fcron/fcron.allow'
- 'etc/fcron/fcron.deny'
- 'var/spool/fcron/systab'
- 'var/spool/fcron/systab.orig')
+ 'etc/fcron/fcron.deny')
options=('emptydirs' '!makeflags')
+install=$pkgname.install
source=("http://fcron.free.fr/archives/$pkgname-$pkgver.src.tar.gz"
- 'systab'
'systab.orig')
md5sums=('36bf213e15f3a480f2274f8e46cced0a'
- '5f321747d86686f351ada7dce5774803'
'afecbfd98caa49e8e4aa239fa1b19255')
build() {
@@ -58,11 +55,10 @@
install -D -m644 "$srcdir/$pkgname-$pkgver/files/fcron.pam" "$pkgdir/etc/pam.d/fcron"
install -D -m644 "$srcdir/$pkgname-$pkgver/files/fcrontab.pam" "$pkgdir/etc/pam.d/fcrontab"
- # Install default fcrontab so that fcron can completely replace dcron
- install -D -m640 "$srcdir/systab" "$pkgdir/var/spool/fcron/systab"
- # In order to preserve the systab crontab in any case it is better to have
- # it in non-binary form too
+ # Install a default fcrontab so that fcron can completely replace dcron
+ # We doesn't use binary format which is incompatible between arch and may cause crash
+ # We regenerate the binary format at each update
install -D -m640 "$srcdir/systab.orig" "$pkgdir/var/spool/fcron/systab.orig"
# Add cron.* directories
Added: fcron.install
===================================================================
--- fcron.install (rev 0)
+++ fcron.install 2013-05-29 00:38:09 UTC (rev 91895)
@@ -0,0 +1,13 @@
+# arg 1: the new package version
+post_install() {
+ # Generate binary format which is incompatible between arch
+ fcrontab -z -u systab &>/dev/null
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install "$1"
+}
+
+# vim:set ts=2 sw=2 et:
Deleted: systab
===================================================================
(Binary files differ)
More information about the arch-commits
mailing list