sudo: create required dir at post install/remove time.
This commit is contained in:
parent
8c82f92573
commit
0b5fc3a139
|
@ -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
|
||||
|
|
|
@ -8,5 +8,6 @@ post)
|
|||
;;
|
||||
purge)
|
||||
[ -f etc/sudoers ] && rm -f etc/sudoers
|
||||
[ -d var/db/sudo ] && rm -rf var/db/sudo
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue