diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1996-07-19 21:00:43 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1996-07-19 21:00:43 +0000 |
commit | 9b6acf4966e3aacaac895c6235718cad210e8d58 (patch) | |
tree | 9b55ece17e28bc424d6b4373b39bf263c0a331a4 /security/sudo | |
parent | Fix a bug caused by a undefined variable in some cases. (diff) |
Put "sudoers.sample" in the package and copy it to "sudoers" if the
latter doesn't already exist. Closes PR ports/1405 ("why can Satoshi
sudo on my machine?").
Notes
Notes:
svn path=/head/; revision=3407
Diffstat (limited to 'security/sudo')
-rw-r--r-- | security/sudo/pkg-install | 9 | ||||
-rw-r--r-- | security/sudo/pkg-plist | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/security/sudo/pkg-install b/security/sudo/pkg-install new file mode 100644 index 000000000000..b633da87b270 --- /dev/null +++ b/security/sudo/pkg-install @@ -0,0 +1,9 @@ +#!/bin/sh +if [ $2 != "POST-INSTALL" ]; then + exit 0 +fi +if [ -e ${PKG_PREFIX}/etc/sudoers ]; then + echo "Will not overwrite existing ${PKG_PREFIX}/etc/sudoers file." +else + cp -p ${PKG_PREFIX}/etc/sudoers.sample ${PKG_PREFIX}/etc/sudoers +fi diff --git a/security/sudo/pkg-plist b/security/sudo/pkg-plist index dac5259bd7a2..08d6a469b268 100644 --- a/security/sudo/pkg-plist +++ b/security/sudo/pkg-plist @@ -1,6 +1,6 @@ bin/sudo sbin/visudo -etc/sudoers +etc/sudoers.sample man/man5/sudoers.5 man/man8/sudo.8 man/man8/visudo.8 |