From 1895856c4b448714fd651794117f7670c5dbb947 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Thu, 2 Oct 2014 13:34:56 +0000 Subject: [PATCH] cronie: update to 1.4.12. --- srcpkgs/cronie/INSTALL | 9 +++++++++ srcpkgs/cronie/template | 15 +++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/cronie/INSTALL diff --git a/srcpkgs/cronie/INSTALL b/srcpkgs/cronie/INSTALL new file mode 100644 index 00000000000..a5832e1fe92 --- /dev/null +++ b/srcpkgs/cronie/INSTALL @@ -0,0 +1,9 @@ +# +# This script fixes permissions for cronie +# + +case "${ACTION}" in +post) + chmod u+s usr/bin/crontab + ;; +esac diff --git a/srcpkgs/cronie/template b/srcpkgs/cronie/template index 1824c6ba377..73f2c162c96 100644 --- a/srcpkgs/cronie/template +++ b/srcpkgs/cronie/template @@ -1,7 +1,7 @@ # Template file for 'cronie' pkgname=cronie -version=1.4.11 -revision=6 +version=1.4.12 +revision=1 build_style=gnu-configure configure_args="--with-inotify --without-selinux --with-pam --disable-anacron --localstatedir=/var --enable-pie --enable-relro" @@ -24,16 +24,19 @@ maintainer="Juan RP " homepage="https://fedorahosted.org/cronie/" license="BSD" distfiles="https://fedorahosted.org/releases/c/r/cronie/cronie-$version.tar.gz" -checksum=fd08084cedddbb42499f80ddb7f2158195c3555c2ff40ee11d4ece2f9864d7be +checksum=0f5c9bf32f352599451c4ca0d6bc076d19e73ecfa5a90b34ecfe47c918c8bafd + +build_options="systemd" post_install() { - vinstall ${FILESDIR}/cronie.service 644 usr/lib/systemd/system + if [ "$build_option_systemd" ]; then + vinstall ${FILESDIR}/cronie.service 644 usr/lib/systemd/system + fi + vinstall ${FILESDIR}/crontab 644 etc vinstall ${FILESDIR}/crond.pam 644 etc/pam.d crond # Add /etc/cron.deny empty, to allow all users. touch ${DESTDIR}/etc/cron.deny chmod 644 ${DESTDIR}/etc/cron.deny - # crontab must be setuid - chmod u+s ${DESTDIR}/usr/bin/crontab }