blob: 78a4840fc692723df39f6f774eff106afe02897f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: gt <AT> notfoss.com
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Paul Mattal <paul.archlinux.org>
pkgname="dcron"
pkgver="4.5"
pkgrel=9
pkgdesc="dillon's lightweight cron daemon"
arch=("i686" "pentium4" "x86_64" "armv6h" "armv7h")
license=("GPL")
url="http://www.jimpryor.net/linux/dcron.html"
backup=("var/spool/cron/root" "etc/conf.d/crond")
_pinned_dependencies=(
'glibc>=2.31'
)
depends=('bash' "${_pinned_dependencies[@]}")
optdepends=("msmtp-mta: sending cron job output via email")
provides=("cron")
conflicts=("cron")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dubiousjim/${pkgname}/archive/v${pkgver}.tar.gz"
"service")
sha512sums=('72b72c624f72861a6fc10f030ca2b764c5f3be9a0d8341663c5a0acc2fda7fef70770d200975805f184d2fb668ee4811693989a54b12dc5ef501877f6c4aca0e'
'bee6352d1b70045db66c3e511d31a577663bafd726b63f3bb8aec69893d91ebab738640015ad7c0e1230c52540a1d749eb63c3111de90cd8c073137495203430')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
# fix paths to point to /usr/bin
sed -i 's=/usr/sbin/sendmail=/usr/bin/sendmail=g' defs.h
sed -i 's=/usr/sbin/run-cron=/usr/bin/run-cron=g' extra/root.crontab
# 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 -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
}
|