mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
519578a6d2
PR: 210994 Submitted by: dewayne@heuristicsystems.com.au
59 lines
2.1 KiB
Makefile
59 lines
2.1 KiB
Makefile
# Created by: Ganael LAPLANCHE <ganael.laplanche@martymac.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ldapscripts
|
|
PORTVERSION= 2.0.7
|
|
CATEGORIES= net
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
|
|
http://contribs.martymac.org/ldapscripts/
|
|
|
|
MAINTAINER= martymac@FreeBSD.org
|
|
COMMENT= Scripts to manage posix accounts in an OpenLDAP directory
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= ldapadd:net/openldap${OPENLDAP_VER}${OPENLDAP_FLAVOUR}-client \
|
|
ldapsearch:net/openldap${OPENLDAP_VER}${OPENLDAP_FLAVOUR}-client \
|
|
ldapdelete:net/openldap${OPENLDAP_VER}${OPENLDAP_FLAVOUR}-client \
|
|
ldapmodify:net/openldap${OPENLDAP_VER}${OPENLDAP_FLAVOUR}-client \
|
|
ldapmodrdn:net/openldap${OPENLDAP_VER}${OPENLDAP_FLAVOUR}-client \
|
|
ldappasswd:net/openldap${OPENLDAP_VER}${OPENLDAP_FLAVOUR}-client
|
|
|
|
OPTIONS_DEFINE= SASL
|
|
SASL_VARS= OPENLDAP_FLAVOUR=-sasl WANT_OPENLDAP_SASL=yes
|
|
|
|
NO_ARCH= yes
|
|
USE_OPENLDAP= yes
|
|
USES= iconv tar:tgz
|
|
LIBDIR= ${PREFIX}/lib/${PORTNAME}
|
|
MAKE_ENV+= MANDIR=${MANPREFIX}/man \
|
|
ETCDIR=${ETCDIR}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PORTDOCS= README CHANGELOG VERSION TODO
|
|
|
|
# Unset 'all' target set by default to 'help'
|
|
# and set paths to OpenLDAP binaries
|
|
post-patch:
|
|
${REINPLACE_CMD} "s|^all:.*|all:|g" ${WRKSRC}/Makefile
|
|
${REINPLACE_CMD} "s|^PREFIX = .*|PREFIX = ${PREFIX}|g" ${WRKSRC}/Makefile
|
|
${REINPLACE_CMD} \
|
|
-e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${LOCALBASE}/bin/ldapsearch\"|g" \
|
|
-e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${LOCALBASE}/bin/ldapadd\"|g" \
|
|
-e "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${LOCALBASE}/bin/ldapdelete\"|g" \
|
|
-e "s|^LDAPMODIFYBIN=.*|LDAPMODIFYBIN=\"${LOCALBASE}/bin/ldapmodify\"|g" \
|
|
-e "s|^LDAPMODRDNBIN=.*|LDAPMODRDNBIN=\"${LOCALBASE}/bin/ldapmodrdn\"|g" \
|
|
-e "s|^LDAPPASSWDBIN=.*|LDAPPASSWDBIN=\"${LOCALBASE}/bin/ldappasswd\"|g" \
|
|
-e "s|^ICONVBIN=.*|ICONVBIN=\"${LOCALBASE}/bin/iconv\"|g" \
|
|
${WRKSRC}/etc/ldapscripts.conf
|
|
|
|
# Install remaining stuff
|
|
post-install:
|
|
@${RM} ${STAGEDIR}${ETCDIR}/ldapscripts.conf \
|
|
${STAGEDIR}${ETCDIR}/ldapscripts.passwd
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|