aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/nss_ldap/Makefile12
-rw-r--r--net/nss_ldap/files/pkg-message.in (renamed from net/nss_ldap/pkg-message)0
2 files changed, 10 insertions, 2 deletions
diff --git a/net/nss_ldap/Makefile b/net/nss_ldap/Makefile
index 089ea82a1715..aafa13297cd4 100644
--- a/net/nss_ldap/Makefile
+++ b/net/nss_ldap/Makefile
@@ -15,6 +15,8 @@ DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION}
MAINTAINER= mikeg@bsd-box.net
COMMENT= RFC 2307 NSS module
+LICENSE= GPLv2
+
NSS_LDAP_VERSION=265
GNU_CONFIGURE= yes
@@ -23,7 +25,7 @@ USE_AUTOTOOLS= automake:19 aclocal:19 autoconf:262 autoheader:262
USE_LDCONFIG= yes
USE_OPENLDAP= yes
-OPTIONS= LCLASS "Enable login classes via the loginClass attribute" on
+OPTIONS= LCLASS "Enable login classes via the loginClass attribute" on
PLIST_FILES= etc/nss_ldap.conf.sample \
lib/nss_ldap.so.1
@@ -38,6 +40,8 @@ CONFIGURE_ARGS= --with-ldap-conf-file=${PREFIX}/etc/nss_ldap.conf \
MAN5= nss_ldap.5
+SUB_FILES= pkg-message
+
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_KERBEROS)
CONFIGURE_ARGS+=--enable-configurable-krb5-ccname-env
@@ -56,6 +60,10 @@ do-install:
@${REINPLACE_CMD} 's,/etc/ldap.,${PREFIX}/etc/nss_ldap.,g' \
${WRKSRC}/${MAN5}
${INSTALL_MAN} ${WRKSRC}/${MAN5} ${MAN5PREFIX}/man/man5
- ${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
+
+post-install:
+.if !defined(PACKAGE_BUILDING)
+ @${CAT} ${PKGMESSAGE}
+.endif
.include <bsd.port.post.mk>
diff --git a/net/nss_ldap/pkg-message b/net/nss_ldap/files/pkg-message.in
index d3948e1d1302..d3948e1d1302 100644
--- a/net/nss_ldap/pkg-message
+++ b/net/nss_ldap/files/pkg-message.in