diff options
author | bapt <bapt@FreeBSD.org> | 2010-09-04 00:43:08 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2010-09-04 00:43:08 +0800 |
commit | 42e0a7bd4ded9583dd3ff82096272623c9a67298 (patch) | |
tree | cab7a091b85e72dde1cf8d4b4f80dc6ee0161b89 /net | |
parent | 0204097f7fcc8d5d092496f1381981a7f6a52368 (diff) | |
download | freebsd-ports-gnome-42e0a7bd4ded9583dd3ff82096272623c9a67298.tar.gz freebsd-ports-gnome-42e0a7bd4ded9583dd3ff82096272623c9a67298.tar.zst freebsd-ports-gnome-42e0a7bd4ded9583dd3ff82096272623c9a67298.zip |
- 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 <venture37 _at_ geeklan.co.uk>
Approved by: Michael Graziano <mikeg _at_ bsd-box.net> (maintainer)
Diffstat (limited to 'net')
-rw-r--r-- | net/nss_ldap/Makefile | 12 | ||||
-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 |