|
|
@@ -23,6 +23,10 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
+# package component versions
|
|
|
+%define V_php 4.3.7
|
|
|
+%define V_php_hardened 0.1.2
|
|
|
+
|
|
|
# package information
|
|
|
Name: php
|
|
|
Summary: Personal HomePage (PHP)
|
|
|
@@ -33,49 +37,50 @@ Distribution: OpenPKG
|
|
|
Class: BASE
|
|
|
Group: Language
|
|
|
License: PHP
|
|
|
-Version: 4.3.7
|
|
|
-Release: 20040603
|
|
|
+Version: %{V_php}
|
|
|
+Release: 20040604
|
|
|
|
|
|
# package options
|
|
|
-%option with_calendar no
|
|
|
-%option with_mysql no
|
|
|
-%option with_pgsql no
|
|
|
-%option with_gd no
|
|
|
-%option with_bdb no
|
|
|
-%option with_debug no
|
|
|
-%option with_pdflib no
|
|
|
-%option with_zlib no
|
|
|
-%option with_bzip2 no
|
|
|
-%option with_ssl no
|
|
|
-%option with_openldap no
|
|
|
-%option with_openldapsasl no
|
|
|
-%option with_mm no
|
|
|
-%option with_pcre no
|
|
|
-%option with_ftp no
|
|
|
-%option with_java no
|
|
|
-%option with_oci7 no
|
|
|
-%option with_oci8 no
|
|
|
-%option with_freetype no
|
|
|
-%option with_gettext no
|
|
|
-%option with_imap no
|
|
|
-%option with_xml no
|
|
|
-%option with_dom no
|
|
|
-%option with_bc no
|
|
|
-%option with_transsid no
|
|
|
-%option with_curl no
|
|
|
-%option with_mhash no
|
|
|
-%option with_mcrypt no
|
|
|
-%option with_wddx no
|
|
|
-%option with_gdbm no
|
|
|
-%option with_versioning no
|
|
|
-%option with_snmp no
|
|
|
-%option with_odbc no
|
|
|
-%option with_mbregex no
|
|
|
-%option with_mbstring no
|
|
|
-%option with_exif no
|
|
|
-%option with_iconv no
|
|
|
-%option with_sendmail no
|
|
|
-%option with_pear no
|
|
|
+%option with_bc no
|
|
|
+%option with_bdb no
|
|
|
+%option with_bzip2 no
|
|
|
+%option with_calendar no
|
|
|
+%option with_curl no
|
|
|
+%option with_debug no
|
|
|
+%option with_dom no
|
|
|
+%option with_exif no
|
|
|
+%option with_freetype no
|
|
|
+%option with_ftp no
|
|
|
+%option with_gdbm no
|
|
|
+%option with_gd no
|
|
|
+%option with_gettext no
|
|
|
+%option with_hardened no
|
|
|
+%option with_iconv no
|
|
|
+%option with_imap no
|
|
|
+%option with_java no
|
|
|
+%option with_mbregex no
|
|
|
+%option with_mbstring no
|
|
|
+%option with_mcrypt no
|
|
|
+%option with_mhash no
|
|
|
+%option with_mm no
|
|
|
+%option with_mysql no
|
|
|
+%option with_oci7 no
|
|
|
+%option with_oci8 no
|
|
|
+%option with_odbc no
|
|
|
+%option with_openldap no
|
|
|
+%option with_openldapsasl no
|
|
|
+%option with_pcre no
|
|
|
+%option with_pdflib no
|
|
|
+%option with_pear no
|
|
|
+%option with_pgsql no
|
|
|
+%option with_sendmail no
|
|
|
+%option with_snmp no
|
|
|
+%option with_ssl no
|
|
|
+%option with_transsid no
|
|
|
+%option with_versioning no
|
|
|
+%option with_wddx no
|
|
|
+%option with_xml no
|
|
|
+%option with_zlib no
|
|
|
|
|
|
# fixing implicit extension dependencies and correlations
|
|
|
%if "%{with_pear}" == "yes"
|
|
|
@@ -96,7 +101,8 @@ Release: 20040603
|
|
|
%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
|
|
|
+Patch0: http://www.hardened-php.net/hardened-php-%{V_php}-%{V_php_hardened}.patch.gz
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -230,10 +236,15 @@ AutoReqProv: no
|
|
|
|
|
|
%track
|
|
|
prog php = {
|
|
|
- version = %{version}
|
|
|
+ version = %{V_php}
|
|
|
url = http://www.php.net/downloads.php
|
|
|
regex = php-(\d+\.\d+\.\d+)\.tar\.gz
|
|
|
}
|
|
|
+ prog php:hardened = {
|
|
|
+ version = %{V_php_hardened}
|
|
|
+ url = http://www.hardened-php.net/download.php
|
|
|
+ regex = hardened-php-%{V_php}-(\d+(\.\d+)+).patch.gz
|
|
|
+ }
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
@@ -241,6 +252,9 @@ AutoReqProv: no
|
|
|
-e 's;\(/include\)/freetype2;\1;' \
|
|
|
configure \
|
|
|
ext/gd/config.m4
|
|
|
+%if "%{with_hardened}" == "yes"
|
|
|
+ %patch -p1
|
|
|
+%endif
|
|
|
|
|
|
%build
|
|
|
# configure package
|