db-move: moved xdg-desktop-portal-gnome from [testing] to [extra] (x86_64)
[arch-packages.git] / cronie / repos / core-x86_64 / PKGBUILD
blob7df128dadf9927871a87b65d3801fc536993d020
1 # Contributor: Kaiting Chen <kaiting.chen@kiwilight.com>
2 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
4 pkgname='cronie'
5 pkgver=1.6.1
6 pkgrel=1
7 pkgdesc='Daemon that runs specified programs at scheduled times and related tools'
8 url='https://github.com/cronie-crond/cronie/'
9 license=('custom:BSD')
10 arch=('x86_64')
11 depends=('pam' 'bash' 'run-parts')
12 optdepends=('smtp-server: send job output via email'
13             'smtp-forwarder: forward job output to email server')
14 conflicts=('cron')
15 provides=('cron')
16 options=('debug')
17 source=("https://github.com/cronie-crond/cronie/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
18         '80-cronie.hook'
19         'service'
20         'pam.d'
21         'deny')
22 sha256sums=('2cd0f0dd1680e6b9c39bf1e3a5e7ad6df76aa940de1ee90a453633aa59984e62'
23             'f85e9a68bf3bf446f8a6167f068371c06afffe11ca71935d8ee5487b38b2c9db'
24             'ac3ff3c8a5ce1b6367b06877b4b12ff74e7f18a3c510fb9f80d6ea6b6321e3b1'
25             '00864268b491bab8c66400a4a4b4bf85f168a6e44e85676105e084940924090c'
26             'ae6e533ecdfc1bd2dd80a9e25acb0260cbe9f00c4e4abee93d552b3660f263fc')
27 backup=('etc/cron.deny'
28         'etc/pam.d/crond'
29         'etc/cron.d/0hourly'
30         'etc/anacrontab')
32 build() {
33         cd "${srcdir}/${pkgname}-${pkgver}"
35         ./configure \
36                 --prefix=/usr \
37                 --sysconfdir=/etc \
38                 --localstatedir=/var \
39                 --sbindir=/usr/bin \
40                 --enable-anacron \
41                 --with-inotify \
42                 --with-pam
43         make
46 package() {
47         cd "${srcdir}/${pkgname}-${pkgver}"
49         make DESTDIR="${pkgdir}" install
51         chmod u+s "${pkgdir}"/usr/bin/crontab
52         install -d "${pkgdir}"/var/spool/{ana,}cron
53         install -d "${pkgdir}"/etc/cron.{d,hourly,daily,weekly,monthly}
55         install -Dm0644 ../deny "${pkgdir}"/etc/cron.deny
56         install -Dm0644 ../pam.d "${pkgdir}"/etc/pam.d/crond
57         install -Dm0644 ../service "${pkgdir}"/usr/lib/systemd/system/cronie.service
58         install -Dm0644 ../80-cronie.hook "${pkgdir}"/usr/share/libalpm/hooks/80-cronie.hook
60         install -Dm0644 contrib/anacrontab "${pkgdir}"/etc/anacrontab
61         install -Dm0644 contrib/0hourly "${pkgdir}"/etc/cron.d/0hourly
62         install -Dm0755 contrib/0anacron "${pkgdir}"/etc/cron.hourly/0anacron
64         install -Dm0644 COPYING "${pkgdir}"/usr/share/licenses/cronie/COPYING