summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-06-23 05:33:42 +0000
committerStuart Herbert <stuart@gentoo.org>2004-06-23 05:33:42 +0000
commit6ebda9a7aeba932523da0d71aab9f2b260f5cf20 (patch)
tree2225a79efea6e27be6b027477ad8ca7100517cf7 /eclass
parentFix for bug #54712 (Manifest recommit) (diff)
downloadgentoo-2-6ebda9a7aeba932523da0d71aab9f2b260f5cf20.tar.gz
gentoo-2-6ebda9a7aeba932523da0d71aab9f2b260f5cf20.tar.bz2
gentoo-2-6ebda9a7aeba932523da0d71aab9f2b260f5cf20.zip
Fix for bug #54712
Diffstat (limited to 'eclass')
-rw-r--r--eclass/php-sapi.eclass15
1 files changed, 11 insertions, 4 deletions
diff --git a/eclass/php-sapi.eclass b/eclass/php-sapi.eclass
index 57b92b05615c..e0c32de4e236 100644
--- a/eclass/php-sapi.eclass
+++ b/eclass/php-sapi.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/php-sapi.eclass,v 1.33 2004/06/16 01:26:03 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/php-sapi.eclass,v 1.34 2004/06/23 05:33:42 stuart Exp $
# Author: Robin H. Johnson <robbat2@gentoo.org>
inherit eutils flag-o-matic
@@ -48,9 +48,16 @@ S=${WORKDIR}/${MY_P}
IUSE="${IUSE} X crypt curl firebird flash freetds gd gd-external gdbm imap informix ipv6 java jpeg ldap mcal memlimit mysql nls oci8 odbc pam pdflib png postgres qt snmp spell ssl tiff truetype xml2 yaz fdftk doc gmp kerberos hardenedphp mssql"
# Hardened-PHP support
+#
+# I've done it like this, so that we can support different versions of
+# the patch for different versions of PHP
+
+case "$PV" in
+ 4.3.6) HARDENEDPHP_PATCH="hardened-php-4.3.6-0.1.2.patch.gz" ;;
+ 4.3.7) HARDENEDPHP_PATCH="hardened-php-4.3.7-0.1.2.patch.gz" ;;
+esac
-HARDENEDPHP_PATCH="hardened-php-4.3.6-0.1.2.patch.gz"
-SRC_URI="${SRC_URI} hardenedphp? ( http://www.hardened-php.net/$HARDENEDPHP_PATCH )"
+[ -n "$HARDENEDPHP_PATCH" ] && SRC_URI="${SRC_URI} hardenedphp? ( http://www.hardened-php.net/$HARDENEDPHP_PATCH )"
# berkdb stuff is complicated
# we need db-1.* for ndbm
@@ -259,7 +266,7 @@ php-sapi_src_unpack() {
# bug 47498
[ "${PV//4.3.6}" != "${PV}" ] && EPATCH_OPTS="-d ${S} -p1" epatch ${DISTDIR}/php-4.3.6-pcrealloc.patch
- [ `use hardenedphp` ] && epatch ${DISTDIR}/${HARDENEDPHP_PATCH}
+ [ `use hardenedphp` ] && [ -n "$HARDENEDPHP_PATCH" ] && epatch ${DISTDIR}/${HARDENEDPHP_PATCH}
}