aboutsummaryrefslogtreecommitdiff
path: root/security/sudo
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2006-04-28 19:34:09 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2006-04-28 19:34:09 +0000
commitefe8790d7037434dddc479b9bd39d7bd92913022 (patch)
treefc834509450556da5894445f8628374191acb221 /security/sudo
parent99b7c72fe6ee0f9cdfee9a9c5a3f320f0e91ccf6 (diff)
downloadports-efe8790d7037434dddc479b9bd39d7bd92913022.tar.gz
ports-efe8790d7037434dddc479b9bd39d7bd92913022.zip
Notes
Diffstat (limited to 'security/sudo')
-rw-r--r--security/sudo/Makefile12
-rw-r--r--security/sudo/pkg-message19
2 files changed, 30 insertions, 1 deletions
diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index 6fb85944b27f..ecfa69dbfe11 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -24,7 +24,6 @@ DISTNAME= ${PORTNAME}-1.6.8p12
MAINTAINER= mharo@FreeBSD.org
COMMENT= Allow others to run commands as root
-USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
@@ -36,8 +35,18 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--with-long-otp-prompt \
--with-pam
+OPTIONS= LDAP "With LDAP support" off \
+ OPIE "With OPIE support" off \
+ SHELL_SETS_HOME "Set $HOME to target user in shell mode" off
+
.include <bsd.port.pre.mk>
+.if defined(WITH_LDAP)
+USE_OPENLDAP=yes
+CONFIGURE_ARGS+=--with-ldap=${PREFIX}
+CONFIGURE_ARGS+=--with-ldap-conf-file=${PREFIX}/etc/ldap.conf
+.endif
+
.if defined(WITH_OPIE) || ${OSVERSION} > 500021
CONFIGURE_ARGS+=--with-opie
.else
@@ -59,5 +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}
.include <bsd.port.post.mk>
diff --git a/security/sudo/pkg-message b/security/sudo/pkg-message
new file mode 100644
index 000000000000..4d615b52f130
--- /dev/null
+++ b/security/sudo/pkg-message
@@ -0,0 +1,19 @@
+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
+=====================================================================