ports/166810: [MAINTAINER-UPDATE] net/nss-pam-ldapd: update to 0.8.6_1
Mel Flynn
rflynn at acsalaska.net
Thu Apr 12 01:30:18 UTC 2012
The following reply was made to PR ports/166810; it has been noted by GNATS.
From: Mel Flynn <rflynn at acsalaska.net>
To: bug-followup at FreeBSD.org, rflynn at acsalaska.net
Cc:
Subject: Re: ports/166810: [MAINTAINER-UPDATE] net/nss-pam-ldapd: update to
0.8.6_1
Date: Thu, 12 Apr 2012 03:20:30 +0200
This is a multi-part message in MIME format.
--------------020901090201000807040000
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Updated patch. Original submission contained a stray backslash at end of
line, preventing WITH_SASL to be set by slave port.
Buildlogs:
https://redports.org/buildarchive/20120411030154-22731/
https://redports.org/buildarchive/20120411030856-27423/
--
Mel
--------------020901090201000807040000
Content-Type: text/plain; charset=windows-1252;
name="nss-pam-ldapd-0.8.6_1.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="nss-pam-ldapd-0.8.6_1.patch"
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/nss-pam-ldapd/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile 1 Apr 2012 17:04:27 -0000 1.13
+++ Makefile 11 Apr 2012 03:00:19 -0000
@@ -7,12 +7,13 @@
PORTNAME= nss-pam-ldapd
PORTVERSION= 0.8.6
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://arthurdejong.org/nss-pam-ldapd/ \
http://static.ipfw.ru/files/
-MAINTAINER= rflynn at acsalaska.net
-COMMENT= Advanced fork of nss_ldap
+MAINTAINER?= rflynn at acsalaska.net
+COMMENT?= Advanced fork of nss_ldap
LICENSE= LGPL21 LGPL3
LICENSE_COMB= dual
@@ -23,12 +24,21 @@
USE_RC_SUBR= nslcd
PAM_LDAP_SHMAJOR= 1
NSS_LDAP_SHMAJOR= 1
+PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_FILES+= pkg-message
NSLCD_PIDFILE?= /var/run/nslcd.pid
NSLCD_SOCKET?= /var/run/nslcd.ctl
+.if defined(SLAVE_PORT)
+OPTIONS= PAM "Build pam_ldap" on \
+ NSS "Build nss support" on
+WITH_SASL=yes
+.else
OPTIONS= SASL "Enable SASL" off \
+ NSS "Build nss support" on \
PAM "Build pam_ldap" on
+.endif
USERS= nslcd
GROUPS= nslcd
@@ -45,7 +55,8 @@
CONFIG_FILE= "nslcd.conf"
CONFIGURE_ARGS+= --with-ldap-conf-file=${PREFIX}/etc/${CONFIG_FILE}
-PLIST_SUB+= CONFIG=${CONFIG_FILE}
+PLIST_SUB+= CONFIG="${CONFIG_FILE}"
+SUB_LIST+= CONFIG_FILE="${PREFIX}/etc/${CONFIG_FILE}"
.if defined(WITH_SASL)
WANT_OPENLDAP_SASL= yes
@@ -69,12 +80,17 @@
.if defined(WITHOUT_NSS)
CONFIGURE_ARGS+= --disable-nss
PLIST_SUB+= NSS="@comment "
+SUB_LIST+= NSS_MESSAGE=""
.else
CONFIGURE_ARGS+= --enable-nss
CONFLICTS+= nss_ldap-1.*
PLIST_SUB+= NSS=""
+SUB_LIST+= NSS_MESSAGE="WARNING: Be sure to set uid and gid configuration parameters to make nslcd run under unprivileged user."
.endif
+# Won't hook this in to OPTIONS until PADL ports are at least DEPRECATED.
+# It doesn't do the software any good to run as replacement for the PADL ports
+# without running the daemon.
.if defined(WITHOUT_NSLCD)
CONFIGURE_ARGS+= --disable-nslcd
PLIST_SUB+= NSLCD="@comment "
@@ -85,13 +101,21 @@
MAN8+= nslcd.8
.endif
+.if defined(WITHOUT_NSS) && defined(WITHOUT_PAM)
+BROKEN= Software is useless if both NSS and PAM are disabled.\
+ Rerun 'make config' or 'portmaster --force-config'.
+.endif
+
post-extract:
@${REINPLACE_CMD} -e 's/\(INSTALL_\)\(.*\)) -D /\1\2) /' ${WRKSRC}/Makefile.in ${WRKSRC}/nss/Makefile.in
post-configure:
${REINPLACE_CMD} -e 's/^\(CFLAGS.*\) \-O2 \(.*\)$$/\1 -O0 \2/' ${WRKSRC}/nss/Makefile
-post-install:
+show-pkgmessage::
+ @${ECHO_CMD}; cat ${PKGMESSAGE} | fmt 75 79; ${ECHO_CMD}
+
+post-install: show-pkgmessage
.if !defined(WITHOUT_NSS)
@cd ${PREFIX}/lib && ${LN} -fs nss_ldap.so.${NSS_LDAP_SHMAJOR} \
nss_ldap.so
@@ -100,18 +124,5 @@
@cd ${PREFIX}/lib && ${LN} -fs pam_ldap.so.${PAM_LDAP_SHMAJOR} \
pam_ldap.so
.endif
- @${ECHO_MSG}
- @${ECHO_MSG} =====================================================================
- @${ECHO_MSG}
- @${ECHO_MSG} " LDAP configuration: ${PREFIX}/etc/${CONFIG_FILE}"
- @${ECHO_MSG} " Sample configuration: ${PREFIX}/etc/${CONFIG_FILE}.sample"
- @${ECHO_MSG}
-.if !defined(WITHOUT_NSS)
- @${ECHO_MSG} " WARNING: Be sure to set uid and gid configuration parameters"
- @${ECHO_MSG} " WARNING: to make nslcd run under unprivileged user"
-.endif
- @${ECHO_MSG}
- @${ECHO_MSG} =====================================================================
- @${ECHO_MSG}
.include <bsd.port.mk>
Index: files/pkg-message.in
===================================================================
RCS file: files/pkg-message.in
diff -N files/pkg-message.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/pkg-message.in 7 Apr 2012 17:45:06 -0000
@@ -0,0 +1,12 @@
+=====================================================================
+
+LDAP and nslcd daemon parameters should be set in %%CONFIG_FILE%%. When upgrading review %%CONFIG_FILE%%.sample for additional or changed parameters.
+
+%%NSS_MESSAGE%%
+
+To start nslcd add nslcd_enable="YES" to /etc/rc.conf and run:
+
+ # service nslcd start
+
+See the comments in %%PREFIX%%/etc/rc.d/nslcd for additional tunables.
+=====================================================================
--------------020901090201000807040000--
More information about the freebsd-ports-bugs
mailing list