Fix Openldap dependency :

- Add a missing USE_OPENLDAP
- Remove useless tests regarding WANT_OPENLDAP_VER value
- Re-order options to make portlint happy

Approved by:	ehaupt (mentor)
This commit is contained in:
Ganael LAPLANCHE 2010-10-01 09:14:47 +00:00
parent 8cccb89565
commit e0d43f9eb6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=262239

View File

@ -7,27 +7,23 @@
PORTNAME= ldapscripts
PORTVERSION= 1.9.0
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
http://contribs.martymac.org/ldapscripts/
EXTRACT_SUFX= .tgz
MAINTAINER= martymac@FreeBSD.org
COMMENT= Scripts to manage posix accounts in an OpenLDAP directory
WANT_OPENLDAP_VER?= 23
.if (${WANT_OPENLDAP_VER} != 21) && (${WANT_OPENLDAP_VER} != 22) && (${WANT_OPENLDAP_VER} != 23) && (${WANT_OPENLDAP_VER} != 24)
BROKEN= Incompatible OpenLDAP version: ${WANT_OPENLDAP_VER}
.endif
RUN_DEPENDS= ldapadd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
ldapsearch:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
ldapdelete:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
ldapmodify:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
ldapmodrdn:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
ldappasswd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client
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
USE_OPENLDAP= yes
USE_ICONV= yes
LIBDIR=${PREFIX}/lib/${PORTNAME}
MAKE_ENV+= MANDIR=${MANPREFIX}/man \