svn commit: r339768 - head/net/yptransitd
Vanilla I. Shu
vanilla at FreeBSD.org
Wed Jan 15 09:12:08 UTC 2014
Author: vanilla
Date: Wed Jan 15 09:12:07 2014
New Revision: 339768
URL: http://svnweb.freebsd.org/changeset/ports/339768
QAT: https://qat.redports.org/buildarchive/r339768/
Log:
1: Support CC/CFLAGS properly
2: Add LICENSE
3: support stagedir.
PR: ports/185710
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Modified:
head/net/yptransitd/Makefile
head/net/yptransitd/pkg-plist
Modified: head/net/yptransitd/Makefile
==============================================================================
--- head/net/yptransitd/Makefile Wed Jan 15 08:48:46 2014 (r339767)
+++ head/net/yptransitd/Makefile Wed Jan 15 09:12:07 2014 (r339768)
@@ -3,27 +3,44 @@
PORTNAME= yptransitd
PORTVERSION= 0.5
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= net
MASTER_SITES= SF
MAINTAINER= ports at FreeBSD.org
-COMMENT= A replacement for nss_ldap
+COMMENT= Replacement for nss_ldap
+
+LICENSE= BSD
+LICENSE_FILE= ${WRKSRC}/LICENSE
-USE_OPENLDAP= yes
USES= bison
-USE_LDCONFIG= yes
+USE_OPENLDAP= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--with-ldap-prefix=${LOCALBASE}
+CONFIGURE_ARGS= --with-ldap-prefix=${LOCALBASE}
+USE_LDCONFIG= yes
+MAKE_JOBS_UNSAFE= yes
+
+PLIST_FILES= %%ETCDIR%%/ldap.conf %%ETCDIR%%/modules/ldap.so \
+ %%ETCDIR%%/yptransitd.conf sbin/yptransitd
+PLIST_DIRS= %%ETCDIR%%/modules %%ETCDIR%%
-NO_STAGE= yes
post-patch:
+ @${REINPLACE_CMD} -e 's, $$(CONFDIR), $${DESTDIR}$$(CONFDIR),' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's,=gcc,=@CC@,' \
+ ${WRKSRC}/lib/Makefile.in
+ @${REINPLACE_CMD} -e 's,-O2 -g, at CFLAGS@, ; \
+ s, $${BINDIR}, $${DESTDIR}$${BINDIR},' \
+ ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -E 's,^([[:blank:]]+)\([^\)]+\) ,\1,' \
${WRKSRC}/src/modules.c
+ @${REINPLACE_CMD} -e 's,-O2 -g, at CFLAGS@, ; \
+ s, $$(CONFDIR), $${DESTDIR}$$(CONFDIR),' \
+ ${WRKSRC}/src/modules/ldap/Makefile.in
@${REINPLACE_CMD} -e 's,(void \*) ,,g' \
${WRKSRC}/src/modules/ldap/cache.c
-post-install:
- @${CAT} ${PKGMESSAGE}
+pre-install:
+ @${MKDIR} ${STAGEDIR}${ETCDIR}/modules
.include <bsd.port.mk>
Modified: head/net/yptransitd/pkg-plist
==============================================================================
--- head/net/yptransitd/pkg-plist Wed Jan 15 08:48:46 2014 (r339767)
+++ head/net/yptransitd/pkg-plist Wed Jan 15 09:12:07 2014 (r339768)
@@ -1,6 +0,0 @@
-etc/yptransitd/yptransitd.conf
-sbin/yptransitd
-etc/yptransitd/modules/ldap.so
-etc/yptransitd/ldap.conf
- at dirrm etc/yptransitd/modules
- at dirrm etc/yptransitd
More information about the svn-ports-all
mailing list