|
|
@@ -22,6 +22,10 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
+# package versions
|
|
|
+%define V_php 5.0.5
|
|
|
+%define V_php_hardened 5.0.5-0.4.5
|
|
|
+
|
|
|
# package information
|
|
|
Name: php5
|
|
|
Summary: Personal HomePage (PHP)
|
|
|
@@ -32,8 +36,8 @@ Distribution: OpenPKG
|
|
|
Class: PLUS
|
|
|
Group: Language
|
|
|
License: PHP
|
|
|
-Version: 5.0.5
|
|
|
-Release: 20051004
|
|
|
+Version: %{V_php}
|
|
|
+Release: 20051103
|
|
|
|
|
|
# package options
|
|
|
%option with_calendar no
|
|
|
@@ -53,6 +57,7 @@ Release: 20051004
|
|
|
%option with_oci8 no
|
|
|
%option with_freetype no
|
|
|
%option with_gettext no
|
|
|
+%option with_hardened no
|
|
|
%option with_imap no
|
|
|
%option with_xml no
|
|
|
%option with_xslt no
|
|
|
@@ -94,9 +99,10 @@ Release: 20051004
|
|
|
%endif
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: http://static.php.net/www.php.net/distributions/php-%{version}.tar.gz
|
|
|
+Source0: http://static.php.net/www.php.net/distributions/php-%{V_php}.tar.gz
|
|
|
Source1: php.ini
|
|
|
Patch0: php5.patch
|
|
|
+Patch1: http://www.hardened-php.net/hardening-patch-%{V_php_hardened}.patch.gz
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -227,14 +233,25 @@ AutoReqProv: no
|
|
|
|
|
|
%track
|
|
|
prog php5 = {
|
|
|
- version = %{version}
|
|
|
+ version = %{V_php}
|
|
|
url = http://www.php.net/downloads.php
|
|
|
regex = php-(5.\d+\.\d+)\.tar\.gz
|
|
|
}
|
|
|
+ prog php5:hardened = {
|
|
|
+ version = %{V_php_hardened}
|
|
|
+ url = http://www.hardened-php.net/downloads.13.html
|
|
|
+ regex = hardening-patch-(5\.\d+\.\d+-\d+(\.\d+)+)\.patch\.gz
|
|
|
+ }
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n php-%{version}
|
|
|
- %patch -p0
|
|
|
+ # php5.patch is currently already part of the hardening patch, so
|
|
|
+ # once it is taken over into the PHP distribution remove the %else clause.
|
|
|
+%if "%{with_hardened}" == "yes"
|
|
|
+ %patch -p1 -P 1
|
|
|
+%else
|
|
|
+ %patch -p0 -P 0
|
|
|
+%endif
|
|
|
%{l_shtool} subst \
|
|
|
-e 's;\(/include\)/freetype2;\1;' \
|
|
|
configure \
|