# $Id: PKGBUILD 91396 2013-05-21 19:34:28Z seblu $ # Contributor: Giorgio Lando # Contributor: Sergej Pupykin # Contributor: Thomas Bächler # Contributor: Sébastien Luttringer # Maintainer: Thorsten Töpper pkgname=fcron pkgver=3.1.2 pkgrel=6 pkgdesc='Feature-rich cron implementation' arch=(i686 x86_64) url='http://fcron.free.fr' license=('GPL') depends=('pam' 'run-parts') makedepends=('smtp-forwarder' 'vi') optdepends=('smtp-forwarder: to send mails from cron jobs' 'vi: default editor for fcrontab') 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') options=('emptydirs' '!makeflags') source=("http://fcron.free.fr/archives/$pkgname-$pkgver.src.tar.gz" 'systab' 'systab.orig') md5sums=('36bf213e15f3a480f2274f8e46cced0a' '5f321747d86686f351ada7dce5774803' 'afecbfd98caa49e8e4aa239fa1b19255') build() { cd $pkgname-$pkgver ./configure --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc/fcron \ --with-answer-all=no \ --with-boot-install=no \ --with-username=root \ --with-groupname=root \ --datarootdir=/usr/share \ --datadir=/usr/share \ --with-docdir=/usr/share/doc \ --localstatedir=/var \ --with-systemdsystemunitdir=/usr/lib/systemd/system \ --with-piddir=/run \ --with-editor=/usr/bin/vi \ --with-sendmail=/usr/sbin/sendmail make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir/" install 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 -D -m640 "$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" # avoid conflict with filesystem>=2012.06 rmdir "$pkgdir"/{var/,}run # avoid conflict with libbsd - #31259 rm "$pkgdir/usr/share/man/man3/bitstring.3" \ "$pkgdir/usr/share/man/fr/man3/bitstring.3" rmdir --ignore-fail-on-non-empty "$pkgdir/usr/share/man/man3" \ "$pkgdir/usr/share/man/fr/man3" } # vim:set ts=2 sw=2 et: