From 99cc0211be3329f5b7742955554896327d5edd60 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 15 Nov 2023 22:24:25 +0100 Subject: [PATCH] cronie: add /etc/default/anacron. --- srcpkgs/cronie/files/anacron | 1 + srcpkgs/cronie/files/cronie/log/run | 2 ++ srcpkgs/cronie/template | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/cronie/files/anacron create mode 100755 srcpkgs/cronie/files/cronie/log/run diff --git a/srcpkgs/cronie/files/anacron b/srcpkgs/cronie/files/anacron new file mode 100644 index 00000000000..55d1a4ecdef --- /dev/null +++ b/srcpkgs/cronie/files/anacron @@ -0,0 +1 @@ +# ANACRON_RUN_ON_BATTERY_POWER=no diff --git a/srcpkgs/cronie/files/cronie/log/run b/srcpkgs/cronie/files/cronie/log/run new file mode 100755 index 00000000000..6ff79ce509c --- /dev/null +++ b/srcpkgs/cronie/files/cronie/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec vlogger -p cron.notice diff --git a/srcpkgs/cronie/template b/srcpkgs/cronie/template index b9d6e4a2d39..2eddf91786e 100644 --- a/srcpkgs/cronie/template +++ b/srcpkgs/cronie/template @@ -1,7 +1,7 @@ # Template file for 'cronie' pkgname=cronie version=1.7.0 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-inotify --without-selinux --with-pam --enable-anacron --enable-pie --enable-relro" @@ -55,6 +55,7 @@ post_install() { vinstall contrib/anacrontab 644 etc vinstall contrib/0hourly 644 etc/cron.d vinstall contrib/0anacron 755 etc/cron.hourly + vinstall ${FILESDIR}/anacron 644 etc/default # crontab must be setuid chmod u+s ${DESTDIR}/usr/bin/crontab