Changeset View
Changeset View
Standalone View
Standalone View
net/openldap24-server/Makefile
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | |||||
CONFIGURE_ARGS= --with-threads=posix \ | CONFIGURE_ARGS= --with-threads=posix \ | ||||
--with-tls=openssl \ | --with-tls=openssl \ | ||||
--disable-dependency-tracking \ | --disable-dependency-tracking \ | ||||
--enable-dynamic | --enable-dynamic | ||||
# XXX FreeBSD does not implement O_DSYNC and fdatasync at this time. | # XXX FreeBSD does not implement O_DSYNC and fdatasync at this time. | ||||
CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync | CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync | ||||
.if !${PORT_OPTIONS:MFETCH} | |||||
CONFIGURE_ARGS+= --without-fetch | |||||
.else | |||||
. if defined(OPENSSL_INSTALLED) && ${OPENSSL_INSTALLED} != "" || defined(WITH_OPENSSL_PORT) | |||||
BROKEN= using OpenSSL from ports and OPTION FETCH together is not supported | |||||
. endif | |||||
.endif | |||||
.if ${PORT_OPTIONS:MSASL} | .if ${PORT_OPTIONS:MSASL} | ||||
LIB_DEPENDS+= libsasl2.so:security/cyrus-sasl2 | LIB_DEPENDS+= libsasl2.so:security/cyrus-sasl2 | ||||
CONFIGURE_ARGS+= --with-cyrus-sasl | CONFIGURE_ARGS+= --with-cyrus-sasl | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --without-cyrus-sasl | CONFIGURE_ARGS+= --without-cyrus-sasl | ||||
.endif | .endif | ||||
.if defined(CLIENT_ONLY) | .if defined(CLIENT_ONLY) | ||||
▲ Show 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | SUB_LIST+= RC_DIR=${PREFIX} \ | ||||
DATABASEDIR=${DATABASEDIR} | DATABASEDIR=${DATABASEDIR} | ||||
.endif | .endif | ||||
PLIST_SUB+= ${SUB_LIST} | PLIST_SUB+= ${SUB_LIST} | ||||
PLIST_SUB+= SHLIB_MAJOR=${OPENLDAP_SHLIB_MAJOR} | PLIST_SUB+= SHLIB_MAJOR=${OPENLDAP_SHLIB_MAJOR} | ||||
PLIST_SUB+= SHLIB_MINOR=${OPENLDAP_SHLIB_MINOR} | PLIST_SUB+= SHLIB_MINOR=${OPENLDAP_SHLIB_MINOR} | ||||
PLIST_SUB+= OPENLDAP_MAJOR=${OPENLDAP_MAJOR} | PLIST_SUB+= OPENLDAP_MAJOR=${OPENLDAP_MAJOR} | ||||
.include <bsd.port.pre.mk> | |||||
.if !${PORT_OPTIONS:MFETCH} | |||||
CONFIGURE_ARGS+= --without-fetch | |||||
.else | |||||
. if defined(OPENSSL_INSTALLED) && ${OPENSSL_INSTALLED} != "" || ${SSL_DEFAULT} != base | |||||
BROKEN= using OpenSSL from ports and OPTION FETCH together is not supported | |||||
. endif | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|%LOCALSTATEDIR%/run/|${LDAP_RUN_DIR}/|g' \ | @${REINPLACE_CMD} -e 's|%LOCALSTATEDIR%/run/|${LDAP_RUN_DIR}/|g' \ | ||||
${SED_MODULES} ${WRKSRC}/servers/slapd/slapd.conf | ${SED_MODULES} ${WRKSRC}/servers/slapd/slapd.conf | ||||
@${REINPLACE_CMD} -e 's|^OPT =.*|OPT = ${CFLAGS}|g' \ | @${REINPLACE_CMD} -e 's|^OPT =.*|OPT = ${CFLAGS}|g' \ | ||||
-e 's|^CC =.*|CC = ${CC}|g' \ | -e 's|^CC =.*|CC = ${CC}|g' \ | ||||
${SED_MODULES} ${WRKSRC}/contrib/slapd-modules/*/Makefile \ | ${SED_MODULES} ${WRKSRC}/contrib/slapd-modules/*/Makefile \ | ||||
${WRKSRC}/contrib/slapd-modules/*/*/Makefile | ${WRKSRC}/contrib/slapd-modules/*/*/Makefile | ||||
.if defined(CONFIGURE_SED) | .if defined(CONFIGURE_SED) | ||||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | @(cd ${WRKSRC}/contrib/slapd-modules/passwd/sha2 && \ | ||||
${MAKE_ARGS} prefix="${PREFIX}" install) | ${MAKE_ARGS} prefix="${PREFIX}" install) | ||||
${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/pw-sha2.a | ${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/pw-sha2.a | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSMBPWD} || ${PORT_OPTIONS:MSHA2} | .if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSMBPWD} || ${PORT_OPTIONS:MSHA2} | ||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/openldap/*.so | @${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/openldap/*.so | ||||
.endif | .endif | ||||
.endif # defined(CLIENT_ONLY) | .endif # defined(CLIENT_ONLY) | ||||
.include <bsd.port.mk> | .include <bsd.port.post.mk> |