aboutsummaryrefslogtreecommitdiff
path: root/www/apache22
diff options
context:
space:
mode:
authorOlli Hauer <ohauer@FreeBSD.org>2014-04-08 23:33:57 +0000
committerOlli Hauer <ohauer@FreeBSD.org>2014-04-08 23:33:57 +0000
commit9036e665643ff14f7c7fa8e56be6a9f4058f5676 (patch)
tree8f7f1965aa4290ced8de31e88a7d8236c061a7be /www/apache22
parentd6dbb867bfa39273d01ea1dc8e89385b60c1d149 (diff)
downloadports-9036e665643ff14f7c7fa8e56be6a9f4058f5676.tar.gz
ports-9036e665643ff14f7c7fa8e56be6a9f4058f5676.zip
Notes
Diffstat (limited to 'www/apache22')
-rw-r--r--www/apache22/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/www/apache22/Makefile b/www/apache22/Makefile
index 79fafe0a1591..db1cf7116a29 100644
--- a/www/apache22/Makefile
+++ b/www/apache22/Makefile
@@ -2,7 +2,7 @@
PORTNAME= apache22
PORTVERSION= 2.2.27
-#PORTREVISION?= 1
+PORTREVISION?= 1
CATEGORIES= www ipv6
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD}
DISTNAME= httpd-${PORTVERSION}
@@ -149,6 +149,15 @@ post-patch:
@${RM} -rf ${WRKSRC}/srclib
@${REINPLACE_CMD} -e 's/srclib//' ${WRKSRC}/Makefile.in
+# Fix build on FreeBSD-10+ with OpenSSL from ports
+.if ${PORT_OPTIONS:MSSL}
+. if ${OPSYS} == FreeBSD && ${OSVERSION} > 1000000
+. if defined(OPENSSL_INSTALLED) && ${OPENSSL_INSTALLED} != ""
+ ${REINPLACE_CMD} -e "s|(ALL_CFLAGS)|(ALL_CFLAGS) -L${OPENSSLLIB}|" ${WRKSRC}/build/rules.mk.in
+. endif
+. endif
+.endif
+
post-configure:
@FTPUSERS=`${EGREP} -v '^#' /etc/ftpusers| ${TR} -s "\n" " "` ;\
${REINPLACE_CMD} -e "s,%%FTPUSERS%%,$${FTPUSERS}," ${WRKSRC}/docs/conf/extra/httpd-userdir.conf