Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD for dcron

By: a guest on Jun 3rd, 2013  |  syntax: Bash  |  size: 1.76 KB  |  views: 61  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # $Id: PKGBUILD 79754 2012-11-11 21:14:11Z spupykin $
  2. # Maintainer:  BartÅ‚omiej Piotrowski <nospam@bpiotrowski.pl>
  3. # Contributor: Paul Mattal <paul.archlinux.org>
  4.  
  5. pkgname=dcron
  6. pkgver=4.5
  7. pkgrel=5
  8. pkgdesc="dillon's lightweight cron daemon"
  9. arch=('i686' 'x86_64')
  10. license=('GPL')
  11. url="http://www.jimpryor.net/linux/dcron.html"
  12. backup=('var/spool/cron/root' 'etc/conf.d/crond')
  13. depends=('bash')
  14. provides=('cron')
  15. conflicts=('cron')
  16. optdepends=('smtp-server: sending cron job output via email')
  17. install=$pkgname.install
  18. source=(http://www.jimpryor.net/linux/releases/${pkgname}-${pkgver}.tar.gz
  19.         service)
  20. md5sums=('078833f3281f96944fc30392b1888326'
  21.          'e43c3d758384ac644f5e19f460ab5f46')
  22.  
  23. build() {
  24.         cd "$srcdir/${pkgname}-${pkgver}"
  25.  
  26.         # by default, any member of group "users" can edit their own crontab
  27.         make \
  28.                 PREFIX=/usr \
  29.                 SBINDIR=/usr/bin \
  30.                 CRONTAB_GROUP=users \
  31.                 CRONTABS=/var/spool/cron \
  32.                 CRONSTAMPS=/var/spool/cronstamps
  33. }
  34.  
  35. package() {
  36.         cd "$srcdir/${pkgname}-${pkgver}"
  37.         make DESTDIR="$pkgdir" install
  38.  
  39.         # install standard configuration and scripts
  40.         install -d -m755 "$pkgdir/etc/cron."{hourly,daily,weekly,monthly}
  41.  
  42.         install -D -m755 extra/run-cron "$pkgdir/usr/bin/run-cron"
  43.         install -D -m0600 extra/root.crontab "$pkgdir/var/spool/cron/root"
  44.         install -D -m755 extra/crond.rc "$pkgdir/etc/rc.d/crond"
  45.         install -D -m0644 extra/crond.conf "$pkgdir/etc/conf.d/crond"
  46.         install -D -m644 extra/crontab.vim "$pkgdir/usr/share/vim/vimfiles/ftplugin/crontab.vim"
  47.         sed -i -e 's=/var/spool/cron/cronstamps=/var/spool/cronstamps=' extra/prune-cronstamps
  48.         install -D -m755 extra/prune-cronstamps "$pkgdir/etc/cron.d/prune-cronstamps"
  49.     install -Dm644  $srcdir/service $pkgdir/usr/lib/systemd/system/dcron.service
  50. }