sudo: purge /etc/sudoers, check for /etc/sudoers.d before rmdir.

This commit is contained in:
Juan RP 2011-07-01 09:04:06 +02:00
parent ca8369eada
commit 44f85a8a7f
2 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,9 @@
#
case "${ACTION}" in
post)
rmdir etc/sudoers.d 2>/dev/null
[ -d etc/sudoers.d ] && rmdir etc/sudoers.d 2>/dev/null
;;
purge)
[ -f etc/sudoers ] && rm -f etc/sudoers
;;
esac

View File

@ -1,6 +1,7 @@
# Template build file for 'sudo'.
pkgname=sudo
version=1.8.1p2
revision=1
distfiles="http://www.courtesan.com/sudo/dist/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--with-ignore-dot -with-all-insults --with-env-editor