mirror of
https://git.freebsd.org/ports.git
synced 2025-05-22 03:45:17 -04:00
Convert the USE_LDAP=yes to USES=ldap and adds the following features: - Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as RUN_DEPENDS - Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER - Adds OPENLDAP versions in bsd.default-versions.mk - Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk - Changes consumers to use the features Reviewed by: delphij Approved by: portmgr Differential Revision: https://reviews.freebsd.org/D38233
49 lines
1.6 KiB
Makefile
49 lines
1.6 KiB
Makefile
PORTNAME= ldapscripts
|
|
PORTVERSION= 2.0.8
|
|
PORTREVISION= 1
|
|
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
|
|
WWW= https://contribs.martymac.org
|
|
|
|
LICENSE= GPLv2
|
|
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= SASL DOCS
|
|
|
|
USES= iconv ldap 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>
|