diff --git a/srcpkgs/sudo/REMOVE b/srcpkgs/sudo/REMOVE index 822a633a0cc..3154a21a503 100644 --- a/srcpkgs/sudo/REMOVE +++ b/srcpkgs/sudo/REMOVE @@ -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 diff --git a/srcpkgs/sudo/template b/srcpkgs/sudo/template index e062795f21e..32afdb8e5ea 100644 --- a/srcpkgs/sudo/template +++ b/srcpkgs/sudo/template @@ -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