From 338eecf23761d8a27351a0657ead88ab54a8f9da Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Sun, 27 Oct 2013 22:29:46 +0000 Subject: - use STAGEDIR - use OPTIONS_DEFINE --- net/tinyldap/Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'net/tinyldap') diff --git a/net/tinyldap/Makefile b/net/tinyldap/Makefile index f7cb747871da..e4816943a7c7 100644 --- a/net/tinyldap/Makefile +++ b/net/tinyldap/Makefile @@ -14,15 +14,11 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libowfat.a:${PORTSDIR}/${LIBOWFAT_PORT} LICENSE= GPLv2 -NO_STAGE= yes - SNAPSHOT= 20091122 USE_BZIP2= yes USE_GMAKE= yes WRKSRC= ${WRKDIR}/${PORTNAME} CFLAGS+= -DATTRIBS=512 -LIBOWFAT_PORT?= devel/libowfat -TINYLDAP_DATA?= ${PREFIX}/tinyldap/data SBINFILES= acl addindex bindrequest dumpacls dumpidx idx2ldif parse \ tinyldap_debug tinyldap_standalone BINFILES= ldapclient ldapclient_str md5password mysql2ldif \ @@ -30,24 +26,29 @@ BINFILES= ldapclient ldapclient_str md5password mysql2ldif \ DOCFILES= ACL FORMAT GETTING.STARTED README README.security RFCs \ THANKS TODO +LIBOWFAT_PORT?= devel/libowfat +TINYLDAP_DATA?= ${PREFIX}/tinyldap/data + +.include + post-patch: ${TOUCH} ${WRKSRC}/alloca.h ${REINPLACE_CMD} -e "s|\"data\"|\"${TINYLDAP_DATA}\"|" \ ${WRKSRC}/tinyldap.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/tinyldap ${PREFIX}/libexec/ + ${INSTALL_PROGRAM} ${WRKSRC}/tinyldap ${STAGEDIR}${PREFIX}/libexec/ ${CP} -p ${WRKSRC}/ldapdelete ${WRKSRC}/tinyldapdelete .for i in ${BINFILES} - ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/bin/ .endfor .for i in ${SBINFILES} - ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/sbin/ + ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/sbin/ .endfor -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${DOCFILES} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/ .endfor .endif -- cgit v1.2.3