1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

Mk/**ldap.mk: Convert USE_LDAP to USES=ldap

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
This commit is contained in:
Muhammad Moinur Rahman 2023-02-08 04:50:40 -06:00
parent 77a73a3ae5
commit 6e1233be22
159 changed files with 275 additions and 336 deletions

109
Mk/Uses/ldap.mk Normal file
View File

@ -0,0 +1,109 @@
# Provide support for OpenLDAP
# Feature: ldap
# Usage: USES=ldap or USES=ldap:args
# Valid ARGS: <version>, client, server, (none)
#
# version If no version is given (by the maintainer via the port), try to
# find the currently installed version. Fall back to default if
# necessary (OpenLDAP-2.6 = 26, look at bsd.default-versions.mk for
# possible values).
# client Depends on the libldap library (default)
# server
# Depend on the server at runtime. If none of these is
# set, depends on the client.
#
# IGNORE_WITH_OPENLDAP
# This variable can be defined if the ports does not support one
# or more version of OpenLDAP.
# WITH_OPENLDAP_VER
# User defined variable to set OpenLDAP version.
# OPENLDAP_VER
# Detected OpenLDAP version.
#
# MAINTAINER: ports@FreeBSD.org
.if !defined(_INCLUDE_USES_LDAP_MK)
_INCLUDE_USES_LDAP_MK= yes
. if !empty(ldap_ARGS)
.undef _WANT_OPENLDAP_VER
.undef _WANT_OPENLDAP_SERVER
_OPENLDAP_ARGS= ${ldap_ARGS:S/,/ /g}
. if ${_OPENLDAP_ARGS:Mserver}
_WANT_OPENLDAP_SERVER= yes
_OPENLDAP_ARGS:= ${_OPENLDAP_ARGS:Nserver}
. endif
. if ${_OPENLDAP_ARGS:Mclient}
_WANT_OPENLDAP_CLIENT= yes
_OPENLDAP_ARGS:= ${_OPENLDAP_ARGS:Nclient}
. endif
# Port requested a version
. if !empty(_OPENLDAP_ARGS)
_WANT_OPENLDAP_VER= ${_OPENLDAP_ARGS}
. endif
. endif # !empty(ldap_ARGS)
. if defined(DEFAULT_OPENLDAP_VER)
WARNING+= "DEFAULT_OPENLDAP_VER is defined, consider using DEFAULT_VERSIONS=openldap=${DEFAULT_OPENLDAP_VER} instead"
. endif
DEFAULT_OPENLDAP_VER?= ${OPENLDAP_DEFAULT:S/.//}
# OpenLDAP client version currently supported.
# When adding a version, please keep the comment in
# Mk/bsd.default-versions.mk in sync.
# OpenLDAP client versions currently supported
OPENLDAP24_LIB= libldap-2.4.so.2
OPENLDAP25_LIB= libldap-2.5.so.0
OPENLDAP26_LIB= libldap.so.2
. if exists(${LOCALBASE}/bin/ldapwhoami)
_OPENLDAP_VER!= ${LOCALBASE}/bin/ldapwhoami -VV 2>&1 | ${GREP} ldapwhoami | ${SED} -E 's/.*OpenLDAP: ldapwhoami (2)\.([0-9]).*/\1\2/'
. endif
. if defined(WANT_OPENLDAP_VER)
. if defined(WITH_OPENLDAP_VER) && ${WITH_OPENLDAP_VER} != ${WANT_OPENLDAP_VER}
IGNORE= cannot install: the port wants openldap${WANT_OPENLDAP_VER}-client and you try to install openldap${WITH_OPENLDAP_VER}-client
. endif
OPENLDAP_VER= ${WANT_OPENLDAP_VER}
. elif defined(WITH_OPENLDAP_VER)
OPENLDAP_VER= ${WITH_OPENLDAP_VER}
. else
. if defined(_OPENLDAP_VER)
OPENLDAP_VER= ${_OPENLDAP_VER}
. else
OPENLDAP_VER= ${DEFAULT_OPENLDAP_VER}
. endif
. endif # WANT_OPENLDAP_VER
. if defined(_OPENLDAP_VER)
. if ${_OPENLDAP_VER} != ${OPENLDAP_VER}
IGNORE= cannot install: OpenLDAP versions mismatch: openldap${_OPENLDAP_VER}-client is installed and wanted version is openldap${OPENLDAP_VER}-client
. endif
. endif
CFLAGS+= -DLDAP_DEPRECATED
_OPENLDAP_CLIENT= net/openldap${OPENLDAP_VER}-client
_OPENLDAP_SERVER= net/openldap${OPENLDAP_VER}-server
# And now we are checking if we can use it
. if defined(OPENLDAP${OPENLDAP_VER}_LIB)
. if defined(IGNORE_WITH_OPENLDAP)
. for VER in ${IGNORE_WITH_OPENLDAP}
. if (${OPENLDAP_VER} == "${VER}")
IGNORE= cannot install: doesn't work with OpenLDAP version: ${OPENLDAP_VER} (Doesn't support OpenLDAP ${IGNORE_WITH_OPENLDAP})
. endif
. endfor
. endif # IGNORE_WITH_OPENLDAP
. if defined(_WANT_OPENLDAP_SERVER)
RUN_DEPENDS+= ${LOCALBASE}/libexec/slapd:${_OPENLDAP_SERVER}
. endif
. if defined(_WANT_OPENLDAP_CLIENT) || !defined(_WANT_OPENLDAP_SERVER)
LIB_DEPENDS+= ${OPENLDAP${OPENLDAP_VER}_LIB}:${_OPENLDAP_CLIENT}
. endif
. else
IGNORE= cannot install: unknown OpenLDAP version: ${OPENLDAP_VER}
. endif # Check for correct libs
.endif # !defined(_INCLUDE_USES_LDAP_MK)

View File

@ -19,7 +19,7 @@ LOCALBASE?= /usr/local
. for lang in APACHE BDB COROSYNC EMACS FIREBIRD FORTRAN FPC GCC \
GHOSTSCRIPT GL GO IMAGEMAGICK JAVA LAZARUS LIBRSVG2 LINUX LLVM \
LUA LUAJIT MONO MYSQL NINJA NODEJS PERL5 PGSQL PHP PYTHON \
LUA LUAJIT MONO MYSQL NINJA NODEJS OPENLDAP PERL5 PGSQL PHP PYTHON \
PYTHON2 PYTHON3 RUBY RUST SAMBA SSL TCLTK VARNISH
. if defined(${lang}_DEFAULT)
ERROR+= "The variable ${lang}_DEFAULT is set and it should only be defined through DEFAULT_VERSIONS+=${lang:tl}=${${lang}_DEFAULT} in /etc/make.conf"
@ -95,6 +95,8 @@ MYSQL_DEFAULT?= 5.7
NINJA_DEFAULT?= ninja
# Possible value: 14, 16, 18, 19, current, lts (Note: current = 19 and lts = 18)
NODEJS_DEFAULT?= lts
# Possible value: 24, 25, 26
OPENLDAP_DEFAULT?= 26
# Possible values: 5.32, 5.34, 5.36, devel
. if !exists(${LOCALBASE}/bin/perl) || (!defined(_PORTS_ENV_CHECK) && \
defined(PACKAGE_BUILDING))

