summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2005-09-10 14:26:48 +0000
committerclement <clement@FreeBSD.org>2005-09-10 14:26:48 +0000
commit80d53d275f9023c562d7168f37fc355dce3f1b22 (patch)
tree730af4067dcc915ec0da8fc39209250024b67895 /www
parentca7e4eb150b139db6b0618d95d6f1cc46ce11f90 (diff)
downloadFreeBSD-ports-80d53d275f9023c562d7168f37fc355dce3f1b22.zip
FreeBSD-ports-80d53d275f9023c562d7168f37fc355dce3f1b22.tar.gz
- Fix build if WITH_OPENSSL_BETA is defined.
PR: ports/85457 Submitted by: Daniel Roethlisberger <daniel@roe.ch>
Diffstat (limited to 'www')
-rw-r--r--www/apache2/Makefile4
-rw-r--r--www/apache2/files/build-fix-openssl_beta16
2 files changed, 20 insertions, 0 deletions
diff --git a/www/apache2/Makefile b/www/apache2/Makefile
index 44c46a7..f5d159a 100644
--- a/www/apache2/Makefile
+++ b/www/apache2/Makefile
@@ -45,6 +45,10 @@ IGNORE= : Please define WITH_KQUEUE_SUPPORT instead
EXTRA_PATCHES+= ${FILESDIR}/exp-apr-kqueue.patch
.endif
+.if defined(WITH_OPENSSL_BETA)
+EXTRA_PATCHES+= ${FILESDIR}/build-fix-openssl_beta
+.endif
+
SCRIPTS_ENV+= LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \
LIBTOOL_VERSION=${LIBTOOL_VERSION} AUTOCONF=${AUTOCONF} \
LIBTOOL_M4=${LOCALBASE}/share/aclocal/libtool${LIBTOOL_VERSION}.m4 \
diff --git a/www/apache2/files/build-fix-openssl_beta b/www/apache2/files/build-fix-openssl_beta
new file mode 100644
index 0000000..04f0187
--- /dev/null
+++ b/www/apache2/files/build-fix-openssl_beta
@@ -0,0 +1,16 @@
+--- modules/ssl/ssl_toolkit_compat.h.orig Fri Feb 4 21:21:18 2005
++++ modules/ssl/ssl_toolkit_compat.h Tue Aug 30 01:42:51 2005
+@@ -99,6 +99,13 @@
+ #define HAVE_SSL_X509V3_EXT_d2i
+ #endif
+
++#ifndef PEM_F_DEF_CALLBACK
++#ifdef PEM_F_PEM_DEF_CALLBACK
++/* In OpenSSL 0.9.8 PEM_F_DEF_CALLBACK was renamed */
++#define PEM_F_DEF_CALLBACK PEM_F_PEM_DEF_CALLBACK
++#endif
++#endif
++
+ #elif defined (SSLC_VERSION_NUMBER) /* RSA */
+
+ /* sslc does not support this function, OpenSSL has since 9.5.1 */
OpenPOWER on IntegriCloud