summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-09-08 08:59:54 +0000
committerXin LI <delphij@FreeBSD.org>2013-09-08 08:59:54 +0000
commit917ad9bb34b6e8438f37a5203afaae2d904ebf15 (patch)
treedc9b701d6a47e05a89b80d9fa1db700bcf96b6c5
parent- Fix openbox-gnome-session script which wasn't functional because (diff)
Don't assume that the user have gcc and do not override default CFLAGS.
PR: ports/181929 Reported by: O. Hartmann <ohartman zedat fu-berlin de>
Notes
Notes: svn path=/head/; revision=326714
-rw-r--r--net/openldap24-server/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/openldap24-server/Makefile b/net/openldap24-server/Makefile
index 53d9a701d067..1c26f9dacc89 100644
--- a/net/openldap24-server/Makefile
+++ b/net/openldap24-server/Makefile
@@ -56,7 +56,7 @@ BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER}
.endif
PORTREVISION_CLIENT= 0
-PORTREVISION_SERVER= 0
+PORTREVISION_SERVER= 1
OPENLDAP_SHLIB_MAJOR= 8
OPTIONS_DEFINE= FETCH
@@ -501,6 +501,10 @@ PLIST_SUB+= SHLIB_MAJOR=${OPENLDAP_SHLIB_MAJOR}
post-patch:
@${REINPLACE_CMD} -e 's,%LOCALSTATEDIR%/run/,${LDAP_RUN_DIR}/,g' \
${SED_MODULES} ${WRKSRC}/servers/slapd/slapd.conf
+ @${REINPLACE_CMD} -e 's,^OPT =.*,OPT = ${CFLAGS},g' \
+ -e 's,^CC =.*,CC = ${CC},g' \
+ ${SED_MODULES} ${WRKSRC}/contrib/slapd-modules/*/Makefile \
+ ${WRKSRC}/contrib/slapd-modules/*/*/Makefile
.if defined(CONFIGURE_SED)
@${REINPLACE_CMD} -E ${CONFIGURE_SED} \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}