aboutsummaryrefslogtreecommitdiffstats
path: root/net/openldap24-server
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-10-06 02:25:26 +0800
committertijl <tijl@FreeBSD.org>2014-10-06 02:25:26 +0800
commit85ec7fa4b5028987337f50bc22bac4613f260893 (patch)
tree7412816200d5f8866bccb69e0be472ae98547719 /net/openldap24-server
parent693cb6a1a7362fa6971ec1a4629d6612486b41ec (diff)
downloadfreebsd-ports-gnome-85ec7fa4b5028987337f50bc22bac4613f260893.tar.gz
freebsd-ports-gnome-85ec7fa4b5028987337f50bc22bac4613f260893.tar.zst
freebsd-ports-gnome-85ec7fa4b5028987337f50bc22bac4613f260893.zip
Allow installing contrib modules in a different prefix than /usr/local
PR: 194160 Submitted by: jhujhiti@adjectivism.org
Diffstat (limited to 'net/openldap24-server')
-rw-r--r--net/openldap24-server/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/net/openldap24-server/Makefile b/net/openldap24-server/Makefile
index 372b65d1d4b5..791b036df784 100644
--- a/net/openldap24-server/Makefile
+++ b/net/openldap24-server/Makefile
@@ -514,12 +514,14 @@ test: build
post-build:
@${DO_NADA}
.if ${PORT_OPTIONS:MSMBPWD}
- @(cd ${BUILD_WRKSRC}/contrib/slapd-modules/smbk5pwd && ${SETENV} ${MAKE_ENV} \
- ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} DEFS="-DDO_SAMBA" all)
+ @(cd ${BUILD_WRKSRC}/contrib/slapd-modules/smbk5pwd && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${MAKE_ARGS} DEFS="-DDO_SAMBA" prefix="${PREFIX}" all)
.endif
.if ${PORT_OPTIONS:MSHA2}
- @(cd ${BUILD_WRKSRC}/contrib/slapd-modules/passwd/sha2 && ${SETENV} ${MAKE_ENV} \
- ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} all)
+ @(cd ${BUILD_WRKSRC}/contrib/slapd-modules/passwd/sha2 && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${MAKE_ARGS} prefix="${PREFIX}" all)
.endif
.endif
@@ -542,13 +544,15 @@ post-install:
.else
@${MKDIR} ${STAGEDIR}${LDAP_RUN_DIR}
.if ${PORT_OPTIONS:MSMBPWD}
- @(cd ${WRKSRC}/contrib/slapd-modules/smbk5pwd && ${SETENV} ${MAKE_ENV} \
- ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install)
+ @(cd ${WRKSRC}/contrib/slapd-modules/smbk5pwd && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${MAKE_ARGS} prefix="${PREFIX}" install)
${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/smbk5pwd.a
.endif
.if ${PORT_OPTIONS:MSHA2}
- @(cd ${WRKSRC}/contrib/slapd-modules/passwd/sha2 && ${SETENV} ${MAKE_ENV} \
- ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install)
+ @(cd ${WRKSRC}/contrib/slapd-modules/passwd/sha2 && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} \
+ ${MAKE_ARGS} prefix="${PREFIX}" install)
${RM} ${STAGEDIR}${PREFIX}/libexec/openldap/pw-sha2.a
.endif
.if ${PORT_OPTIONS:MDYNAMIC_BACKENDS} || ${PORT_OPTIONS:MSMBPWD} || ${PORT_OPTIONS:MSHA2}