View File

@ -1,87 +0,0 @@
# -*- tab-width: 4; -*-
# ex: ts=4
.if defined(_POSTMKINCLUDED) && !defined(Ldap_Post_Include)
Ldap_Post_Include= bsd.ldap.mk
Database_Include_MAINTAINER= ports@FreeBSD.org
# For including this file define macro USE_OPENLDAP. Defining macro like
# USE_OPENLDAP_VER or WANT_OPENLDAP_VER will include this file too.
#
##
# USE_OPENLDAP - Add OpenLDAP client dependency.
# If no version is given (by the maintainer via the port or
# by the user via defined variable), try to find the
# currently installed version. Fall back to default if
# necessary (OpenLDAP 2.4 = 24).
# DEFAULT_OPENLDAP_VER
# - OpenLDAP default version. Can be overriden within a port.
# Default: 24.
# WANT_OPENLDAP_VER
# - Maintainer can set an arbitrary version of OpenLDAP by using it.
# IGNORE_OPENLDAP_OPENLDAP
# - This variable can be defined if the ports doesn't support
# one or more version of OpenLDAP.
# WITH_OPENLDAP_VER
# - User defined variable to set OpenLDAP version.
# OPENLDAP_VER
# - Detected OpenLDAP version.
. if defined(USE_OPENLDAP)
DEFAULT_OPENLDAP_VER?= 26
# OpenLDAP client versions currently supported
OPENLDAP24_LIB= libldap-2.4.so.2
OPENLDAP25_LIB= libldap-2.5.so.0
OPENLDAP26_LIB= libldap.so.2
. if exists(${LOCALBASE}/bin/ldapwhoami)
_OPENLDAP_VER!= ${LOCALBASE}/bin/ldapwhoami -VV 2>&1 | ${GREP} ldapwhoami | ${SED} -E 's/.*OpenLDAP: ldapwhoami (2)\.([0-9]).*/\1\2/'
. endif
. if defined(WANT_OPENLDAP_VER)
. if defined(WITH_OPENLDAP_VER) && ${WITH_OPENLDAP_VER} != ${WANT_OPENLDAP_VER}
IGNORE= cannot install: the port wants openldap${WANT_OPENLDAP_VER}-client and you try to install openldap${WITH_OPENLDAP_VER}-client
. endif
OPENLDAP_VER= ${WANT_OPENLDAP_VER}
. elif defined(WITH_OPENLDAP_VER)
OPENLDAP_VER= ${WITH_OPENLDAP_VER}
. else
. if defined(_OPENLDAP_VER)
OPENLDAP_VER= ${_OPENLDAP_VER}
. else
OPENLDAP_VER= ${DEFAULT_OPENLDAP_VER}
. endif
. endif # WANT_OPENLDAP_VER
. if defined(_OPENLDAP_VER)
. if ${_OPENLDAP_VER} != ${OPENLDAP_VER}
IGNORE= cannot install: OpenLDAP versions mismatch: openldap${_OPENLDAP_VER}-client is installed and wanted version is openldap${OPENLDAP_VER}-client
. endif
. endif
CFLAGS+= -DLDAP_DEPRECATED
_OPENLDAP_CLIENT_PKG!= ${PKG_INFO} -Ex openldap.\*-client 2>/dev/null; ${ECHO_CMD}
# And now we are checking if we can use it
. if defined(OPENLDAP${OPENLDAP_VER}_LIB)
# compatability shim
. if defined(BROKEN_WITH_OPENLDAP)
IGNORE_WITH_OPENLDAP=${BROKEN_WITH_OPENLDAP}
. endif
. if defined(IGNORE_WITH_OPENLDAP)
. for VER in ${IGNORE_WITH_OPENLDAP}
. if (${OPENLDAP_VER} == "${VER}")
IGNORE= cannot install: doesn't work with OpenLDAP version: ${OPENLDAP_VER} (Doesn't support OpenLDAP ${IGNORE_WITH_OPENLDAP})
. endif
. endfor
. endif # IGNORE_WITH_OPENLDAP
LIB_DEPENDS+= ${OPENLDAP${OPENLDAP_VER}_LIB}:net/openldap${OPENLDAP_VER}-client
. else
IGNORE= cannot install: unknown OpenLDAP version: ${OPENLDAP_VER}
. endif # Check for correct libs
. endif # defined(USE_OPENLDAP)
.endif # defined(_POSTMKINCLUDED) && !defined(Ldap_Post_Include)

View File

@ -1863,10 +1863,6 @@ MAKE_ENV+= ${b}="${${b}}"
. endfor
. endif
. if defined(USE_OPENLDAP) || defined(WANT_OPENLDAP_VER)
.include "${PORTSDIR}/Mk/bsd.ldap.mk"
. endif
. if defined(USE_RC_SUBR)
SUB_FILES+= ${USE_RC_SUBR}
. endif

View File

@ -209,7 +209,8 @@ SANITY_UNSUPPORTED= USE_OPENAL USE_FAM USE_MAKESELF USE_ZIP USE_LHA USE_CMAKE \
USE_FPC_RUN WANT_FPC_BASE WANT_FPC_ALL USE_QT4 USE_QT5 QT_NONSTANDARD \
XORG_CAT CARGO_USE_GITHUB CARGO_USE_GITLAB CARGO_GIT_SUBDIR \
USE_RUBY USE_RUBY_EXTCONF USE_RUBY_SETUP RUBY_NO_BUILD_DEPENDS \
RUBY_NO_RUN_DEPENDS USE_APACHE USE_APACHE_BUILD USE_APACHE_RUN
RUBY_NO_RUN_DEPENDS USE_APACHE USE_APACHE_BUILD USE_APACHE_RUN \
USE_OPENLDAP WANT_OPENLDAP_VER
SANITY_DEPRECATED= MLINKS \
USE_MYSQL WANT_MYSQL_VER \
PYDISTUTILS_INSTALLNOSINGLE
@ -244,6 +245,7 @@ USE_SCONS_ALT= USES=scons
USE_DRUPAL_ALT= USES=drupal
USE_PYDISTUTILS_ALT= USE_PYTHON=distutils
USE_PGSQL_ALT= USES=pgsql
USE_OPENLDAP_ALT= USES=ldap
INSTALLS_SHLIB_ALT= USE_LDCONFIG
NEED_ROOT_ALT= USES=fakeroot or USES=uidfix
PYTHON_CONCURRENT_INSTALL_ALT= USE_PYTHON=concurrent
@ -262,6 +264,7 @@ USE_FIREBIRD_ALT= USES=firebird
USE_BDB_ALT= USES=bdb:${USE_BDB}
USE_MYSQL_ALT= USES=mysql:${USE_MYSQL}
WANT_MYSQL_VER_ALT= USES=mysql:${WANT_MYSQL_VER}
WANT_OPENLDAP_VER_ALT= USES=ldap:${WANT_OPENLDAP_VER}
USE_OPENSSL_ALT= USES=ssl
USE_PHPIZE_ALT= USES=php:phpize
USE_PHPEXT_ALT= USES=php:ext

