Lines 17-38
MASTER_SITES= https://www.openldap.org/software/download/OpenLDAP/%SUBDIR%/ \
Link Here
|
17 |
http://www.openldap.org/software/download/OpenLDAP/%SUBDIR%/ |
17 |
http://www.openldap.org/software/download/OpenLDAP/%SUBDIR%/ |
18 |
MASTER_SITE_SUBDIR= openldap-release |
18 |
MASTER_SITE_SUBDIR= openldap-release |
19 |
.if defined(CLIENT_ONLY) |
19 |
.if defined(CLIENT_ONLY) |
20 |
.if ${CLIENT_ONLY} == sasl |
|
|
21 |
PKGNAMESUFFIX= -sasl-client |
22 |
.else |
23 |
PKGNAMESUFFIX= -client |
20 |
PKGNAMESUFFIX= -client |
24 |
.endif |
|
|
25 |
.else |
21 |
.else |
26 |
PKGNAMESUFFIX?= -server |
22 |
PKGNAMESUFFIX?= -server |
27 |
.endif |
23 |
.endif |
28 |
|
24 |
|
29 |
MAINTAINER= delphij@FreeBSD.org |
25 |
MAINTAINER= delphij@FreeBSD.org |
30 |
.if defined(CLIENT_ONLY) |
26 |
.if defined(CLIENT_ONLY) |
31 |
.if ${CLIENT_ONLY} == sasl |
|
|
32 |
COMMENT= Open source LDAP client implementation with SASL2 support |
33 |
.else |
34 |
COMMENT= Open source LDAP client implementation |
27 |
COMMENT= Open source LDAP client implementation |
35 |
.endif |
|
|
36 |
.else |
28 |
.else |
37 |
COMMENT= Open source LDAP server implementation |
29 |
COMMENT= Open source LDAP server implementation |
38 |
.endif |
30 |
.endif |
Lines 43-55
LICENSE_FILE= ${WRKSRC}/LICENSE
Link Here
|
43 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
35 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
44 |
|
36 |
|
45 |
.if defined(CLIENT_ONLY) |
37 |
.if defined(CLIENT_ONLY) |
46 |
.if ${CLIENT_ONLY} == sasl |
38 |
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.[0-35-9].* |
47 |
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.* \ |
|
|
48 |
${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.[0-3].* |
49 |
.else |
50 |
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.[0-3].* \ |
51 |
${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.* |
52 |
.endif |
53 |
.endif |
39 |
.endif |
54 |
|
40 |
|
55 |
GNU_CONFIGURE= yes |
41 |
GNU_CONFIGURE= yes |
Lines 67-74
WANT_OPENLDAP_VER?= 24
Link Here
|
67 |
BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER} |
53 |
BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER} |
68 |
.endif |
54 |
.endif |
69 |
|
55 |
|
70 |
PORTREVISION_CLIENT= 0 |
56 |
PORTREVISION_CLIENT= 1 |
71 |
PORTREVISION_SERVER= 0 |
57 |
PORTREVISION_SERVER= 1 |
72 |
OPENLDAP_SHLIB_MAJOR= 2 |
58 |
OPENLDAP_SHLIB_MAJOR= 2 |
73 |
OPENLDAP_SHLIB_MINOR= 11.7 |
59 |
OPENLDAP_SHLIB_MINOR= 11.7 |
74 |
OPENLDAP_MAJOR= ${DISTVERSION:R} |
60 |
OPENLDAP_MAJOR= ${DISTVERSION:R} |
Lines 76-82
OPENLDAP_MAJOR= ${DISTVERSION:R}
Link Here
|
76 |
OPTIONS_DEFINE= DEBUG FETCH GSSAPI |
62 |
OPTIONS_DEFINE= DEBUG FETCH GSSAPI |
77 |
|
63 |
|
78 |
FETCH_DESC= Enable fetch(3) support |
64 |
FETCH_DESC= Enable fetch(3) support |
79 |
GSSAPI_DESC= With GSSAPI support (implies SASL support) |
65 |
GSSAPI_DESC= With GSSAPI support |
80 |
|
66 |
|
81 |
.if defined(CLIENT_ONLY) |
67 |
.if defined(CLIENT_ONLY) |
82 |
OPTIONS_DEFINE+= DOCS |
68 |
OPTIONS_DEFINE+= DOCS |
Lines 86-92
OPTIONS_DEFINE+= SOCK ODBC RLOOKUPS SLP SLAPI TCP_WRAPPERS
Link Here
|
86 |
OPTIONS_DEFINE+= ACCESSLOG AUDITLOG COLLECT CONSTRAINT DDS |
72 |
OPTIONS_DEFINE+= ACCESSLOG AUDITLOG COLLECT CONSTRAINT DDS |
87 |
OPTIONS_DEFINE+= DEREF DYNGROUP DYNLIST MEMBEROF PPOLICY PCACHE |
73 |
OPTIONS_DEFINE+= DEREF DYNGROUP DYNLIST MEMBEROF PPOLICY PCACHE |
88 |
OPTIONS_DEFINE+= REFINT RETCODE RWM SEQMOD SSSVLV SYNCPROV TRANSLUCENT |
74 |
OPTIONS_DEFINE+= REFINT RETCODE RWM SEQMOD SSSVLV SYNCPROV TRANSLUCENT |
89 |
OPTIONS_DEFINE+= UNIQUE VALSORT SMBPWD SHA2 DYNAMIC_BACKENDS SASL |
75 |
OPTIONS_DEFINE+= UNIQUE VALSORT SMBPWD SHA2 DYNAMIC_BACKENDS |
90 |
OPTIONS_DEFINE+= LMPASSWD |
76 |
OPTIONS_DEFINE+= LMPASSWD |
91 |
OPTIONS_DEFINE+= PBKDF2 |
77 |
OPTIONS_DEFINE+= PBKDF2 |
92 |
OPTIONS_DEFINE+= OUTLOOK |
78 |
OPTIONS_DEFINE+= OUTLOOK |
Lines 132-138
PCACHE_DESC= With Proxy Cache overlay
Link Here
|
132 |
REFINT_DESC= With Referential Integrity overlay |
118 |
REFINT_DESC= With Referential Integrity overlay |
133 |
RETCODE_DESC= With Return Code testing overlay |
119 |
RETCODE_DESC= With Return Code testing overlay |
134 |
RWM_DESC= With Rewrite/Remap overlay |
120 |
RWM_DESC= With Rewrite/Remap overlay |
135 |
SASL_DESC= With (Cyrus) SASL2 support |
|
|
136 |
SEQMOD_DESC= With Sequential Modify overlay |
121 |
SEQMOD_DESC= With Sequential Modify overlay |
137 |
SSSVLV_DESC= With ServerSideSort/VLV overlay |
122 |
SSSVLV_DESC= With ServerSideSort/VLV overlay |
138 |
SYNCPROV_DESC= With Syncrepl Provider overlay |
123 |
SYNCPROV_DESC= With Syncrepl Provider overlay |
Lines 165-173
CONFIGURE_SED= -e 's,uuid/uuid.h,xxuuid/uuid.h,g'
Link Here
|
165 |
.if defined(CLIENT_ONLY) |
150 |
.if defined(CLIENT_ONLY) |
166 |
PORTDOCS= CHANGES drafts rfc |
151 |
PORTDOCS= CHANGES drafts rfc |
167 |
|
152 |
|
168 |
.if ${CLIENT_ONLY} == sasl |
|
|
169 |
PORT_OPTIONS+= SASL |
170 |
.endif |
171 |
.if defined(USE_OPENLDAP) |
153 |
.if defined(USE_OPENLDAP) |
172 |
BROKEN= you have USE_OPENLDAP variable defined either in environment or in make(1) arguments; please undefine and try again |
154 |
BROKEN= you have USE_OPENLDAP variable defined either in environment or in make(1) arguments; please undefine and try again |
173 |
.endif |
155 |
.endif |
Lines 176-197
USE_OPENLDAP= yes
Link Here
|
176 |
WANT_OPENLDAP_VER= 24 |
158 |
WANT_OPENLDAP_VER= 24 |
177 |
|
159 |
|
178 |
LIB_DEPENDS+= libicudata.so:devel/icu |
160 |
LIB_DEPENDS+= libicudata.so:devel/icu |
179 |
|
|
|
180 |
.if ${PORT_OPTIONS:MGSSAPI} && empty(PORT_OPTIONS:MSASL) |
181 |
PORT_OPTIONS+= SASL |
182 |
.endif |
183 |
|
184 |
.if ${PORT_OPTIONS:MSASL} |
185 |
WANT_OPENLDAP_SASL= yes |
186 |
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.* |
187 |
PKGNAMESUFFIX= -sasl-server |
188 |
.if ${PORT_OPTIONS:MGSSAPI} |
189 |
RUN_DEPENDS+= cyrus-sasl-gssapi>0:security/cyrus-sasl2-gssapi |
190 |
.endif |
191 |
.else |
192 |
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.* |
193 |
.endif |
194 |
|
195 |
.endif |
161 |
.endif |
196 |
|
162 |
|
197 |
DESCR= ${PKGDIR}/pkg-descr${OPENLDAP_PKGFILESUFX} |
163 |
DESCR= ${PKGDIR}/pkg-descr${OPENLDAP_PKGFILESUFX} |
Lines 218-229
CONFIGURE_ARGS= --with-threads=posix \
Link Here
|
218 |
--disable-dependency-tracking \ |
184 |
--disable-dependency-tracking \ |
219 |
--enable-dynamic |
185 |
--enable-dynamic |
220 |
|
186 |
|
221 |
.if ${PORT_OPTIONS:MSASL} |
187 |
|
|
|
188 |
GSSAPI_RUN_DEPENDS+= cyrus-sasl-gssapi>0:security/cyrus-sasl2-gssapi |
189 |
|
222 |
LIB_DEPENDS+= libsasl2.so:security/cyrus-sasl2 |
190 |
LIB_DEPENDS+= libsasl2.so:security/cyrus-sasl2 |
223 |
CONFIGURE_ARGS+= --with-cyrus-sasl |
191 |
CONFIGURE_ARGS+= --with-cyrus-sasl |
224 |
.else |
|
|
225 |
CONFIGURE_ARGS+= --without-cyrus-sasl |
226 |
.endif |
227 |
|
192 |
|
228 |
.if defined(CLIENT_ONLY) |
193 |
.if defined(CLIENT_ONLY) |
229 |
# client specific configuration |
194 |
# client specific configuration |
Lines 523-531
PLIST_SUB+= BACK_PERL=${BACKEND_PLIST}
Link Here
|
523 |
PLIST_SUB+= BACK_PERL="@comment " |
488 |
PLIST_SUB+= BACK_PERL="@comment " |
524 |
.endif |
489 |
.endif |
525 |
|
490 |
|
526 |
.if ${PORT_OPTIONS:MSASL} |
|
|
527 |
CONFIGURE_ARGS+= --enable-spasswd |
491 |
CONFIGURE_ARGS+= --enable-spasswd |
528 |
.endif |
|
|
529 |
|
492 |
|
530 |
.if ${PORT_OPTIONS:MODBC} |
493 |
.if ${PORT_OPTIONS:MODBC} |
531 |
CONFIGURE_ARGS+= --enable-sql=${BACKEND_ENABLE} |
494 |
CONFIGURE_ARGS+= --enable-sql=${BACKEND_ENABLE} |