cronie: crontab setuid mode can be set via do_install().

This commit is contained in:
Juan RP 2014-10-12 07:33:37 +02:00
parent d6df6df815
commit 46f3e7ef99
2 changed files with 3 additions and 10 deletions
srcpkgs/cronie

View file

@ -1,9 +0,0 @@
#
# This script fixes permissions for cronie
#
case "${ACTION}" in
post)
chmod u+s usr/bin/crontab
;;
esac

View file

@ -1,7 +1,7 @@
# Template file for 'cronie'
pkgname=cronie
version=1.4.12
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-inotify --without-selinux --with-pam
--disable-anacron --localstatedir=/var --enable-pie --enable-relro"
@ -39,4 +39,6 @@ post_install() {
# 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
}