View File

@ -14,8 +14,7 @@ IGNORE_WITH_MYSQL= 56 80 101m 102m 103m
LIB_DEPENDS= libconfig.so:devel/libconfig
USES= compiler:c++11-lang gmake mysql:57,client,server
USE_OPENLDAP= yes
USES= compiler:c++11-lang gmake ldap mysql:57,client,server
USE_GITHUB= yes
GH_ACCOUNT= ateamsystems

View File

@ -15,8 +15,7 @@ EXPIRATION_DATE= 2023-06-30
LIB_DEPENDS= libconfig.so:devel/libconfig
USE_OPENLDAP= yes
USES= gmake mysql:client,server
USES= gmake ldap mysql:client,server
IGNORE_WITH_MYSQL= 57 80 101m 102m 103m 57p 57w

View File

@ -65,7 +65,7 @@ KERBEROS_USES= ssl
LDAP_CMAKE_ON= -DWITH_OPENLDAP=${LOCALBASE}
LDAP_CMAKE_OFF= -DWITH_OPENLDAP=OFF
LDAP_USE= openldap=yes
LDAP_USES= ldap
VAPI_USES= vala:build
VAPI_CMAKE_BOOL= ENABLE_VALA_BINDINGS

View File

@ -31,12 +31,11 @@ CONFLICTS_INSTALL= ldb[0-9][0-9] samba4[0-9][0-9] # include/ldb.h lib/python3.8/
#nopython_CONFLICTS= ldb
#default_CONFLICTS= ldb-nopython
USES= compiler gettext-runtime pkgconfig waf
USES= compiler gettext-runtime ldap pkgconfig waf
USE_LDCONFIG= yes
WAF_CMD= ${BUILD_WRKSRC}/buildtools/bin/waf
CONFIGURE_LOG= ${BUILD_WRKSRC}/bin/config.log
USE_OPENLDAP= yes
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}

View File

@ -26,12 +26,11 @@ LDB_DEPENDS= talloc>=2.2.0:devel/talloc \
CONFLICTS_INSTALL= ldb[0-9][0-9] # include/ldb.h
USES= compiler pkgconfig waf
USES= compiler ldap pkgconfig waf
USE_LDCONFIG= yes
WAF_CMD= ${BUILD_WRKSRC}/buildtools/bin/waf
CONFIGURE_LOG= ${BUILD_WRKSRC}/bin/config.log
USE_OPENLDAP= yes
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}

View File

@ -23,7 +23,7 @@ LDB_DEPENDS= talloc>=2.2.0:devel/talloc \
cmocka>=1.1.3:sysutils/cmocka \
popt>=0:devel/popt
USES= compiler pkgconfig waf
USES= compiler ldap pkgconfig waf
CONFLICTS_INSTALL= ldb[0-9][0-9] # include/ldb.h
@ -31,7 +31,6 @@ USE_LDCONFIG= yes
WAF_CMD= ${BUILD_WRKSRC}/buildtools/bin/waf
CONFIGURE_LOG= ${BUILD_WRKSRC}/bin/config.log
USE_OPENLDAP= yes
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}

View File

@ -24,7 +24,7 @@ TEST_DEPENDS= ${LDB_DEPENDS} \
cmocka>=1.1.3:sysutils/cmocka
RUN_DEPENDS= ${LDB_DEPENDS}
USES= compiler pkgconfig waf
USES= compiler ldap pkgconfig waf
CONFLICTS_INSTALL= ldb[0-9][0-9] # include/ldb.h
@ -32,7 +32,6 @@ USE_LDCONFIG= yes
WAF_CMD= ${BUILD_WRKSRC}/buildtools/bin/waf
CONFIGURE_LOG= ${BUILD_WRKSRC}/bin/config.log
USE_OPENLDAP= yes
PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}

View File

@ -61,7 +61,7 @@ CONFIGURE_ARGS+= --without-bdb
.endif
.if ${LIBGDA5_SLAVE}==ldap
USE_OPENLDAP= yes
USES= ldap
CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-ldap

View File

@ -34,7 +34,7 @@ OPTIONS_GROUP_PLUGINS= SASLCLIENT
SASLCLIENT_DESC= SASL client plugin module
SASLCLIENT_CMAKE_BOOL= WITH_AUTHENTICATION_LDAP
SASLCLIENT_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASLCLIENT_USE= OPENLDAP=yes
SASLCLIENT_USES= ldap
OPTIONS_DEFAULT+= SASLCLIENT
# issue 166367: adding symlinks for back-compatibility with ${lib}_r

View File

@ -33,7 +33,7 @@ OPTIONS_GROUP_PLUGINS= SASLCLIENT
SASLCLIENT_DESC= SASL client plugin module
SASLCLIENT_CMAKE_BOOL= WITH_AUTHENTICATION_LDAP
SASLCLIENT_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASLCLIENT_USE= OPENLDAP=yes
SASLCLIENT_USES= ldap
OPTIONS_DEFAULT+= SASLCLIENT
OPTIONS_SUB= yes

View File

@ -34,7 +34,7 @@ OPTIONS_GROUP_PLUGINS= SASLCLIENT
SASLCLIENT_DESC= SASL client plugin module
SASLCLIENT_CMAKE_BOOL= WITH_AUTHENTICATION_LDAP
SASLCLIENT_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASLCLIENT_USE= OPENLDAP=yes
SASLCLIENT_USES= ldap
OPTIONS_DEFAULT+= SASLCLIENT
OPTIONS_SUB= yes

View File

@ -164,7 +164,7 @@ NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
OPTIMIZED_CFLAGS_CFLAGS=-O3 -funroll-loops

View File

@ -99,7 +99,7 @@ CONFIGURE_ARGS+=--disable-krb
.if ${PORT_OPTIONS:MLDAP}
CONFIGURE_ARGS+=--enable-openldap=${LOCALBASE}
USE_OPENLDAP= yes
USES= ldap
.else
CONFIGURE_ARGS+=--disable-openldap
.endif

View File

@ -43,7 +43,7 @@ SSL_DESC= OpenSSL crypto driver
# APR-Util Options
BDB_USES= bdb:5+
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
MYSQL_USES= mysql
NSS_LIB_DEPENDS= libnss3.so:security/nss
ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC

View File

@ -14,14 +14,12 @@ LICENSE_COMB= dual
RUN_DEPENDS= \
p5-Data-UUID>0:devel/p5-Data-UUID \
p5-perl-ldap>0:net/p5-perl-ldap \
${LOCALBASE}/libexec/slapd:net/openldap${OPENLDAP_VER}-server
p5-perl-ldap>0:net/p5-perl-ldap
BUILD_DEPENDS= ${RUN_DEPENDS}
NO_ARCH= yes
USES= perl5
USES= ldap:server perl5
USE_PERL5= configure
USE_OPENLDAP= yes
CONFIGURE_ENV= PATH=${PATH}:${PREFIX}/libexec

View File

@ -135,7 +135,7 @@ CONFIGURE_ARGS+=--disable-sdl
.endif
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
USES+= ldap
CONFIGURE_ARGS+=--enable-openldap
.else
CONFIGURE_ARGS+=--disable-openldap

View File

