sudo: create required dir at post install/remove time.

This commit is contained in:
Juan RP 2011-08-18 16:04:00 +02:00
parent 8c82f92573
commit 0b5fc3a139
3 changed files with 3 additions and 1 deletions

View File

@ -9,5 +9,6 @@ post)
fi
chmod 4111 usr/bin/sudo usr/bin/sudoedit
[ ! -d etc/sudoers.d ] && install -d etc/sudoers.d
[ ! -d var/db/sudo ] && install -dm750 var/db/sudo
;;
esac

View File

@ -8,5 +8,6 @@ post)
;;
purge)
[ -f etc/sudoers ] && rm -f etc/sudoers
[ -d var/db/sudo ] && rm -rf var/db/sudo
;;
esac

View File

@ -1,6 +1,7 @@
# Template build file for 'sudo'.
pkgname=sudo
version=1.8.2
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
@ -17,7 +18,6 @@ long_desc="
give as few privileges as possible but still allow people to get their
work done."
keep_empty_dirs=yes
conf_files="/etc/pam.d/sudo /etc/sudoers"
nostrip=yes