summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2006-12-10 15:04:17 +0000
committerAlex Dupre <ale@FreeBSD.org>2006-12-10 15:04:17 +0000
commit634f61a445bc7fc5a8b38a66651d58db2a4bcf83 (patch)
tree788060a8e70416c9348df6725053036df5feeafb /lang/php5
parent- update to 2.0.3 (diff)
Add optional mail header patch, to track php-based spamming.
Notes
Notes: svn path=/head/; revision=179387
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile13
-rw-r--r--lang/php5/distinfo3
2 files changed, 13 insertions, 3 deletions
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index c4abfde0ca0d..f8fe55613248 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -46,6 +46,7 @@ OPTIONS= CLI "Build CLI version" on \
SUHOSIN "Enable Suhosin protection system" on \
MULTIBYTE "Enable zend multibyte support" off \
IPV6 "Enable ipv6 support" on \
+ MAILHEAD "Enable mail header patch" off \
REDIRECT "Enable force-cgi-redirect support (CGI only)" off \
DISCARD "Enable discard-path support (CGI only)" off \
FASTCGI "Enable fastcgi support (CGI only)" on \
@@ -57,15 +58,21 @@ MAN1= php-config.1 phpize.1
.include <bsd.port.pre.mk>
-.if !defined(WITHOUT_SUHOSIN)
-PATCHFILES= suhosin-patch-${PORTVERSION}-0.9.6.2.patch.gz
-PATCH_SITES= http://www.hardened-php.net/suhosin/_media/
PATCH_DIST_STRIP= -p1
+
+.if !defined(WITHOUT_SUHOSIN)
+PATCHFILES+= suhosin-patch-${PORTVERSION}-0.9.6.2.patch.gz:suhosin
+PATCH_SITES+= http://www.hardened-php.net/suhosin/_media/:suhosin
PLIST_SUB+= SUHOSIN=""
.else
PLIST_SUB+= SUHOSIN="@comment "
.endif
+.if defined(WITH_MAILHEAD)
+PATCHFILES+= php-${PORTVERSION}-mail-header.patch:mail
+PATCH_SITES+= http://choon.net/opensource/php/:mail
+.endif
+
.if !defined(WITHOUT_CLI)
PHP_SAPI+= cli
PLIST_SUB+= CLI=""
diff --git a/lang/php5/distinfo b/lang/php5/distinfo
index bd131cbe9c77..5570311ee32f 100644
--- a/lang/php5/distinfo
+++ b/lang/php5/distinfo
@@ -4,3 +4,6 @@ SIZE (php-5.2.0.tar.bz2) = 6789838
MD5 (suhosin-patch-5.2.0-0.9.6.2.patch.gz) = 621ec57f10345cc58b29b189d89aecce
SHA256 (suhosin-patch-5.2.0-0.9.6.2.patch.gz) = a67ee0d4c69b01784aba23a74d12fb1182bdca2f85ed2f12325a302ebbe319e9
SIZE (suhosin-patch-5.2.0-0.9.6.2.patch.gz) = 23115
+MD5 (php-5.2.0-mail-header.patch) = 36f876b692a9a407874c39b71c39ac83
+SHA256 (php-5.2.0-mail-header.patch) = 9955ec5fc79d2444ba507f4524acb1957bc65419be95b13e363a922a2021418a
+SIZE (php-5.2.0-mail-header.patch) = 3420