From 42e0a7bd4ded9583dd3ff82096272623c9a67298 Mon Sep 17 00:00:00 2001 From: bapt Date: Fri, 3 Sep 2010 16:43:08 +0000 Subject: - Use SUB_FILES instead of invoking sed manually to change pkg-message - Replaces spaces with a tab after OPTIONS - While here add LICENSE PR: ports/148925 Submitted by: Sevan Janiyan Approved by: Michael Graziano (maintainer) --- net/nss_ldap/Makefile | 12 ++++++++++-- net/nss_ldap/files/pkg-message.in | 15 +++++++++++++++ net/nss_ldap/pkg-message | 15 --------------- 3 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 net/nss_ldap/files/pkg-message.in delete mode 100644 net/nss_ldap/pkg-message (limited to 'net/nss_ldap') 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 .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 diff --git a/net/nss_ldap/files/pkg-message.in b/net/nss_ldap/files/pkg-message.in new file mode 100644 index 000000000000..d3948e1d1302 --- /dev/null +++ b/net/nss_ldap/files/pkg-message.in @@ -0,0 +1,15 @@ +===================================================================== +The nss_ldap module expects to find its configuration files at the +following paths: + +LDAP configuration: %%PREFIX%%/etc/nss_ldap.conf +LDAP secret (optional): %%PREFIX%%/etc/nss_ldap.secret + + +WARNING: For users of previous versions of this port: +WARNING: +WARNING: Previous versions of this port expected configuration files +WARNING: to be located at /etc/ldap.conf and /etc/ldap.secret. You +WARNING: may need to move these configuration files to their new +WARNING: location specified above. +===================================================================== diff --git a/net/nss_ldap/pkg-message b/net/nss_ldap/pkg-message deleted file mode 100644 index d3948e1d1302..000000000000 --- a/net/nss_ldap/pkg-message +++ /dev/null @@ -1,15 +0,0 @@ -===================================================================== -The nss_ldap module expects to find its configuration files at the -following paths: - -LDAP configuration: %%PREFIX%%/etc/nss_ldap.conf -LDAP secret (optional): %%PREFIX%%/etc/nss_ldap.secret - - -WARNING: For users of previous versions of this port: -WARNING: -WARNING: Previous versions of this port expected configuration files -WARNING: to be located at /etc/ldap.conf and /etc/ldap.secret. You -WARNING: may need to move these configuration files to their new -WARNING: location specified above. -===================================================================== -- cgit