aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2007-04-10 12:47:09 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2007-04-10 12:47:09 +0000
commit8e649aef1dcc52930d437f8eb2fac8f09b025092 (patch)
tree3ddba21b2092ccf838ae32822fb1011a61f6bacd /security
parent0eddb1a32def32cc3d2f3b5cdbbdbd035362444c (diff)
downloadports-8e649aef1dcc52930d437f8eb2fac8f09b025092.tar.gz
ports-8e649aef1dcc52930d437f8eb2fac8f09b025092.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/sudo/Makefile4
-rw-r--r--security/sudo/files/pam.conf17
-rw-r--r--security/sudo/pkg-message19
-rw-r--r--security/sudo/pkg-plist1
4 files changed, 20 insertions, 21 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index 9c060becbd5f..6060e3741426 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sudo
PORTVERSION= 1.6.8.12
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://www.sudo.ws/sudo/dist/ \
http://probsd.org/sudoftp/ \
@@ -68,6 +68,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${PREFIX}/etc/sudoers.sample
${INSTALL_DATA} ${WRKSRC}/sudoers ${PREFIX}/etc/sudoers.default
${RM} ${PREFIX}/libexec/sudo_noexec.la
- ${CAT} ${PKGMESSAGE}
+ ${INSTALL_DATA} ${FILESDIR}/pam.conf ${PREFIX}/etc/pam.d/sudo
.include <bsd.port.post.mk>
diff --git a/security/sudo/files/pam.conf b/security/sudo/files/pam.conf
new file mode 100644
index 000000000000..8741b86047c5
--- /dev/null
+++ b/security/sudo/files/pam.conf
@@ -0,0 +1,17 @@
+#
+# $Id$
+#
+# PAM configuration for the "sudo" service
+#
+
+# auth
+auth include system
+
+# account
+account include system
+
+# session
+session include system
+
+# password
+password include system
diff --git a/security/sudo/pkg-message b/security/sudo/pkg-message
deleted file mode 100644
index 4d615b52f130..000000000000
--- a/security/sudo/pkg-message
+++ /dev/null
@@ -1,19 +0,0 @@
-If you store accounts in external place and want to use password
-authentication for sudo, you must create /etc/pam.d/sudo file like:
-
-=====================================================================
-#
-# PAM configuration for the "sudoers" service
-#
-# auth
-auth include system
-
-# account
-account include system
-
-# session
-session include system
-
-# password
-password include system
-=====================================================================
diff --git a/security/sudo/pkg-plist b/security/sudo/pkg-plist
index 97a00ff23990..9b5a215bd1a3 100644
--- a/security/sudo/pkg-plist
+++ b/security/sudo/pkg-plist
@@ -1,6 +1,7 @@
@unexec if cmp -s %D/etc/sudoers %D/etc/sudoers.default; then rm -f %D/etc/sudoers; fi
bin/sudo
bin/sudoedit
+etc/pam.d/sudo
etc/sudoers.default
etc/sudoers.sample
libexec/sudo_noexec.so