@ -38,7 +38,7 @@ MEMCACHED_DESC= Install memcached
MYSQL_DESC= Build with MySQL support
PGSQL_DESC= Build with PostgreSQL support
LDAP_USE= OPENLDAP=client
LDAP_USES= ldap
MEMCACHED_RUN_DEPENDS= ${LOCALBASE}/bin/memcached:databases/memcached
MYSQL_USES= mysql
PGSQL_USES= pgsql

View File

@ -22,7 +22,6 @@ OPTIONS_DEFINE= LDAP MYSQL PGSQL MEMCACHED
OPTIONS_DEFAULT= LDAP PGSQL MEMCACHED
OPTIONS_SUB= yes
LDAP_DESC= Build with LDAP support
MYSQL_DESC= Build with MySQL support
PGSQL_DESC= Build with PostgreSQL support
MEMCACHED_DESC= Install memcached
@ -37,7 +36,7 @@ SUB_LIST+= GNUSTEP_LOCAL_TOOLS=${GNUSTEP_LOCAL_TOOLS} \
CONFIGURE_ARGS= --with-gnustep --disable-debug --enable-strip
LDAP_USE= OPENLDAP=client
LDAP_USES= ldap
PGSQL_USES= pgsql
MYSQL_USES= mysql
MEMCACHED_RUN_DEPENDS= ${LOCALBASE}/bin/memcached:databases/memcached

View File

@ -100,7 +100,7 @@ DLZ_BDB_USES= bdb
DLZ_FILESYSTEM_CONFIGURE_ON= --with-dlz-filesystem=yes
DLZ_LDAP_CONFIGURE_ON= --with-dlz-ldap=yes
DLZ_LDAP_USE= OPENLDAP=yes
DLZ_LDAP_USES= ldap
DLZ_MYSQL_CONFIGURE_ON= --with-dlz-mysql=yes
DLZ_MYSQL_USES= mysql

View File

@ -14,8 +14,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= setuidgid:sysutils/daemontools \
tcpserver:sysutils/ucspi-tcp
USES= localbase:ldflags shebangfix tar:xz
USE_OPENLDAP= yes
USES= ldap localbase:ldflags shebangfix tar:xz
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
USE_CSTD= gnu89

View File

@ -96,7 +96,7 @@ MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}
MYSQL_CONFIGURE_OFF= --without-mysql
MYSQL_VARS= MODULES+=gmysql
OPENLDAP_USE= OPENLDAP=YES
OPENLDAP_USES= ldap
OPENLDAP_CXXFLAGS= -DLDAP_DEPRECATED=1
OPENLDAP_VARS= MODULES+=ldap

View File

@ -118,11 +118,10 @@ SHEBANG_GLOB= *.py
GNU_CONFIGURE= yes
USES= autoreconf:build bison compiler:c++17-lang cpe desktop-file-utils \
gettext gl gmake gnome jpeg localbase:ldflags perl5 pkgconfig \
gettext gl gmake gnome jpeg ldap localbase:ldflags perl5 pkgconfig \
python:3.8+ shebangfix shared-mime-info ssl tar:xz xorg
USE_GL= gl glew glu
USE_GNOME= cairo glib20 libxml2 libxslt
USE_OPENLDAP= yes
USE_PERL5= build
USE_XORG= ice sm x11 xaw xcb xext xinerama xrandr xrender

View File

@ -89,7 +89,7 @@ GNUTLS_CONFIGURE_WITH= gnutls
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
MONO_RUN_DEPENDS= wine-mono>0:emulators/wine-mono

View File

@ -64,9 +64,8 @@ RUN_DEPENDS= wkhtmltopdf>0:converters/wkhtmltopdf \
${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}stdnum>0:devel/py-stdnum@${PY_FLAVOR}
USES= cpe python:3.7+ pgsql shebangfix
USES= cpe ldap python:3.7+ pgsql shebangfix
USE_PYTHON= distutils
USE_OPENLDAP= yes
SHEBANG_LANG= python
SHEBANG_FILES= ${WRKSRC}/${PORTNAME}-bin

View File

@ -66,9 +66,8 @@ RUN_DEPENDS= wkhtmltopdf>0:converters/wkhtmltopdf \
${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}stdnum>0:devel/py-stdnum@${PY_FLAVOR}
USES= cpe python:3.7+ pgsql shebangfix
USES= cpe ldap python:3.7+ pgsql shebangfix
USE_PYTHON= distutils
USE_OPENLDAP= yes
SHEBANG_LANG= python
SHEBANG_FILES= ${WRKSRC}/${PORTNAME}-bin

View File

@ -66,9 +66,8 @@ RUN_DEPENDS= wkhtmltopdf>0:converters/wkhtmltopdf \
${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}stdnum>0:devel/py-stdnum@${PY_FLAVOR}
USES= cpe python:3.7+ pgsql shebangfix
USES= cpe ldap python:3.7+ pgsql shebangfix
USE_PYTHON= distutils
USE_OPENLDAP= yes
SHEBANG_LANG= python
SHEBANG_FILES= ${WRKSRC}/${PORTNAME}-bin

View File

@ -105,7 +105,7 @@ IDN_LIB_DEPENDS= libidn2.so:dns/libidn2
IMAP_CONFIGURE_ENABLE= imap
IPV6_CONFIGURE_ENABLE= ipv6
LDAP_CONFIGURE_ENABLE= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAPS_CONFIGURE_ENABLE= ldaps
LIBSSH2_CONFIGURE_WITH= libssh2
LIBSSH2_LIB_DEPENDS= libssh2.so:security/libssh2

View File

@ -51,7 +51,7 @@ ANONRENAME_CPPFLAGS= -DANON_CAN_RENAME
ANONRESUME_CPPFLAGS= -DANON_CAN_RESUME
LARGEFILE_CONFIGURE_ENABLE= largefile
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
MYSQL_CONFIGURE_WITH= mysql
MYSQL_USES= mysql
PAM_CONFIGURE_WITH= pam

View File

@ -27,7 +27,7 @@ TRE_DESC= Tre Regex Module
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
MYSQL_USES= mysql

View File

@ -43,7 +43,7 @@ OPTIONS_SUB= yes
CONTRIB_CONFIGURE_ENABLE= contrib
CRACKLIB_LIB_DEPENDS= libcrack.so:security/cracklib
CRACKLIB_CONFIGURE_WITH= cracklib
LDAP_USE= openldap=yes
LDAP_USES= ldap
LDAP_CONFIGURE_WITH= ldap
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls

View File

@ -66,7 +66,7 @@ GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls \
libgpg-error.so:security/libgpg-error
JABBER_CONFIGURE_OFF= --jabber=0
LDAP_CONFIGURE_ON= --ldap=1
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LIBEVENT_CONFIGURE_ON= --events=libevent --libevent=${LOCALBASE}
LIBEVENT_LIB_DEPENDS= libevent.so:devel/libevent
LIBPURPLE_CONFIGURE_ON= --purple=1

View File

@ -68,7 +68,7 @@ GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
GNUTLS_USES= pkgconfig
GNUTLS_VARS= EXTRAS+=m_ssl_gnutls.cpp
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_VARS= EXTRAS+=m_ldap.cpp
MBEDTLS_LIB_DEPENDS= libmbedtls.so:security/mbedtls
MBEDTLS_VARS= EXTRAS+=m_ssl_mbedtls.cpp

