91 lines
2.9 KiB
Bash
91 lines
2.9 KiB
Bash
#!/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'
|
|
pkgver=1.7.1
|
|
pkgrel=01
|
|
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')
|
|
#options=('debug')
|
|
source=("https://github.com/cronie-crond/cronie/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
|
'80-cronie.hook'
|
|
'cron-deny'
|
|
'crontab'
|
|
'default-anacron')
|
|
|
|
backup=('etc/anacrontab'
|
|
'etc/cron.d/0hourly'
|
|
'etc/cron.deny'
|
|
'etc/crontab'
|
|
'etc/default/anacron'
|
|
'etc/pam.d/crond'
|
|
'etc/sysconfig/crond')
|
|
|
|
#
|
|
# prepare() {
|
|
# cd "${srcdir}/${pkgname}-${pkgver}"
|
|
# patch -Np1 < ../0001-fix-range-entries.patch
|
|
# }
|
|
#
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure \
|
|
--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 ../cron-deny "${pkgdir}"/etc/cron.deny
|
|
# install -Dm0644 ../pam.d "${pkgdir}"/etc/pam.d/crond
|
|
install -Dm0644 ../crontab "${pkgdir}"/etc/crontab
|
|
install -Dm0644 ../default-anacron "${pkgdir}"/etc/default/anacron
|
|
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
|
|
install -Dm0644 crond.sysconfig "${pkgdir}"/etc/sysconfig/crond
|
|
|
|
install -Dm0644 pam/crond "${pkgdir}"/etc/pam.d/crond
|
|
|
|
install -Dm0644 COPYING "${pkgdir}"/usr/share/licenses/cronie/COPYING
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('custom:BSD')
|
|
|
|
sha256sums=(78033100c24413f0c40f93e6138774d6a4f55bc31050567b90db45a2f9f1b954 # cronie-1.7.1.tar.gz
|
|
f85e9a68bf3bf446f8a6167f068371c06afffe11ca71935d8ee5487b38b2c9db # 80-cronie.hook
|
|
ae6e533ecdfc1bd2dd80a9e25acb0260cbe9f00c4e4abee93d552b3660f263fc # cron-deny
|
|
64d517a8d011b5cfa6b2433d528498e80fa8d0748c91f1b73e6ded70e776dc35 # crontab
|
|
c5772fd0df22d807ed6b62edf4052db529aafb626b1bfe8961229fb864039a5c) # default-anacron
|
|
|
|
## f672993bf8b7bf06099803e45ef706a48f9da674f42a803db7fc6fdea9f5c6bb cronie-1.7.1-01-x86_64.pkg.tar.lz
|
|
|