1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/net/tinyldap/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

58 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= tinyldap
PORTVERSION= 0.0.${SNAPSHOT}
PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.dinoex.de/pub/tinyldap/
DISTNAME= ${PORTNAME}-${SNAPSHOT}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A small LDAP implementation
BUILD_DEPENDS+= ${LOCALBASE}/lib/libowfat.a:${PORTSDIR}/${LIBOWFAT_PORT}
LICENSE= GPLv2
SNAPSHOT= 20091122
USES= gmake
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
CFLAGS+= -DATTRIBS=512
SBINFILES= acl addindex bindrequest dumpacls dumpidx idx2ldif parse \
tinyldap_debug tinyldap_standalone
BINFILES= ldapclient ldapclient_str md5password mysql2ldif \
tinyldapdelete
DOCFILES= ACL FORMAT GETTING.STARTED README README.security RFCs \
THANKS TODO
LIBOWFAT_PORT?= devel/libowfat
TINYLDAP_DATA?= ${PREFIX}/tinyldap/data
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
${TOUCH} ${WRKSRC}/alloca.h
${REINPLACE_CMD} -e "s|\"data\"|\"${TINYLDAP_DATA}\"|" \
${WRKSRC}/tinyldap.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tinyldap ${STAGEDIR}${PREFIX}/libexec/
${CP} -p ${WRKSRC}/ldapdelete ${WRKSRC}/tinyldapdelete
.for i in ${BINFILES}
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/bin/
.endfor
.for i in ${SBINFILES}
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/sbin/
.endfor
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
.endif
.include <bsd.port.mk>