mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:54:37 +08:00
69 lines
1.9 KiB
Bash
69 lines
1.9 KiB
Bash
pkgname="cronie"
|
|
pkgver=1.4.9
|
|
pkgrel=5
|
|
pkgdesc='Daemon that runs specified programs at scheduled times and related tools'
|
|
url='https://fedorahosted.org/cronie/'
|
|
license=('custom:BSD')
|
|
arch=('x86_64')
|
|
depends=('pam' 'bash' 'run-parts')
|
|
optdepends=('pm-utils: defer anacron on battery power'
|
|
'smtp-server: send job output via email'
|
|
'smtp-forwarder: forward job output to email server')
|
|
|
|
source=("https://fedorahosted.org/releases/c/r/${pkgname}/${pkgname}-${pkgver}.tar.gz"
|
|
'cron.deny'
|
|
'service'
|
|
'pam.d')
|
|
sha1sums=('40405cb30b62bd60323e4daf5198f26f0e65c4c4'
|
|
'0f279b8fb820340267d578dc85511c980715f91e'
|
|
'de455f11a310e64d6930390e57726ed70f3295d0'
|
|
'5eff7fb31f6bc0a924243ff046704726cf20c221')
|
|
|
|
backup=('etc/anacrontab'
|
|
'etc/pam.d/crond'
|
|
'etc/cron.deny')
|
|
|
|
conflicts=('cron')
|
|
provides=('cron')
|
|
groups=('base')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed 's:usr/sbin:usr/bin:g' -i contrib/0anacron
|
|
}
|
|
|
|
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 -Dm644 ../pam.d "${pkgdir}"/etc/pam.d/crond
|
|
install -Dm644 ../cron.deny "${pkgdir}"/etc/cron.deny
|
|
install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/cronie.service
|
|
|
|
install -Dm644 contrib/anacrontab "${pkgdir}"/etc/anacrontab
|
|
install -Dm644 contrib/0hourly "${pkgdir}"/etc/cron.d/0hourly
|
|
install -Dm755 contrib/0anacron "${pkgdir}"/etc/cron.hourly/0anacron
|
|
|
|
install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/cronie/COPYING
|
|
}
|