aboutsummaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-07-19 21:00:43 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-07-19 21:00:43 +0000
commit9b6acf4966e3aacaac895c6235718cad210e8d58 (patch)
tree9b55ece17e28bc424d6b4373b39bf263c0a331a4 /security/sudo
parent2b944d930de21ecb807221fb9fb9f3f288fc75ec (diff)
downloadports-9b6acf4966e3aacaac895c6235718cad210e8d58.tar.gz
ports-9b6acf4966e3aacaac895c6235718cad210e8d58.zip
Notes
Diffstat (limited to 'security/sudo')
-rw-r--r--security/sudo/pkg-install9
-rw-r--r--security/sudo/pkg-plist2
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