2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
|
|
# Website : https://pozol.eu
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname='cronie'
|
2023-10-13 17:22:48 +02:00
|
|
|
pkgver=1.7.0
|
|
|
|
pkgrel=02
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='Daemon that runs specified programs at scheduled times and related tools w/o systemd'
|
|
|
|
url='https://github.com/cronie-crond/cronie/'
|
|
|
|
depends=('pam' 'bash' 'run-parts')
|
|
|
|
optdepends=('smtp-server: send job output via email'
|
|
|
|
'smtp-forwarder: forward job output to email server')
|
|
|
|
conflicts=('cron')
|
|
|
|
provides=('cron')
|
2022-03-25 18:35:29 +01:00
|
|
|
#options=('debug')
|
2022-03-20 13:19:37 +01:00
|
|
|
source=("https://github.com/cronie-crond/cronie/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
'80-cronie.hook'
|
|
|
|
'deny')
|
|
|
|
|
2023-10-13 17:22:48 +02:00
|
|
|
backup=('etc/anacrontab'
|
2022-03-20 13:19:37 +01:00
|
|
|
'etc/cron.d/0hourly'
|
2023-10-13 17:22:48 +02:00
|
|
|
'etc/cron.deny'
|
|
|
|
'etc/pam.d/crond'
|
|
|
|
'etc/sysconfig/crond')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2022-05-03 22:35:55 +02:00
|
|
|
#
|
|
|
|
# prepare() {
|
|
|
|
# cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
# patch -Np1 < ../0001-fix-range-entries.patch
|
|
|
|
# }
|
|
|
|
#
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2022-03-25 18:35:29 +01:00
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure \
|
2022-03-20 13:19:37 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--sbindir=/usr/bin \
|
|
|
|
--enable-anacron \
|
|
|
|
--with-inotify \
|
|
|
|
--with-pam
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
|
|
|
chmod u+s "${pkgdir}"/usr/bin/crontab
|
|
|
|
install -d "${pkgdir}"/var/spool/{ana,}cron
|
|
|
|
install -d "${pkgdir}"/etc/cron.{d,hourly,daily,weekly,monthly}
|
|
|
|
|
|
|
|
install -Dm0644 ../deny "${pkgdir}"/etc/cron.deny
|
2023-10-13 17:22:48 +02:00
|
|
|
# install -Dm0644 ../pam.d "${pkgdir}"/etc/pam.d/crond
|
2022-03-20 13:19:37 +01:00
|
|
|
install -Dm0644 ../80-cronie.hook "${pkgdir}"/usr/share/libalpm/hooks/80-cronie.hook
|
|
|
|
|
|
|
|
install -Dm0644 contrib/anacrontab "${pkgdir}"/etc/anacrontab
|
|
|
|
install -Dm0644 contrib/0hourly "${pkgdir}"/etc/cron.d/0hourly
|
|
|
|
install -Dm0755 contrib/0anacron "${pkgdir}"/etc/cron.hourly/0anacron
|
2023-10-13 17:22:48 +02:00
|
|
|
install -Dm0644 crond.sysconfig "${pkgdir}"/etc/sysconfig/crond
|
|
|
|
|
|
|
|
install -Dm0644 pam/crond "${pkgdir}"/etc/pam.d/crond
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
install -Dm0644 COPYING "${pkgdir}"/usr/share/licenses/cronie/COPYING
|
|
|
|
}
|
|
|
|
|
2023-10-13 17:22:48 +02:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
license=('custom:BSD')
|
|
|
|
|
2023-10-13 17:22:48 +02:00
|
|
|
sha256sums=(6827f5a47760cc64afeef0a60d3cb5376f52569109fc9a73957dd5e9fdae7619 # cronie-1.7.0.tar.gz
|
|
|
|
f85e9a68bf3bf446f8a6167f068371c06afffe11ca71935d8ee5487b38b2c9db # 80-cronie.hook
|
2022-03-20 13:19:37 +01:00
|
|
|
ae6e533ecdfc1bd2dd80a9e25acb0260cbe9f00c4e4abee93d552b3660f263fc) # deny
|
2022-05-03 22:35:55 +02:00
|
|
|
|
2023-10-13 17:22:48 +02:00
|
|
|
## 0709376ba6979825c8a2408bd1e1266c4c844f924000b98a9778a28a05eff5e0 cronie-1.7.0-02-x86_64.pkg.tar.lz
|