View File

@ -13,11 +13,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/boost/optional.hpp:devel/boost-libs
USES= cmake compiler:c++11-lib cpe pkgconfig qca qt:5 tar:xz
USES= cmake compiler:c++11-lib cpe ldap pkgconfig qca qt:5 tar:xz
USE_GITHUB= nodefault
#GH_ACCOUNT= ${PORTNAME}
#GH_PROJECT= ${PORTNAME}
USE_OPENLDAP= yes
USE_QT= buildtools:build core network qmake:build
CPE_VENDOR= quassel-irc

View File

@ -179,7 +179,7 @@ CONFIGURE_ARGS+=--with-imap=${LOCALBASE} \
CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" \
PHP_OPENSSL=yes
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USES+= ssl
.endif
@ -197,8 +197,7 @@ BUILD_DEPENDS= re2c:devel/re2c
.if ${PHP_MODNAME} == "ldap"
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} --with-ldap-sasl=${LOCALBASE}
USE_OPENLDAP= yes
USE+= ldap
.endif
.if ${PHP_MODNAME} == "mbstring"

View File

@ -363,8 +363,7 @@ BUILD_DEPENDS= re2c:devel/re2c
.if ${PHP_MODNAME} == "ldap"
CONFIGURE_ARGS+= --with-ldap-sasl=${LOCALBASE} \
--with-ldap=${LOCALBASE}
USE_OPENLDAP= yes
USES+= ldap
.endif
.if ${PHP_MODNAME} == "mbstring"

View File

@ -364,8 +364,7 @@ BUILD_DEPENDS= re2c:devel/re2c
.if ${PHP_MODNAME} == "ldap"
CONFIGURE_ARGS+= --with-ldap-sasl=${LOCALBASE} \
--with-ldap=${LOCALBASE}
USE_OPENLDAP= yes
USES+= ldap
.endif
.if ${PHP_MODNAME} == "mbstring"

View File

@ -59,7 +59,7 @@ CONS25_EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c
IPV6_CONFIGURE_WITH= ipv6
# Option LDAP
LDAP_USE= openldap=yes
LDAP_USES= ldap
LDAP_CONFIGURE_WITH= ldap
LDAP_CFLAGS= -I${LOCALBASE}/include
LDAP_LDFLAGS= -L${LOCALBASE}/lib

View File

@ -42,7 +42,7 @@ GTKSV_DESC= GtkSourceview support
GPG_DESC= GnuPG support
GPG_CONFIGURE_WITH= gpgme
GPG_LIB_DEPENDS= libgpgme.so:security/gpgme
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_WITH= ldap
GTKSPELL_CONFIGURE_WITH= gtkspell
GTKSPELL_LIB_DEPENDS= libgtkspell3-3.so:textproc/gtkspell3

View File

@ -51,7 +51,7 @@ ENCHANT_CONFIGURE_ENABLE= enchant
IPV6_CONFIGURE_ENABLE= ipv6
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_ENABLE= ldap
NLS_USES= gettext-tools

View File

@ -17,11 +17,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING.GPL
BUILD_DEPENDS= gpgv:security/gnupg1
LIB_DEPENDS= libaspell.so:textproc/aspell \
libcourier-unicode.so:devel/courier-unicode \
libidn.so:dns/libidn \
libldap_r.so:net/openldap24-client
libidn.so:dns/libidn
RUN_DEPENDS= gpgv:security/gnupg1
USES= compiler:c++11-lang fam gettext gmake gnome iconv \
USES= compiler:c++11-lang fam gettext gmake gnome iconv ldap:24 \
localbase:ldflags ncurses perl5 pkgconfig shebangfix ssl \
tar:bzip2
USE_GNOME= libxml2

View File

@ -138,7 +138,7 @@ PERIODIC_DESC= modify/create periodic.conf
.include "${.CURDIR}/Makefile.own"
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
USES+= ldap
WITH_AUTH_LDAP= yes
RUN_DEPENDS+= ${LOCALBASE}/lib/courier-authlib/libauthldap.so:net/courier-authlib-ldap
CONFIGURE_ARGS+=--with-ldapaliasd

View File

@ -52,7 +52,7 @@ BDB_CONFIGURE_ON= --with-bdb-incdir=${BDB_INCLUDE_DIR} \
IDLED_DESC= Enable IMAP idled support
IDLED_CONFIGURE_ENABLE= idled
LDAP_PTLOADER_DESC= Enable LDAP ptloader
LDAP_PTLOADER_USE= OPENLDAP=yes
LDAP_PTLOADER_USES= ldap
LDAP_PTLOADER_CONFIGURE_ON=--with-ldap=${LOCALBASE}
LISTEXT_DESC= Enable IMAP List extensions
LISTEXT_CONFIGURE_ENABLE=listext

View File

@ -51,7 +51,7 @@ BDB_CONFIGURE_ON= --with-bdb-incdir=${BDB_INCLUDE_DIR} \
IDLED_DESC= Enable IMAP idled support
IDLED_CONFIGURE_ENABLE= idled
LDAP_DESC= Enable LDAP support (experimental)
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}
MURDER_DESC= Enable IMAP Murder support
MURDER_CONFIGURE_ENABLE=murder

View File

@ -63,7 +63,7 @@ HTTP_USE= GNOME=libxml2
IDLED_DESC= Enable IMAP idled support
IDLED_CONFIGURE_ENABLE= idled
LDAP_DESC= Enable LDAP support (experimental)
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}
MURDER_DESC= Enable IMAP Murder support
MURDER_CONFIGURE_ENABLE=murder

View File

@ -67,7 +67,7 @@ HTTP_USE= GNOME=libxml2
IDLED_DESC= Enable IMAP idled support
IDLED_CONFIGURE_ENABLE= idled
LDAP_DESC= Enable LDAP support (experimental)
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}
LMDB_DESC= Use LMDB backend
LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb

View File

@ -72,7 +72,7 @@ HTTP_USE= GNOME=libxml2
IDLED_DESC= Enable IMAP idled support
IDLED_CONFIGURE_ENABLE= idled
LDAP_DESC= Enable LDAP support (experimental)
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}
MURDER_DESC= Enable IMAP Murder support
MURDER_CONFIGURE_ENABLE=murder

View File

@ -90,7 +90,7 @@ HTTP_USE= GNOME=libxml2
IDLED_DESC= Enable IMAP idled support
IDLED_CONFIGURE_ENABLE= idled
LDAP_DESC= Enable LDAP support (experimental)
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}
MURDER_DESC= Enable IMAP Murder support
MURDER_CONFIGURE_ENABLE=murder

View File

@ -91,7 +91,7 @@ HTTP_USE= GNOME=libxml2
IDLED_DESC= Enable IMAP idled support
IDLED_CONFIGURE_ENABLE= idled
LDAP_DESC= Enable LDAP support (experimental)
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}
LDAP_CONFIGURE_OFF= --without-ldap
MURDER_DESC= Enable IMAP Murder support

View File

