aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-04-29 03:34:09 +0800
committersem <sem@FreeBSD.org>2006-04-29 03:34:09 +0800
commite0cc77011e87bbbcf74148c37cfdab2cd6529ea5 (patch)
tree4981b529cbed44d6fe33f2acd5a599af502f926c /security
parent9127147b898c6d34bc6d12bd66328bb9db6a8397 (diff)
downloadfreebsd-ports-gnome-e0cc77011e87bbbcf74148c37cfdab2cd6529ea5.tar.gz
freebsd-ports-gnome-e0cc77011e87bbbcf74148c37cfdab2cd6529ea5.tar.zst
freebsd-ports-gnome-e0cc77011e87bbbcf74148c37cfdab2cd6529ea5.zip
- Add LDAP support (off by default)
- OPTIONS'fy - Remove obsoleted USE_REINPLACE PR: ports/95598 Submitted by: Dmitriy Kirhlarov <dkirhlarov@localhost.oilspace.com> Approved by: maintainer timeout (2 weeks)
Diffstat (limited to 'security')
-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
+=====================================================================