Forward port of Apache changes.
svn path=/nixpkgs/branches/stdenv-updates/; revision=10736
This commit is contained in:
parent
66914f5438
commit
88c725ad84
|
@ -1,29 +0,0 @@
|
||||||
buildInputs="$openssl $db4 $expat $perl"
|
|
||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
configureFlags="\
|
|
||||||
--with-expat=$expat \
|
|
||||||
--with-z=$zlib \
|
|
||||||
--enable-mods-shared=all \
|
|
||||||
--enable-authn-alias \
|
|
||||||
--without-gdbm \
|
|
||||||
--enable-threads \
|
|
||||||
--with-devrandom=/dev/urandom"
|
|
||||||
|
|
||||||
if test $db4Support; then
|
|
||||||
configureFlags="--with-berkeley-db=$db4 $configureFlags"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test $sslSupport; then
|
|
||||||
configureFlags="--enable-ssl --with-ssl=$openssl $configureFlags"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
postInstall() {
|
|
||||||
echo "removing manual"
|
|
||||||
rm -rf $out/manual
|
|
||||||
}
|
|
||||||
postInstall=postInstall
|
|
||||||
|
|
||||||
|
|
||||||
genericBuild
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, openssl, db4, expat, perl, zlib
|
{ stdenv, fetchurl, openssl, db4, expat, perl, zlib
|
||||||
, sslSupport, db4Support
|
, sslSupport, db4Support, proxySupport ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert sslSupport -> openssl != null;
|
assert sslSupport -> openssl != null;
|
||||||
|
@ -7,19 +7,36 @@ assert db4Support -> db4 != null;
|
||||||
assert expat != null && perl != null;
|
assert expat != null && perl != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "apache-httpd-2.2.8";
|
name = "apache-httpd-2.2.8x";
|
||||||
|
|
||||||
builder = ./builder.sh;
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://archive.apache.org/dist/httpd/httpd-2.2.8.tar.bz2;
|
url = http://archive.apache.org/dist/httpd/httpd-2.2.8.tar.bz2;
|
||||||
md5 = "76d2598a4797163d07cd50e5304aa7cd";
|
md5 = "76d2598a4797163d07cd50e5304aa7cd";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit sslSupport db4Support;
|
#inherit sslSupport db4Support;
|
||||||
|
|
||||||
inherit perl expat zlib;
|
buildInputs = [expat perl] ++
|
||||||
openssl = if sslSupport then openssl else null;
|
stdenv.lib.optional sslSupport openssl ++
|
||||||
db4 = if db4Support then db4 else null;
|
stdenv.lib.optional db4Support db4;
|
||||||
|
|
||||||
|
configureFlags = ''
|
||||||
|
--with-expat=${expat}
|
||||||
|
--with-z=${zlib}
|
||||||
|
--enable-mods-shared=all
|
||||||
|
--enable-authn-alias
|
||||||
|
${if proxySupport then "--enable-proxy" else ""}
|
||||||
|
--without-gdbm
|
||||||
|
--enable-threads
|
||||||
|
--with-devrandom=/dev/urandom
|
||||||
|
${if sslSupport then "--enable-ssl --with-ssl=${openssl}" else ""}
|
||||||
|
${if db4Support then "--with-berkeley-db=${db4}" else ""}
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
echo "removing manual"
|
||||||
|
rm -rf $out/manual
|
||||||
|
'';
|
||||||
|
|
||||||
# For now, disable detection of epoll to ensure that Apache still
|
# For now, disable detection of epoll to ensure that Apache still
|
||||||
# runs on Linux 2.4 kernels. Once we've dropped support for 2.4 in
|
# runs on Linux 2.4 kernels. Once we've dropped support for 2.4 in
|
||||||
|
@ -28,7 +45,12 @@ stdenv.mkDerivation {
|
||||||
# what to use at runtime, since it's impure.
|
# what to use at runtime, since it's impure.
|
||||||
apr_cv_epoll = "no";
|
apr_cv_epoll = "no";
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
inherit expat sslSupport db4Support proxySupport;
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Apache HTTPD, the world's most popular web server";
|
description = "Apache HTTPD, the world's most popular web server";
|
||||||
|
homepage = http://httpd.apache.org/;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue