* Updated Apache-related packages.
svn path=/nixpkgs/branches/stdenv-updates/; revision=10589
This commit is contained in:
parent
e7bc12a932
commit
156b7f93ef
@ -9,6 +9,7 @@
|
||||
| http://www.php.net/manual/security.php for more details. |
|
||||
*/
|
||||
|
||||
let version = "5.2.5"; in
|
||||
|
||||
args:
|
||||
( args.mkDerivationByConfiguration {
|
||||
@ -462,58 +463,57 @@ args:
|
||||
|
||||
|
||||
extraAttrs = co : {
|
||||
name = "php_configurable-5.2.4";
|
||||
name = "php_configurable-${version}";
|
||||
|
||||
buildInputs = ( args.lib.getAttr [ "phpIncludes" ] [] args ) ++ co.buildInputs;
|
||||
|
||||
configurePhase =
|
||||
"
|
||||
iniFile=\$out/etc/\$name.ini
|
||||
[[ -z \"\$libxml2\" ]] || export PATH=\$PATH:\$libxml2/bin
|
||||
./configure --with-config-file-scan-dir=/etc --with-config-file-path=\$iniFile --prefix=\$out " + co.configureFlags + "
|
||||
configurePhase = ''
|
||||
iniFile=$out/etc/$name.ini
|
||||
[[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin
|
||||
./configure --with-config-file-scan-dir=/etc --with-config-file-path=$iniFile --prefix=$out ${co.configureFlags}
|
||||
echo configurePhase end
|
||||
";
|
||||
'';
|
||||
|
||||
installPhase = "
|
||||
installPhase = ''
|
||||
unset installPhase; installPhase;
|
||||
cp php.ini-recommended $\iniFile
|
||||
cp php.ini-recommended $iniFile
|
||||
|
||||
# Now Let's build xdebug if flag has been given
|
||||
# TODO I think there are better paths than the given below
|
||||
if [ -n \$flag_set_xdebug ]; then
|
||||
PATH=\$PATH:\$out/bin
|
||||
tar xfz \$xdebug_src;
|
||||
if [ -n $flag_set_xdebug ]; then
|
||||
PATH=$PATH:$out/bin
|
||||
tar xfz $xdebug_src;
|
||||
cd xdebug*
|
||||
phpize
|
||||
./configure --prefix=\$out
|
||||
./configure --prefix=$out
|
||||
make
|
||||
ensureDir \$out/lib; cp modules/xdebug.so $out/lib
|
||||
cat >> $iniFile << EOF
|
||||
zend_extension=\"\$out/lib/xdebug.so\"
|
||||
zend_extension_ts=\"\$out/lib/xdebug.so\"
|
||||
zend_extension_debug=\"\$out/lib/xdebug.so\"
|
||||
xdebug.remote_enable=true
|
||||
xdebug.remote_host=127.0.0.1
|
||||
xdebug.remote_port=9000
|
||||
xdebug.remote_handler=dbgp
|
||||
xdebug.profiler_enable=0
|
||||
xdebug.profiler_output_dir=\"/tmp/xdebug\"
|
||||
xdebug.remote_mode=req
|
||||
EOF
|
||||
ensureDir $out/lib; cp modules/xdebug.so $out/lib
|
||||
cat >> $iniFile << EOF
|
||||
zend_extension="$out/lib/xdebug.so"
|
||||
zend_extension_ts="$out/lib/xdebug.so"
|
||||
zend_extension_debug="$out/lib/xdebug.so"
|
||||
xdebug.remote_enable=true
|
||||
xdebug.remote_host=127.0.0.1
|
||||
xdebug.remote_port=9000
|
||||
xdebug.remote_handler=dbgp
|
||||
xdebug.profiler_enable=0
|
||||
xdebug.profiler_output_dir="/tmp/xdebug"
|
||||
xdebug.remote_mode=req
|
||||
EOF
|
||||
fi
|
||||
";
|
||||
'';
|
||||
|
||||
src = args.fetchurl {
|
||||
url = http://de.php.net/get/php-5.2.4.tar.bz2/from/this/mirror;
|
||||
sha256 = "1h513j7crz08n7rlh8v7cvxfzisj87mvvyfrkiaa76v1wicm4bsh";
|
||||
name = "php-5.2.4.tar.bz2";
|
||||
url = "http://nl.php.net/get/php-${version}.tar.bz2/from/this/mirror";
|
||||
sha256 = "18xv961924rkk66gdjcmk1mzbzgp2srbiq5jvbgyn6ahvxq1xb2w";
|
||||
name = "php-${version}.tar.bz2";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "The PHP language runtime engine"; # : CLI, CGI and Apache2 SAPIs ? as well TODO
|
||||
homepage = http://www.php.net/;
|
||||
license = "PHP-3";
|
||||
};
|
||||
description = "The PHP language runtime engine"; # : CLI, CGI and Apache2 SAPIs ? as well TODO
|
||||
homepage = http://www.php.net/;
|
||||
license = "PHP-3";
|
||||
};
|
||||
|
||||
patches = [./fix.patch];
|
||||
};
|
||||
|
@ -4,14 +4,26 @@
|
||||
|
||||
assert bdbSupport -> db4 != null;
|
||||
|
||||
(stdenv.mkDerivation {
|
||||
name = "apr-util-1.2.7";
|
||||
stdenv.mkDerivation {
|
||||
name = "apr-util-1.2.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://archive.apache.org/dist/apr/apr-util-1.2.7.tar.bz2;
|
||||
md5 = "a4c527f08ae2298e62a88472291bf066";
|
||||
url = http://archive.apache.org/dist/apr/apr-util-1.2.12.tar.bz2;
|
||||
sha256 = "152xwaxikp22acz7ypqsvlyjxhak6p40805wwbw7hcg1gyg2scyl";
|
||||
};
|
||||
configureFlags = "
|
||||
|
||||
configureFlags = ''
|
||||
--with-apr=${apr} --with-expat=${expat}
|
||||
${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
|
||||
";
|
||||
}) // {inherit bdbSupport;}
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit bdbSupport;
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = http://apr.apache.org/;
|
||||
description = "A companion library to APR, the Apache Portable Runtime";
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,15 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "apr-1.2.7";
|
||||
name = "apr-1.2.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://archive.apache.org/dist/apr/apr-1.2.7.tar.bz2;
|
||||
md5 = "e77887dbafc515c63feac84686bcb3bc";
|
||||
url = http://archive.apache.org/dist/apr/apr-1.2.12.tar.bz2;
|
||||
sha256 = "0d11wa2hlhb5lnny5rcazca056b35kgccx94cd38bazw1d6b68nv";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = http://apr.apache.org/;
|
||||
description = "The Apache Portable Runtime library";
|
||||
};
|
||||
}
|
||||
|
@ -1,13 +1,13 @@
|
||||
{stdenv, fetchurl, apacheHttpd, python}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "mod_python-3.2.10";
|
||||
name = "mod_python-3.3.1";
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = http://apache.surfnet.nl/httpd/modpython/mod_python-3.2.10.tgz;
|
||||
md5 = "cc6439f546a6e70cfff7ca51b8c62541";
|
||||
url = http://archive.eu.apache.org/dist/httpd/modpython/mod_python-3.3.1.tgz;
|
||||
sha256 = "0sss2xi6l1a2z8y6ji0cp8vgyvnhq8zrg0ilkvpj1mygbzyk28xd";
|
||||
};
|
||||
|
||||
patches = [./install.patch];
|
||||
|
Loading…
Reference in New Issue
Block a user