Lines 8-39
Link Here
|
8 |
MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/%SUBDIR%/ \ |
8 |
MASTER_SITES= ftp://ftp.OpenLDAP.org/pub/OpenLDAP/%SUBDIR%/ \ |
9 |
ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/%SUBDIR%/ \ |
9 |
ftp://gd.tuwien.ac.at/infosys/network/OpenLDAP/%SUBDIR%/ \ |
10 |
ftp://ftp.ntua.gr/mirror/OpenLDAP/%SUBDIR%/ \ |
10 |
ftp://ftp.ntua.gr/mirror/OpenLDAP/%SUBDIR%/ \ |
11 |
ftp://ftp.dti.ad.jp/pub/net/OpenLDAP/%SUBDIR%/ \ |
|
|
12 |
ftp://ftp.u-aizu.ac.jp/pub/net/openldap/%SUBDIR%/ \ |
11 |
ftp://ftp.u-aizu.ac.jp/pub/net/openldap/%SUBDIR%/ \ |
13 |
ftp://ftp.nl.uu.net/pub/unix/db/openldap/%SUBDIR%/ \ |
12 |
ftp://ftp.nl.uu.net/pub/unix/db/openldap/%SUBDIR%/ \ |
14 |
ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/%SUBDIR%/ \ |
13 |
ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/%SUBDIR%/ \ |
15 |
http://www.openldap.org/software/download/OpenLDAP/%SUBDIR%/ |
14 |
http://www.openldap.org/software/download/OpenLDAP/%SUBDIR%/ |
16 |
MASTER_SITE_SUBDIR= openldap-release |
15 |
MASTER_SITE_SUBDIR= openldap-release |
17 |
|
|
|
18 |
.if defined(CLIENT_ONLY) |
16 |
.if defined(CLIENT_ONLY) |
19 |
.if ${CLIENT_ONLY} == sasl |
17 |
.if ${CLIENT_ONLY} == sasl |
20 |
PKGNAMESUFFIX= -sasl-client |
18 |
PKGNAMESUFFIX= -sasl-client |
21 |
COMMENT= Open source LDAP client implementation with SASL2 support |
|
|
22 |
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.* \ |
23 |
${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.[0-3].* |
24 |
.else |
19 |
.else |
25 |
PKGNAMESUFFIX= -client |
20 |
PKGNAMESUFFIX= -client |
26 |
COMMENT= Open source LDAP client implementation |
|
|
27 |
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.[0-3].* \ |
28 |
${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.* |
29 |
.endif |
21 |
.endif |
30 |
.else |
22 |
.else |
31 |
PKGNAMESUFFIX?= -server |
23 |
PKGNAMESUFFIX?= -server |
32 |
.endif |
24 |
.endif |
33 |
EXTRACT_SUFX= .tgz |
|
|
34 |
|
25 |
|
35 |
MAINTAINER= delphij@FreeBSD.org |
26 |
MAINTAINER= delphij@FreeBSD.org |
36 |
COMMENT?= Open source LDAP server implementation |
27 |
.if defined(CLIENT_ONLY) |
|
|
28 |
.if ${CLIENT_ONLY} == sasl |
29 |
COMMENT= Open source LDAP client implementation with SASL2 support |
30 |
.else |
31 |
COMMENT= Open source LDAP client implementation |
32 |
.endif |
33 |
.else |
34 |
COMMENT= Open source LDAP server implementation |
35 |
.endif |
37 |
|
36 |
|
38 |
LICENSE= OPENLDAP |
37 |
LICENSE= OPENLDAP |
39 |
LICENSE_NAME= OpenLDAP Public License |
38 |
LICENSE_NAME= OpenLDAP Public License |
Lines 40-48
Link Here
|
40 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
39 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
41 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
40 |
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
42 |
|
41 |
|
|
|
42 |
.if defined(CLIENT_ONLY) |
43 |
.if ${CLIENT_ONLY} == sasl |
44 |
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.* \ |
45 |
${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.[0-3].* |
46 |
.else |
47 |
CONFLICTS= ${PKGNAMEPREFIX}${PORTNAME}-client-2.[0-3].* \ |
48 |
${PKGNAMEPREFIX}${PORTNAME}-sasl-client-2.* |
49 |
.endif |
50 |
.endif |
51 |
|
43 |
GNU_CONFIGURE= yes |
52 |
GNU_CONFIGURE= yes |
44 |
# :keepla because port uses lt_dlopen |
53 |
# :keepla because port uses lt_dlopen |
45 |
USES= cpe libtool:keepla ssl |
54 |
USES= cpe libtool:keepla ssl tar:tgz |
46 |
.if !defined(CLIENT_ONLY) |
55 |
.if !defined(CLIENT_ONLY) |
47 |
USERS= ldap |
56 |
USERS= ldap |
48 |
GROUPS= ldap |
57 |
GROUPS= ldap |
Lines 217-223
Link Here
|
217 |
|
226 |
|
218 |
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-Makefile.in |
227 |
EXTRA_PATCHES+= ${FILESDIR}/extrapatch-Makefile.in |
219 |
|
228 |
|
220 |
.if ${PORT_OPTIONS:MMODULES} || ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSLAPI} |
229 |
.if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSLAPI} |
221 |
LIB_DEPENDS+= libltdl.so:devel/libltdl |
230 |
LIB_DEPENDS+= libltdl.so:devel/libltdl |
222 |
CONFIGURE_ARGS+= --enable-modules |
231 |
CONFIGURE_ARGS+= --enable-modules |
223 |
PLIST_SUB+= MODULES="" |
232 |
PLIST_SUB+= MODULES="" |
Lines 556-596
Link Here
|
556 |
|
565 |
|
557 |
pre-install: |
566 |
pre-install: |
558 |
.if !defined(CLIENT_ONLY) |
567 |
.if !defined(CLIENT_ONLY) |
559 |
@${MKDIR} ${STAGEDIR}${DATABASEDIR} |
568 |
${MKDIR} ${STAGEDIR}${DATABASEDIR} |
560 |
.endif |
569 |
.endif |
561 |
|
570 |
|
562 |
post-install: |
571 |
post-install: |
563 |
.if defined(CLIENT_ONLY) |
572 |
.if defined(CLIENT_ONLY) |
564 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
573 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
565 |
@${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR} |
574 |
${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR} |
566 |
@for dir in drafts rfc; do \ |
575 |
for dir in drafts rfc; do \ |
567 |
${MKDIR} ${STAGEDIR}${DOCSDIR}/$${dir}; \ |
576 |
${MKDIR} ${STAGEDIR}${DOCSDIR}/$${dir}; \ |
568 |
${INSTALL_DATA} ${WRKSRC}/doc/$${dir}/* ${STAGEDIR}${DOCSDIR}/$${dir}; \ |
577 |
${INSTALL_DATA} ${WRKSRC}/doc/$${dir}/* ${STAGEDIR}${DOCSDIR}/$${dir}; \ |
569 |
done |
578 |
done |
570 |
@for prog in ldapcompare ldapdelete ldapexop ldapmodify ldapmodrdn ldappasswd ldapsearch ldapurl ldapwhoami; do\ |
579 |
for prog in ldapcompare ldapdelete ldapexop ldapmodify ldapmodrdn ldappasswd ldapsearch ldapurl ldapwhoami; do\ |
571 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/$${prog}; \ |
580 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/$${prog}; \ |
572 |
done |
581 |
done |
573 |
|
582 |
|
574 |
@for library in lber ldap ldap_r; do \ |
583 |
for library in lber ldap ldap_r; do \ |
575 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib$${library}-${OPENLDAP_MAJOR}.so.${OPENLDAP_SHLIB_MAJOR}; \ |
584 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib$${library}-${OPENLDAP_MAJOR}.so.${OPENLDAP_SHLIB_MAJOR}; \ |
576 |
done |
585 |
done |
577 |
.else |
586 |
.else |
578 |
@${MKDIR} ${STAGEDIR}${LDAP_RUN_DIR} |
587 |
${MKDIR} ${STAGEDIR}${LDAP_RUN_DIR} |
579 |
.if ${PORT_OPTIONS:MSMBPWD} |
588 |
.if ${PORT_OPTIONS:MSMBPWD} |
580 |
@(cd ${WRKSRC}/contrib/slapd-modules/smbk5pwd && \ |
589 |
(cd ${WRKSRC}/contrib/slapd-modules/smbk5pwd && \ |
581 |
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \ |
590 |
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \ |
582 |
${MAKE_ARGS} prefix="${PREFIX}" install) |
591 |
${MAKE_ARGS} prefix="${PREFIX}" install) |
583 |
${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/smbk5pwd.a |
592 |
${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/smbk5pwd.a |
584 |
.endif |
593 |
.endif |
585 |
.if ${PORT_OPTIONS:MSHA2} |
594 |
.if ${PORT_OPTIONS:MSHA2} |
586 |
@(cd ${WRKSRC}/contrib/slapd-modules/passwd/sha2 && \ |
595 |
(cd ${WRKSRC}/contrib/slapd-modules/passwd/sha2 && \ |
587 |
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \ |
596 |
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \ |
588 |
${MAKE_ARGS} prefix="${PREFIX}" install) |
597 |
${MAKE_ARGS} prefix="${PREFIX}" install) |
589 |
${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/pw-sha2.a |
598 |
${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/pw-sha2.a |
590 |
.endif |
599 |
.endif |
591 |
.if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSMBPWD} || ${PORT_OPTIONS:MSHA2} |
600 |
.if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSMBPWD} || ${PORT_OPTIONS:MSHA2} |
592 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/openldap/*.so |
601 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/openldap/*.so |
593 |
.endif |
602 |
.endif |
594 |
.endif # defined(CLIENT_ONLY) |
603 |
.endif # defined(CLIENT_ONLY) |
|
|
604 |
.if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSLAPI} |
605 |
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/openldap |
606 |
.endif |
595 |
|
607 |
|
596 |
.include <bsd.port.post.mk> |
608 |
.include <bsd.port.post.mk> |