summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/nss_ldapd/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/nss_ldapd/Makefile b/net/nss_ldapd/Makefile
index aafc9e8305c4..275e0d17cb27 100644
--- a/net/nss_ldapd/Makefile
+++ b/net/nss_ldapd/Makefile
@@ -26,7 +26,8 @@ NSLCD_SOCKET?= /var/run/nslcd.ctl
OPTIONS= NSS_COMPAT "Enable nss_ldap compatibility" on \
SASL "Enable SASL" off \
- PAM "Build pam_ldap" on
+ PAM "Build pam_ldap" on \
+ PROMPT "Display only Password: instaed of LDAP Password:" off
USERS= nslcd
GROUPS= nslcd
@@ -92,6 +93,11 @@ MAN5+= nslcd.conf.5
MAN8+= nslcd.8
.endif
+.if defined(WITH_PROMPT)
+post-patch:
+ @${REINPLACE_CMD} -e 's|i==0?"Password: ":"LDAP Password: "|"Password: "|' ${WRKSRC}/pam/pam.c
+.endif
+
post-extract:
@${REINPLACE_CMD} -e 's/\(INSTALL_\)\(.*\)) -D /\1\2) /' ${WRKSRC}/Makefile.in ${WRKSRC}/nss/Makefile.in
@${REINPLACE_CMD} -e 's/shadow.$$(OBJEXT)/shadow.$$(OBJEXT) bsdnss.$$(OBJEXT)/;s/shadow\.c/shadow.c bsdnss.c/;s/exports\.linux/exports.freebsd/' ${WRKSRC}/nss/Makefile.in