Skip to content

Instantly share code, notes, and snippets.

Created June 3, 2013 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5698637 to your computer and use it in GitHub Desktop.
Save anonymous/5698637 to your computer and use it in GitHub Desktop.
dcron PKGBUILD
# $Id: PKGBUILD 79754 2012-11-11 21:14:11Z spupykin $
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Paul Mattal <paul.archlinux.org>
pkgname=dcron
pkgver=4.5
pkgrel=5
pkgdesc="dillon's lightweight cron daemon"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.jimpryor.net/linux/dcron.html"
backup=('var/spool/cron/root' 'etc/conf.d/crond')
depends=('bash')
provides=('cron')
conflicts=('cron')
optdepends=('smtp-server: sending cron job output via email')
install=$pkgname.install
source=(http://www.jimpryor.net/linux/releases/${pkgname}-${pkgver}.tar.gz
service)
md5sums=('078833f3281f96944fc30392b1888326'
'e43c3d758384ac644f5e19f460ab5f46')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
# by default, any member of group "users" can edit their own crontab
make \
PREFIX=/usr \
SBINDIR=/usr/bin \
CRONTAB_GROUP=users \
CRONTABS=/var/spool/cron \
CRONSTAMPS=/var/spool/cronstamps
}
package() {
cd "$srcdir/${pkgname}-${pkgver}"
make DESTDIR="$pkgdir" install
# install standard configuration and scripts
install -d -m755 "$pkgdir/etc/cron."{hourly,daily,weekly,monthly}
install -D -m755 extra/run-cron "$pkgdir/usr/bin/run-cron"
install -D -m0600 extra/root.crontab "$pkgdir/var/spool/cron/root"
install -D -m755 extra/crond.rc "$pkgdir/etc/rc.d/crond"
install -D -m0644 extra/crond.conf "$pkgdir/etc/conf.d/crond"
install -D -m644 extra/crontab.vim "$pkgdir/usr/share/vim/vimfiles/ftplugin/crontab.vim"
sed -i -e 's=/var/spool/cron/cronstamps=/var/spool/cronstamps=' extra/prune-cronstamps
install -D -m755 extra/prune-cronstamps "$pkgdir/etc/cron.d/prune-cronstamps"
install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/dcron.service
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment