2013-04-18 14:44:30 +02:00
|
|
|
# Created by: Ganael LAPLANCHE <ganael.laplanche@martymac.org>
|
2005-10-17 02:10:24 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ldapscripts
|
2013-09-10 15:59:30 +02:00
|
|
|
PORTVERSION= 2.0.5
|
2013-11-27 08:36:27 +01:00
|
|
|
PORTREVISION= 1
|
2005-10-17 02:10:24 +02:00
|
|
|
CATEGORIES= net
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
|
2010-09-07 17:52:18 +02:00
|
|
|
http://contribs.martymac.org/ldapscripts/
|
2005-10-17 02:10:24 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2010-09-27 14:08:23 +02:00
|
|
|
MAINTAINER= martymac@FreeBSD.org
|
2005-10-17 02:10:24 +02:00
|
|
|
COMMENT= Scripts to manage posix accounts in an OpenLDAP directory
|
|
|
|
|
2012-06-15 11:57:55 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2010-10-01 11:14:47 +02:00
|
|
|
RUN_DEPENDS= ldapadd:${PORTSDIR}/net/openldap${OPENLDAP_VER}-client \
|
|
|
|
ldapsearch:${PORTSDIR}/net/openldap${OPENLDAP_VER}-client \
|
|
|
|
ldapdelete:${PORTSDIR}/net/openldap${OPENLDAP_VER}-client \
|
|
|
|
ldapmodify:${PORTSDIR}/net/openldap${OPENLDAP_VER}-client \
|
|
|
|
ldapmodrdn:${PORTSDIR}/net/openldap${OPENLDAP_VER}-client \
|
|
|
|
ldappasswd:${PORTSDIR}/net/openldap${OPENLDAP_VER}-client
|
2005-10-17 02:10:24 +02:00
|
|
|
|
2010-10-01 11:14:47 +02:00
|
|
|
USE_OPENLDAP= yes
|
2013-04-27 13:59:28 +02:00
|
|
|
USES= iconv
|
2011-02-08 12:27:33 +01:00
|
|
|
LIBDIR= ${PREFIX}/lib/${PORTNAME}
|
2008-08-15 01:00:00 +02:00
|
|
|
MAKE_ENV+= MANDIR=${MANPREFIX}/man \
|
|
|
|
ETCDIR=${ETCDIR}
|
|
|
|
|
2013-11-27 08:36:27 +01:00
|
|
|
SUB_FILES= pkg-message
|
2006-01-08 01:23:03 +01:00
|
|
|
|
2010-11-18 10:12:41 +01:00
|
|
|
PORTDOCS= README CHANGELOG VERSION TODO
|
2007-09-05 17:47:54 +02:00
|
|
|
|
2008-08-15 01:00:00 +02:00
|
|
|
# Unset 'all' target set by default to 'help'
|
|
|
|
# and set paths to OpenLDAP binaries
|
2005-10-17 02:10:24 +02:00
|
|
|
post-patch:
|
2008-08-15 01:00:00 +02:00
|
|
|
${REINPLACE_CMD} "s|^all:.*|all:|g" ${WRKSRC}/Makefile
|
2009-07-08 09:16:03 +02:00
|
|
|
${REINPLACE_CMD} "s|^PREFIX = .*|PREFIX = ${PREFIX}|g" ${WRKSRC}/Makefile
|
2008-08-18 02:32:31 +02:00
|
|
|
${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
|
2007-09-05 17:47:54 +02:00
|
|
|
|
2008-08-15 01:00:00 +02:00
|
|
|
# Install remaining stuff
|
|
|
|
post-install:
|
2013-11-27 08:36:27 +01:00
|
|
|
@${RM} ${STAGEDIR}${ETCDIR}/ldapscripts.conf \
|
|
|
|
${STAGEDIR}${ETCDIR}/ldapscripts.passwd
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2007-10-13 16:57:21 +02:00
|
|
|
|
2005-10-17 02:10:24 +02:00
|
|
|
.include <bsd.port.mk>
|