upg cronie

This commit is contained in:
joborun linux 2023-10-16 15:26:56 +03:00
parent 55951a2af6
commit 40923deee3
5 changed files with 35 additions and 9 deletions

View file

@ -7,7 +7,7 @@
pkgname='cronie'
pkgver=1.7.0
pkgrel=02
pkgrel=04
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')
@ -18,11 +18,15 @@ provides=('cron')
#options=('debug')
source=("https://github.com/cronie-crond/cronie/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
'80-cronie.hook'
'deny')
'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')
@ -55,8 +59,10 @@ package() {
install -d "${pkgdir}"/var/spool/{ana,}cron
install -d "${pkgdir}"/etc/cron.{d,hourly,daily,weekly,monthly}
install -Dm0644 ../deny "${pkgdir}"/etc/cron.deny
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
@ -77,6 +83,8 @@ license=('custom:BSD')
sha256sums=(6827f5a47760cc64afeef0a60d3cb5376f52569109fc9a73957dd5e9fdae7619 # cronie-1.7.0.tar.gz
f85e9a68bf3bf446f8a6167f068371c06afffe11ca71935d8ee5487b38b2c9db # 80-cronie.hook
ae6e533ecdfc1bd2dd80a9e25acb0260cbe9f00c4e4abee93d552b3660f263fc) # deny
ae6e533ecdfc1bd2dd80a9e25acb0260cbe9f00c4e4abee93d552b3660f263fc # cron-deny
64d517a8d011b5cfa6b2433d528498e80fa8d0748c91f1b73e6ded70e776dc35 # crontab
c5772fd0df22d807ed6b62edf4052db529aafb626b1bfe8961229fb864039a5c) # default-anacron
## 0709376ba6979825c8a2408bd1e1266c4c844f924000b98a9778a28a05eff5e0 cronie-1.7.0-02-x86_64.pkg.tar.lz
## 0cd3e932521bded7364a7c8c917c97334bb5218d1861da254fa83c9d52878bc6 cronie-1.7.0-04-x86_64.pkg.tar.lz

View file

@ -3,7 +3,7 @@
pkgname='cronie'
pkgver=1.7.0
pkgrel=2
pkgrel=4
pkgdesc='Daemon that runs specified programs at scheduled times and related tools'
url='https://github.com/cronie-crond/cronie/'
license=('custom:BSD')
@ -15,13 +15,19 @@ conflicts=('cron')
provides=('cron')
source=("https://github.com/cronie-crond/cronie/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
'80-cronie.hook'
'deny')
'cron-deny'
'crontab'
'default-anacron')
sha256sums=('6827f5a47760cc64afeef0a60d3cb5376f52569109fc9a73957dd5e9fdae7619'
'f85e9a68bf3bf446f8a6167f068371c06afffe11ca71935d8ee5487b38b2c9db'
'ae6e533ecdfc1bd2dd80a9e25acb0260cbe9f00c4e4abee93d552b3660f263fc')
'ae6e533ecdfc1bd2dd80a9e25acb0260cbe9f00c4e4abee93d552b3660f263fc'
'64d517a8d011b5cfa6b2433d528498e80fa8d0748c91f1b73e6ded70e776dc35'
'c5772fd0df22d807ed6b62edf4052db529aafb626b1bfe8961229fb864039a5c')
backup=('etc/anacrontab'
'etc/cron.d/0hourly'
'etc/cron.deny'
'etc/crontab'
'etc/default/anacron'
'etc/pam.d/crond'
'etc/sysconfig/crond')
@ -48,8 +54,10 @@ package() {
install -d "${pkgdir}"/var/spool/{ana,}cron
install -d "${pkgdir}"/etc/cron.{d,hourly,daily,weekly,monthly}
install -Dm0644 ../deny "${pkgdir}"/etc/cron.deny
install -Dm0644 ../80-cronie.hook "${pkgdir}"/usr/share/libalpm/hooks/80-cronie.hook
install -Dm0644 ../cron-deny "${pkgdir}"/etc/cron.deny
install -Dm0644 ../crontab "${pkgdir}"/etc/crontab
install -Dm0644 ../default-anacron "${pkgdir}"/etc/default/anacron
install -Dm0644 contrib/anacrontab "${pkgdir}"/etc/anacrontab
install -Dm0644 contrib/0hourly "${pkgdir}"/etc/cron.d/0hourly

1
cronie/cron-deny Normal file
View file

@ -0,0 +1 @@
# without this file, only users listed in /etc/cron.allow can use crontab

5
cronie/crontab Normal file
View file

@ -0,0 +1,5 @@
# /etc/crontab: configuration file for cron
# See cron(8) and crontab(5) for details.
# m h dom mon dow user command

4
cronie/default-anacron Normal file
View file

@ -0,0 +1,4 @@
# /etc/default/anacron
# Set this to 'yes' to have anacron run while on battery
# By default it is not run while on battery
#ANACRON_RUN_ON_BATTERY_POWER=no