aboutsummaryrefslogtreecommitdiff
path: root/www/mod_php5
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-11-07 01:49:57 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-11-07 01:49:57 +0000
commit866036dc8085557514d394ec9ac7dbd17e478592 (patch)
treee0d28dd7622fe59b8a485c43f9894db7436e7b8c /www/mod_php5
parent0063086e56e1ef90d4c1c6315c7e3f619d094950 (diff)
downloadports-866036dc8085557514d394ec9ac7dbd17e478592.tar.gz
ports-866036dc8085557514d394ec9ac7dbd17e478592.zip
Conditionalize all my patches
Notes
Notes: svn path=/head/; revision=4326
Diffstat (limited to 'www/mod_php5')
-rw-r--r--www/mod_php5/Makefile35
-rw-r--r--www/mod_php5/distinfo2
2 files changed, 36 insertions, 1 deletions
diff --git a/www/mod_php5/Makefile b/www/mod_php5/Makefile
index a92c153898a7..6b911bf6d6c1 100644
--- a/www/mod_php5/Makefile
+++ b/www/mod_php5/Makefile
@@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
-# $Id: Makefile,v 1.18 1996/10/26 18:49:52 markm Exp $
+# $Id: Makefile,v 1.19 1996/10/31 17:42:13 markm Exp $
#
DISTNAME= apache_1.1.1
@@ -13,6 +13,39 @@ MASTER_SITES= ftp://www.apache.org/apache/dist/
MAINTAINER= ache@freebsd.org
+# User-controlled variables list
+# CHARSET_ACHE - add charset negotiation to .var files and charset guessing
+# DIR_ACHE - add SuppressHTMLPreamble option to directory index
+# ALL_ACHE - both patches from above
+# SECURE_SERVER - build Apache with SSL
+
+.if defined(ALL_ACHE)
+CHARSET_ACHE=YES
+DIR_ACHE=YES
+.endif
+.if defined(CHARSET_ACHE) || defined(DIR_ACHE)
+PATCH_SITES+= http://www.nagual.ru/~ache/
+.endif
+.if defined(CHARSET_ACHE)
+PATCHFILES+= mod.patch
+VERS_ID1= charset/
+.endif
+.if defined(DIR_ACHE)
+PATCHFILES+= dir.patch
+VERS_ID2= dir/
+.endif
+.if defined(VERS_ID1) || defined(VERS_ID2)
+VERS_ID= ${VERS_ID1}${VERS_ID2}ache
+.endif
+
+.if defined(VERS_ID)
+post-patch:
+ @cd ${WRKSRC}/src; \
+ mv httpd.h httpd.h.old; \
+ sed 's=SERVER_VERSION *"\(.*\)"=SERVER_VERSION "\1 '"${VERS_ID}"'"=' \
+ < httpd.h.old > httpd.h
+.endif
+
.if defined(SECURE_SERVER)
PKGNAME= apache_SSL-1.1.1
diff --git a/www/mod_php5/distinfo b/www/mod_php5/distinfo
index 1426022ab32e..514ab3bc56da 100644
--- a/www/mod_php5/distinfo
+++ b/www/mod_php5/distinfo
@@ -1 +1,3 @@
MD5 (apache_1.1.1.tar.gz) = 0dc9c3a3148d2acf419dd926018003c3
+MD5 (mod.patch) = ae4c7ec8520bd384f7552f4dd5f4151e
+MD5 (dir.patch) = d840a0a1b484a1820e246ed1effcf561