From b5f690637837ff269bf5d248ee2dc37ea5236ca8 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 12 Jan 2012 23:14:51 +0000 Subject: Thu Jan 12 23:14:51 UTC 2012 --- community/fcron/PKGBUILD | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'community/fcron/PKGBUILD') diff --git a/community/fcron/PKGBUILD b/community/fcron/PKGBUILD index 9dc24f933..d2bd49b05 100755 --- a/community/fcron/PKGBUILD +++ b/community/fcron/PKGBUILD @@ -1,24 +1,23 @@ -# $Id: PKGBUILD 60201 2011-12-07 14:41:34Z arodseth $ +# $Id: PKGBUILD 61936 2012-01-11 09:30:32Z ttopper $ # Contributor: Giorgio Lando # Contributor: Sergej Pupykin -# Contributor: Thomas Bächler -# Maintainer: Thorsten Töpper +# Contributor: Thomas Bächler +# Maintainer: Thorsten Töpper pkgname=fcron pkgver=3.0.6 -pkgrel=4 +pkgrel=5 pkgdesc="feature-rich cron implementation" arch=(i686 x86_64) url="http://fcron.free.fr" license=('GPL') -depends=('sh') +depends=('pam') makedepends=('smtp-server') optdepends=('smtp-server: to receive mails from cron jobs') provides=('cron') conflicts=('dcron') backup=(etc/fcron/fcron.conf etc/fcron/fcron.allow etc/fcron/fcron.deny \ var/spool/fcron/systab var/spool/fcron/systab.orig) -install=fcron.install options=('emptydirs' '!makeflags') source=(http://fcron.free.fr/archives/$pkgname-$pkgver.src.tar.gz fcron.rc \ systab systab.orig run-cron) @@ -34,8 +33,8 @@ build() { --sysconfdir=/etc/fcron \ --with-answer-all=no \ --with-boot-install=no \ - --with-username=cron \ - --with-groupname=cron \ + --with-username=root \ + --with-groupname=root \ --datarootdir=/usr/share \ --datadir=/usr/share \ --with-docdir=/usr/share/doc \ @@ -46,26 +45,26 @@ build() { } package() { - # Create necessary user and group - getent group cron || /usr/sbin/groupadd -g 22 cron - getent passwd cron || /usr/sbin/useradd -d / -g cron -u 22 -s /bin/false cron - cd "$srcdir/$pkgname-$pkgver" - mkdir -p "$pkgdir/var/spool" + make DESTDIR="$pkgdir/" install install -D -m755 "$srcdir/fcron.rc" "$pkgdir/etc/rc.d/fcron" 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 -m600 "$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 -D -m600 "$srcdir/systab.orig" "$pkgdir/var/spool/fcron/systab.orig" + # Add cron.* directories install -d -m755 "$pkgdir/etc/cron.daily" install -d -m755 "$pkgdir/etc/cron.hourly" install -d -m755 "$pkgdir/etc/cron.monthly" install -d -m755 "$pkgdir/etc/cron.weekly" + # Install run-cron script to make fcron run without dcron install -D -m755 "$srcdir/run-cron" "$pkgdir/usr/sbin/run-cron" } -- cgit v1.2.3-54-g00ecf