Add optional mail header patch, to track php-based spamming.

This commit is contained in:
Alex Dupre 2006-12-10 15:04:17 +00:00
parent f4cb83eeb5
commit 634f61a445
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179387
4 changed files with 26 additions and 6 deletions

View file

@ -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=""

View file

@ -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

View file

@ -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=""

View file

@ -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