diff options
author | adrianp <adrianp@pkgsrc.org> | 2009-02-17 23:18:55 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2009-02-17 23:18:55 +0000 |
commit | 46bfde2939cd7cfd1e5406cdb2fb11774acd8c8b (patch) | |
tree | e6b1a0c4934921192e954300693f647dccaffbfe /lang | |
parent | 379652f746e6e02b1b5751ae1e8cc8eed6e7ba0f (diff) | |
download | pkgsrc-46bfde2939cd7cfd1e5406cdb2fb11774acd8c8b.tar.gz |
Add Suhosin patch support via options.mk - no change to default package.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php5/MESSAGE.suhosin | 7 | ||||
-rw-r--r-- | lang/php5/Makefile.php | 14 | ||||
-rw-r--r-- | lang/php5/PLIST | 5 | ||||
-rw-r--r-- | lang/php5/distinfo | 5 |
4 files changed, 27 insertions, 4 deletions
diff --git a/lang/php5/MESSAGE.suhosin b/lang/php5/MESSAGE.suhosin new file mode 100644 index 00000000000..8033ed91582 --- /dev/null +++ b/lang/php5/MESSAGE.suhosin @@ -0,0 +1,7 @@ +=========================================================================== +$NetBSD: MESSAGE.suhosin,v 1.1 2009/02/17 23:18:55 adrianp Exp $ + +As you have chosen to install the Suhosin patch you may also want to +install the Suhosin extension which can be found in security/php-suhosin. + +=========================================================================== diff --git a/lang/php5/Makefile.php b/lang/php5/Makefile.php index e2fc85af7c9..0787567aea4 100644 --- a/lang/php5/Makefile.php +++ b/lang/php5/Makefile.php @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.php,v 1.30 2009/02/07 18:03:00 adrianp Exp $ +# $NetBSD: Makefile.php,v 1.31 2009/02/17 23:18:55 adrianp Exp $ # .include "../../lang/php5/Makefile.common" @@ -10,6 +10,7 @@ USE_LIBTOOL= YES USE_LANGUAGES= c c++ GNU_CONFIGURE= YES BUILD_DEFS+= VARBASE +PLIST_VARS+= suhosin CONFIGURE_ENV+= EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}" @@ -41,7 +42,7 @@ CONFIGURE_ARGS+= --with-libxml-dir=${PREFIX:Q} # Note: This expression is the same as ${PKGBASE}, but the latter is # not defined yet, so we cannot use it here. PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} -PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts +PKG_SUPPORTED_OPTIONS+= inet6 ssl maintainer-zts suhosin PKG_SUGGESTED_OPTIONS+= ssl SUBST_CLASSES+= ini @@ -53,6 +54,15 @@ SUBST_MESSAGE.ini= Fixing default ini files. .include "../../mk/bsd.options.mk" +.if !empty(PKG_OPTIONS:Msuhosin) +PATCH_SITES= http://download.suhosin.org/ +PATCHFILES+= suhosin-patch-5.2.8-0.9.6.3.patch.gz +PATCH_DIST_STRIP= -p1 +PLIST.suhosin= yes +MESSAGE_SRC= ${PKGDIR}/MESSAGE +MESSAGE_SRC+= ${PKGDIR}/MESSAGE.suhosin +.endif + .if !empty(PKG_OPTIONS:Minet6) CONFIGURE_ARGS+= --enable-ipv6 .else diff --git a/lang/php5/PLIST b/lang/php5/PLIST index cbaf714f167..aaea7403790 100644 --- a/lang/php5/PLIST +++ b/lang/php5/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.19 2008/12/10 19:37:01 adrianp Exp $ +@comment $NetBSD: PLIST,v 1.20 2009/02/17 23:18:55 adrianp Exp $ bin/php bin/php-config bin/phpize @@ -201,6 +201,9 @@ include/php/main/streams/php_stream_transport.h include/php/main/streams/php_stream_userspace.h include/php/main/streams/php_streams_int.h include/php/main/win95nt.h +${PLIST.suhosin}include/php/main/suhosin_globals.h +${PLIST.suhosin}include/php/main/suhosin_logo.h +${PLIST.suhosin}include/php/main/suhosin_patch.h include/php/regex/cclass.h include/php/regex/cname.h include/php/regex/regex.h diff --git a/lang/php5/distinfo b/lang/php5/distinfo index 2ca2d6d00d6..37ecf5c1ef0 100644 --- a/lang/php5/distinfo +++ b/lang/php5/distinfo @@ -1,8 +1,11 @@ -$NetBSD: distinfo,v 1.57 2009/02/07 18:03:00 adrianp Exp $ +$NetBSD: distinfo,v 1.58 2009/02/17 23:18:55 adrianp Exp $ SHA1 (php-5.2.8/php-5.2.8.tar.bz2) = d285636144e0a4aa61195793634807e763c63dc3 RMD160 (php-5.2.8/php-5.2.8.tar.bz2) = d38fe5d918c335089a027600a93d950f417a7e98 Size (php-5.2.8/php-5.2.8.tar.bz2) = 9827180 bytes +SHA1 (php-5.2.8/suhosin-patch-5.2.8-0.9.6.3.patch.gz) = b1f12dd856778e734837819114d278adaa3cfe05 +RMD160 (php-5.2.8/suhosin-patch-5.2.8-0.9.6.3.patch.gz) = 9c8a0972e75e1ad887b940f57aec4d877e9364bd +Size (php-5.2.8/suhosin-patch-5.2.8-0.9.6.3.patch.gz) = 23125 bytes SHA1 (patch-aa) = 20bc3831e435182d014b11ae9f1f6c537a21af20 SHA1 (patch-ad) = b324c33b1e70adee5b89dcecdd7690dcadcc18ec SHA1 (patch-ag) = 4ccb67ba6f5370b1d16b087e3e714de3e5ae604e |