Files
ports/net/yptransitd/Makefile
T
Alexey Dokuchaev 262b2a3ac1 Split the patch in the "context diff" format added pack in r130923 which
no longer applies by modern FreeBSD patch(1).  Patch was applied on the
FreeBSD 8.4 and new patches generated with ``make makepatch''.  Repocopy
was waived since three-way split would make the diff unnecessarily noisy
and there's not much history to preserve anyways as the patch had not
been modified since its inception.  While here, unbreak the build against
modern compilers (Clang 11, GCC 10) by forcing the `-fcommon' mode.

Reported by:	pkg-fallout
2020-09-01 08:17:28 +00:00

46 lines
1.2 KiB
Makefile

# Created by: Michael Joyner <mjoyner@hq.dyns.cx>
# $FreeBSD$
PORTNAME= yptransitd
PORTVERSION= 0.5
PORTREVISION= 7
CATEGORIES= net
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Replacement for nss_ldap
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= bison
USE_OPENLDAP= yes
GNU_CONFIGURE= yes
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
post-patch:
@${REINPLACE_CMD} -e 's, \($$([A-Z]*DIR)\), $${DESTDIR}\1,g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's,=gcc,=@CC@,' \
${WRKSRC}/lib/Makefile.in
@${REINPLACE_CMD} -e 's,-O2 -g,@CFLAGS@ -fcommon, ; \
s, $${BINDIR}, $${DESTDIR}$${BINDIR},' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -E 's,^([[:blank:]]+)\([^\)]+\) ,\1,' \
${WRKSRC}/src/modules.c
@${REINPLACE_CMD} -e 's,-O2 -g,@CFLAGS@, ; \
s, $$(CONFDIR), $${DESTDIR}$$(CONFDIR),' \
${WRKSRC}/src/modules/ldap/Makefile.in
@${REINPLACE_CMD} -e 's,(void \*) ,,g' \
${WRKSRC}/src/modules/ldap/cache.c
pre-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}/modules
.include <bsd.port.mk>