1 # Contributor: Kaiting Chen <kaiting.chen@kiwilight.com>
2 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
7 pkgdesc='Daemon that runs specified programs at scheduled times and related tools'
8 url='https://github.com/cronie-crond/cronie/'
11 depends=('pam' 'bash' 'run-parts')
12 optdepends=('smtp-server: send job output via email'
13 'smtp-forwarder: forward job output to email server')
16 source=("https://github.com/cronie-crond/cronie/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
17 '0001-crontab-use-bold-colors.patch'
22 sha256sums=('538bcfaf2e986e5ae1edf6d1472a77ea8271d6a9005aee2497a9ed6e13320eb3'
23 '2c9a2f386f23779907c468023538b195cd3e3c61fa16e19f036ee13a031f1c3a'
24 'f85e9a68bf3bf446f8a6167f068371c06afffe11ca71935d8ee5487b38b2c9db'
25 'ac3ff3c8a5ce1b6367b06877b4b12ff74e7f18a3c510fb9f80d6ea6b6321e3b1'
26 '00864268b491bab8c66400a4a4b4bf85f168a6e44e85676105e084940924090c'
27 'ae6e533ecdfc1bd2dd80a9e25acb0260cbe9f00c4e4abee93d552b3660f263fc')
28 backup=('etc/cron.deny'
34 cd "${srcdir}/${pkgname}-${pkgver}"
36 patch -Np1 < ../0001-crontab-use-bold-colors.patch
41 --localstatedir=/var \
50 cd "${srcdir}/${pkgname}-${pkgver}"
52 make DESTDIR="${pkgdir}" install
54 chmod u+s "${pkgdir}"/usr/bin/crontab
55 install -d "${pkgdir}"/var/spool/{ana,}cron
56 install -d "${pkgdir}"/etc/cron.{d,hourly,daily,weekly,monthly}
58 install -Dm0644 ../deny "${pkgdir}"/etc/cron.deny
59 install -Dm0644 ../pam.d "${pkgdir}"/etc/pam.d/crond
60 install -Dm0644 ../service "${pkgdir}"/usr/lib/systemd/system/cronie.service
61 install -Dm0644 ../80-cronie.hook "${pkgdir}"/usr/share/libalpm/hooks/80-cronie.hook
63 install -Dm0644 contrib/anacrontab "${pkgdir}"/etc/anacrontab
64 install -Dm0644 contrib/0hourly "${pkgdir}"/etc/cron.d/0hourly
65 install -Dm0755 contrib/0anacron "${pkgdir}"/etc/cron.hourly/0anacron
67 install -Dm0644 COPYING "${pkgdir}"/usr/share/licenses/cronie/COPYING