@ -47,8 +47,7 @@ SIEVE_DESC= Sieve mail sorting language support
DOCS= AUTHORS CHANGELOG.md INSTALL README THANKS UPGRADING
LDAP_USES= gettext-runtime
LDAP_USE= OPENLDAP=yes
LDAP_USES= gettext-runtime ldap
LDAP_CONFIGURE_WITH= ldap
SIEVE_LIB_DEPENDS= libsieve.so:mail/libsieve
SIEVE_CONFIGURE_WITH= sieve

View File

@ -49,7 +49,7 @@ MANAGESIEVE_CONFIGURE_WITH= managesieve
LDAP_CONFIGURE_WITH= ldap
LDAP_CPPFLAGS= -I${LOCALBASE}/include
LDAP_LDFLAGS= -L${LOCALBASE}/lib
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
PORTDOCS= sieve/extensions/* sieve/plugins/* sieve/locations/*

View File

@ -85,7 +85,7 @@ LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
CDB_CONFIGURE_WITH= cdb
CDB_LIB_DEPENDS= libcdb.so:databases/tinycdb
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_WITH= ldap
MYSQL_USES= mysql

View File

@ -304,7 +304,7 @@ PLIST_SUB+= NOSETUID=""
.if ${PORT_OPTIONS:MEXTERNAL_LOOKUP}
CONFIGURE_ARGS+= --enable-external-lookup
USE_OPENLDAP= YES
USES+= ldap
.endif
.if ${PORT_OPTIONS:MUSER_HOMEDIR}

View File

@ -89,7 +89,7 @@ OPTIONS_GROUP_SPAM= BOGOFILTER SPAMASSASSIN
LDAP_CMAKE_ON= -DWITH_OPENLDAP=${LOCALBASE}
LDAP_CMAKE_OFF= -DWITH_OPENLDAP=OFF
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
YTNEF_DESC= Support MS Outlook TNEF format
YTNEF_LIB_DEPENDS= libytnef.so:converters/ytnef

View File

@ -54,7 +54,7 @@ ICONV_USES= iconv:lib,build
INTERNATIONAL_LIB_DEPENDS= libidn.so:dns/libidn
LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb
MYSQL_USES= mysql
OPENLDAP_USE= openldap=yes
OPENLDAP_USES= ldap
PGSQL_LIB_DEPENDS= libicudata.so:devel/icu
PGSQL_USES= pgsql pkgconfig
REDIS_LIB_DEPENDS= libhiredis.so:databases/hiredis
@ -321,10 +321,6 @@ SEDLIST+= -e 's,XX_ICONV_LIBS_XX,-L${LOCALBASE:S/,/\\,/g}/lib ${ICONV_LIB},' \
SEDLIST+= -e 's,XX_ICONV_LIBS_XX,,'
.endif
.if ${PORT_OPTIONS:MOPENLDAP_VER} && ${WITH_OPENLDAP_VER:tl} != "auto"
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
.endif
.if ${PORT_OPTIONS:MOPENLDAP}
LDAP_LIB_TYPE= OPENLDAP2
SEDLIST+= -e 's,XX_LDAP_LIBS_XX,-L${LOCALBASE:S/,/\\,/g}/lib -llber -lldap,' \

View File

@ -12,8 +12,7 @@ LICENSE= GPLv2
LIB_DEPENDS= libgdbm.so:databases/gdbm
USES= iconv gmake groff tar:tgz
USE_OPENLDAP= yes
USES= iconv gmake groff ldap tar:tgz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-docdir=${DOCSDIR} --localstatedir="${PREFIX}/var"
CPPFLAGS+= -I${LOCALBASE}/include

View File

@ -80,7 +80,7 @@ GDBM_CONFIGURE_WITH= gdbm
KYOTOCABINET_LIB_DEPENDS= libkyotocabinet.so:databases/kyotocabinet
KYOTOCABINET_CONFIGURE_WITH= kyotocabinet
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_WITH= ldap
MYSQL_USES= mysql

View File

@ -56,7 +56,7 @@ GEOIP_CONFIGURE_ON= --with-libmaxminddb=${LOCALBASE}
CURL_CONFIGURE_ON= --with-libcurl=${LOCALBASE}
LDAP_CONFIGURE_ON= --with-openldap=${LOCALBASE}
LDAP_LDFLAGS= -L${LOCALBASE}/lib
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
.include <bsd.port.options.mk>

View File

@ -84,7 +84,7 @@ OPENDBX_LIB_DEPENDS= libopendbx.so:databases/opendbx
OPENLDAP_DESC= Store filter policies in LDAP
OPENLDAP_CONFIGURE_WITH=openldap
OPENLDAP_USE= OPENLDAP=yes
OPENLDAP_USES= ldap
POPAUTH_DESC= Use POP authentication DB
POPAUTH_CONFIGURE_ENABLE= popauth

View File

@ -7,7 +7,7 @@ PLIST_FILES= libexec/opensmtpd/table-ldap
CONFIGURE_ARGS+= --with-table-ldap
USE_OPENLDAP= client
USES= ldap
MASTERDIR= ${.CURDIR}/../opensmtpd-extras
SLAVE_PORT= yes

View File

@ -110,7 +110,7 @@ PLIST_SUB+= PGSQL="@comment "
.endif
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
USES+= ldap
CONFIGURE_ARGS+= --enable-ldap \
--with-ldap-schema-directory=${LOCALBASE}/etc/openldap/schema/ \
--disable-ldap-doc

View File

@ -88,7 +88,7 @@ BDB_USES= bdb
BLACKLISTD_EXTRA_PATCHES= ${FILESDIR}/extra-patch-blacklistd
CDB_LIB_DEPENDS= libcdb.so:databases/tinycdb
EAI_LIB_DEPENDS= libicuuc.so:devel/icu
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb
MYSQL_USES?= mysql
PCRE2_LIB_DEPENDS= libpcre2-8.so:devel/pcre2
@ -263,9 +263,6 @@ POSTFIX_DYN_AUXLIBS+= "AUXLIBS_SQLITE=-L${LOCALBASE}/lib -lsqlite3 -lpthread"
.if ${PORT_OPTIONS:MLDAP}
DYN_EXT+= ldap
. if defined(WITH_OPENLDAP_VER)
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
. endif
POSTFIX_CCARGS+= -DHAS_LDAP -I${LOCALBASE}/include \
-I${LOCALBASE}/include/sasl -DUSE_LDAP_SASL
POSTFIX_DYN_AUXLIBS+= "AUXLIBS_LDAP=-L${LOCALBASE}/lib -lldap -llber"

View File

@ -106,7 +106,7 @@ BLACKLISTD_DESC= Enable blacklistd support
CDB_DESC= CDB maps lookups
EAI_DESC= Email Address Internationalization (SMTPUTF8) support
INST_BASE_DESC= Install into /usr and /etc/postfix
LDAP_DESC= LDAP maps (uses WITH_OPENLDAP_VER)
LDAP_DESC= LDAP maps
LMDB_DESC= LMDB maps
PCRE2_DESC= Use Perl Compatible Regular Expressions, version 2
RG1_DESC= Kerberos network authentication protocol type
@ -119,7 +119,7 @@ BDB_USES= bdb
BLACKLISTD_EXTRA_PATCHES= ${FILESDIR}/extra-patch-blacklistd
CDB_LIB_DEPENDS= libcdb.so:databases/tinycdb
EAI_LIB_DEPENDS= libicuuc.so:devel/icu
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LMDB_LIB_DEPENDS= liblmdb.so:databases/lmdb
MYSQL_USES?= mysql
PCRE2_LIB_DEPENDS= libpcre2-8.so:devel/pcre2
@ -300,9 +300,6 @@ POSTFIX_DYN_AUXLIBS+= "AUXLIBS_SQLITE=-L${LOCALBASE}/lib -lsqlite3 -lpthread"
.if ${PORT_OPTIONS:MLDAP}
DYN_EXT+= ldap
. if defined(WITH_OPENLDAP_VER)
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
. endif
POSTFIX_CCARGS+= -DHAS_LDAP -I${LOCALBASE}/include \
-I${LOCALBASE}/include/sasl -DUSE_LDAP_SASL
POSTFIX_DYN_AUXLIBS+= "AUXLIBS_LDAP=-L${LOCALBASE}/lib -lldap -llber"

View File

@ -8,19 +8,14 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Programs to allow qmail to authenticate users through a MS ad
WWW= http://fo2k.com/qmail-activedir/
USES= qmail:run
USES= ldap qmail:run
SUB_FILES= pkg-message
SUB_LIST+= QMAIL_PREFIX=${QMAIL_PREFIX}
USE_OPENLDAP= yes
BINARIES= checkadpassword qmail-adgetpw create_alias_files
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib -Wall -lldap
.if defined(WITH_OPENLDAP_VER)
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
.endif
OPTIONS_DEFINE= DOCS
post-patch:

View File

@ -72,7 +72,7 @@ TLS_USES= ssl
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASLAUTHD_RUN_DEPENDS= saslauthd:security/cyrus-sasl2-saslauthd
DANE_IMPLIES= TLS
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_IMPLIES= DANE
BDB_USES= bdb
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm

View File

@ -71,7 +71,7 @@ TLS_USES= ssl
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASLAUTHD_RUN_DEPENDS= saslauthd:security/cyrus-sasl2-saslauthd
DANE_IMPLIES= TLS
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_IMPLIES= DANE
BDB_USES= bdb
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm

View File

@ -24,7 +24,7 @@ WITH_LDAP=yes
.endif
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP=yes
USE+= ldap
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif

View File

@ -54,10 +54,7 @@ CMAKE_ARGS+= -DENABLE_DEBUG=TRUE
.endif
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
.if ${PORT_OPTIONS:MOPENLDAP_VER}
WANT_OPENLDAP_VER= ${WITH_OPENLDAP_VER}
.endif
USES+= ldap
.else
CMAKE_ARGS+= -DWITHOUT_LDAP=TRUE
.endif

View File

@ -69,7 +69,7 @@ GTKSPELL_CONFIGURE_ENABLE= gtkspell
HIDE_OSSIG_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_main.c
LDAP_CONFIGURE_ENABLE= ldap
LDAP_USE= openldap=yes
LDAP_USES= ldap
ONIGURUMA_LIB_DEPENDS= libonig.so:devel/oniguruma
ONIGURUMA_CONFIGURE_ENABLE= oniguruma

View File

@ -49,7 +49,7 @@ PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --enable-auth-pgsql \
--with-pgsql-lib-dir=${LOCALBASE}/lib \
--with-pgsql-include-dir=${LOCALBASE}/include
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_ON= --enable-auth-ldap --with-openldap-root=${LOCALBASE}
PERLAUTH_USES= perl5
FIX_PERLAUTH_EXTRA_PATCHES=${PATCHDIR}/extra-patch-auth_perl.c

View File

@ -252,7 +252,7 @@ VPOPMAIL_DIR?= ${PREFIX}/vpopmail
# End of user-configurable variables
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
USES+= ldap
LDAP_FILES= ${WRKSRC}/doc/README.ldap \
${WRKSRC}/ldap/nsswitch.conf \
${WRKSRC}/ldap/pam_ldap.conf \

View File

@ -80,7 +80,7 @@ BDB_USES= bdb
BDB_CONFIGURE_ENABLE= db
BDB_CONFIGURE_ON= --oldincludedir=/nonexistant
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_ENABLE= ldap
FS_CONFIGURE_ENABLE= fs

View File

@ -9,7 +9,6 @@ WWW= https://www.freedesktop.org/software/realmd/adcli/adcli.html
LICENSE= LGPL21
USE_OPENLDAP= yes
BUILD_DEPENDS= xsltproc:textproc/libxslt \
docbook-xml>0:textproc/docbook-xml \
docbook-xsl>0:textproc/docbook-xsl
@ -28,7 +27,7 @@ CONFIGURE_ENV+= ac_cv_path_KRB5_CONFIG=${KRB5CONFIG} \
ac_cv_path_XMLTO=${PORT_OPTIONS:MDOCS:S|DOCS|${LOCALBASE}/bin/xmlto|:S|^$|${TRUE}|}
CONFIGURE_ARGS= --sysconfdir=/etc
USES= autoreconf libtool
USES= autoreconf ldap libtool
# Kerberos may or may not be there, but LDAP always is:
CFLAGS+= -I${LOCALBASE}/include

View File

@ -192,7 +192,7 @@ ONEWIRE_LIB_DEPENDS= libow.so:comms/owfs
ONEWIRE_CONFIGURE_ENABLE= onewire
ONEWIRE_CONFIGURE_WITH= libowcapi=${LOCALBASE}
OPENLDAP_USE= OPENLDAP=yes
OPENLDAP_USES= ldap
OPENLDAP_CONFIGURE_ENABLE= openldap
OPENLDAP_CONFIGURE_WITH= libldap=${LOCALBASE}

View File

@ -82,7 +82,7 @@ FPING_CONFIGURE_OFF= ac_cv_path_PATH_TO_FPING6= \
IPV6_CONFIGURE_WITH= ipv6
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_WITH= ldap
MYSQL_USES= mysql

View File

@ -85,7 +85,7 @@ FPING_CONFIGURE_OFF= ac_cv_path_PATH_TO_FPING6= \
IPV6_CONFIGURE_WITH= ipv6
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_WITH= ldap
MYSQL_USES= mysql

View File

@ -58,7 +58,7 @@ FUSE_CONFIGURE_ENABLE= fuse
FUSE_LIB_DEPENDS= libfuse.so:sysutils/fusefs-libs
LDAP_CONFIGURE_ENABLE= ldap
LDAP_USE= openldap=yes
LDAP_USES= ldap
NLS_USES= gettext

View File

@ -56,7 +56,7 @@ NETSNMP_DESC=Enable Net-SNMP support
.if ${PORT_OPTIONS:MLDAP}
MAKE_ENV+= WITH_LDAP=1
USE_OPENLDAP= yes
USE+= ldap
.endif
.if ${PORT_OPTIONS:MNETSNMP}

View File

@ -96,7 +96,7 @@ SQLITE_USES+= sqlite:3
ORACLE_CONFIGURE_WITH= oracle
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
IPMI_CONFIGURE_WITH= openipmi
IPMI_LIB_DEPENDS= libOpenIPMI.so:sysutils/openipmi

View File

@ -96,7 +96,7 @@ SQLITE_USES+= sqlite:3
ORACLE_CONFIGURE_WITH= oracle
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
IPMI_CONFIGURE_WITH= openipmi
IPMI_LIB_DEPENDS= libOpenIPMI.so:sysutils/openipmi

View File

@ -105,7 +105,7 @@ IPMI_CONFIGURE_WITH= openipmi
IPMI_LIB_DEPENDS= libOpenIPMI.so:sysutils/openipmi
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
MYSQL_CONFIGURE_ON= --with-mysql
MYSQL_USES+= compiler:c11 mysql:80

View File

@ -105,7 +105,7 @@ IPMI_CONFIGURE_WITH= openipmi
IPMI_LIB_DEPENDS= libOpenIPMI.so:sysutils/openipmi
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
MYSQL_CONFIGURE_ON= --with-mysql
MYSQL_USES+= compiler:c11 mysql:80

View File

@ -143,7 +143,7 @@ GSM_CONFIGURE_WITH= gsm
GSM_LIB_DEPENDS= libgsm.so:audio/gsm
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LUA_CONFIGURE_WITH= lua
LUA_USES= lua

View File

@ -143,7 +143,7 @@ GSM_CONFIGURE_WITH= gsm
GSM_LIB_DEPENDS= libgsm.so:audio/gsm
LDAP_CONFIGURE_WITH= ldap
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LUA_CONFIGURE_WITH= lua
LUA_USES= lua

View File

@ -60,11 +60,10 @@ RUN_DEPENDS= \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}routes>=0:www/py-routes@${PY_FLAVOR}
USES= cmake:noninja compiler:c++17-lang cpe dos2unix fuse gettext-runtime gmake ncurses \
USES= cmake:noninja compiler:c++17-lang cpe dos2unix fuse gettext-runtime gmake ldap ncurses \
pkgconfig python:3.8-3.9 readline shebangfix ssl
CPE_VENDOR= linuxfoundation
USE_PYTHON= cython py3kplist
USE_OPENLDAP= yes
USE_GITHUB= yes
GH_ACCOUNT= ceph:DEFAULT
DOS2UNIX_FILES= src/pybind/mgr/diskprediction_cloud/common/__init__.py

View File

@ -34,7 +34,7 @@ OPTIONS_DEFINE= LDAP PGSQL
OPTIONS_DEFAULT=LDAP
OPTIONS_SUB= yes
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_VARS= PING_PLUGINS+=ldap
PGSQL_USES= pgsql

View File

@ -14,6 +14,6 @@ OPTIONS_DEFINE= OPENLDAP
OPENLDAP_DESC= Install OpenLDAP libraries
OPTIONS_DEFAULT= OPENLDAP
OPENLDAP_USE= OPENLDAP=yes
OPENLDAP_USES= ldap
.include "${MASTERDIR}/Makefile"

View File

@ -107,7 +107,7 @@ FIREBIRD_CONFIGURE_WITH= rlm_sql_firebird
FIREBIRD_USES= firebird
LDAP_CONFIGURE_WITH= rlm_ldap
LDAP_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
LDAP_USE= OPENLDAP
LDAP_USES= ldap
LDAP_VARS= _REQUIRE+=slapd
MITKRB_PORT_CONFIGURE_ON= --with-rlm-krb5-dir=${LOCALBASE}
MITKRB_PORT_LIB_DEPENDS= libkrb5support.so:security/krb5

View File

@ -38,7 +38,7 @@ GSASL_CONFIGURE_WITH= gsasl
GUILE_LIB_DEPENDS= libguile-2.2.so:lang/guile2
GUILE_CONFIGURE_OFF= --without-guile
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CONFIGURE_OFF= --without-ldap
NLS_USES= gettext

View File

@ -18,10 +18,9 @@ BROKEN_FreeBSD_14= ld: error: duplicate symbol: dt_entry_handler
LIB_DEPENDS= libgnome-keyring.so:security/libgnome-keyring
USES= desktop-file-utils gettext gmake gnome pkgconfig \
USES= desktop-file-utils gettext gmake gnome ldap pkgconfig \
shared-mime-info ssl
USE_GNOME= intltool libglade2
USE_OPENLDAP= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ldap-prefix=${LOCALBASE} --disable-update-mimedb

View File

@ -90,8 +90,7 @@ PKGMESSAGE_SUB= PREFIX="${PREFIX}" MAN1PREFIX="${MAN1PREFIX}" \
BINLEASES_CONFIGURE_ENABLE= binary-leases
PARANOIA_CONFIGURE_ENABLE= paranoia early-chroot
LDAP_CONFIGURE_WITH= ldap ldapcrypto
LDAP_USE= OPENLDAP
LDAP_USES= shebangfix
LDAP_USES= ldap shebangfix
LDAP_SSL_USES= ssl
LDAP_SSL_VARS= LIBS+=-lssl
LDAP_IMPLIES= IPV6

View File

@ -11,14 +11,13 @@ LICENSE= LGPL21
LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 \
libqt5keychain.so:security/qtkeychain@qt5
USES= cmake compiler:c++11-lib gettext kde:5 qt:5 tar:xz
USES= cmake compiler:c++11-lib gettext kde:5 ldap qt:5 tar:xz
USE_KDE= completion config coreaddons i18n kio widgetsaddons service \
ecm:build
# pim components
USE_KDE+= mbox
USE_QT= concurrent core dbus gui network widgets \
buildtools:build qmake:build
USE_OPENLDAP= yes
USE_LDCONFIG= yes
DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr

View File

@ -11,8 +11,7 @@ WWW= https://launchpad.net/ldapdiff
LICENSE= GPLv3+
USES= cpe iconv tar:tgz
USE_OPENLDAP= yes
USES= cpe iconv ldap tar:tgz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${LOCALBASE} \
--with-ldap-dir=${LOCALBASE}

View File

@ -11,19 +11,11 @@ WWW= https://contribs.martymac.org
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
NO_ARCH= yes
OPTIONS_DEFINE= SASL DOCS
USES= iconv tar:tgz
USE_OPENLDAP= yes
USES= iconv ldap tar:tgz
LIBDIR= ${PREFIX}/lib/${PORTNAME}
MAKE_ENV+= MANDIR=${MANPREFIX}/man \
ETCDIR=${ETCDIR}

View File

@ -46,7 +46,7 @@ OPTIONS_DEFAULT= LDAP VIDEO
OPTIONS_SUB= yes
LDAP_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
LDAP_USE= OPENLDAP=yes
LDAP_USES= ldap
LDAP_CMAKE_BOOL= ENABLE_LDAP
VIDEO_CMAKE_BOOL= ENABLE_VIDEO

View File

@ -11,8 +11,7 @@ WWW= https://github.com/lualdap/lualdap
LICENSE= MIT
USES= gmake lua:module
USE_OPENLDAP= yes
USES= gmake ldap lua:module
USE_GITHUB= yes
USE_CSTD= c99

Some files were not shown because too many files have changed in this diff Show More