mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
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
|
||||
, sslSupport, db4Support
|
||||
, sslSupport, db4Support, proxySupport ? true
|
||||
}:
|
||||
|
||||
assert sslSupport -> openssl != null;
|
||||
@ -7,19 +7,36 @@ assert db4Support -> db4 != null;
|
||||
assert expat != null && perl != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "apache-httpd-2.2.8";
|
||||
name = "apache-httpd-2.2.8x";
|
||||
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://archive.apache.org/dist/httpd/httpd-2.2.8.tar.bz2;
|
||||
md5 = "76d2598a4797163d07cd50e5304aa7cd";
|
||||
};
|
||||
|
||||
inherit sslSupport db4Support;
|
||||
#inherit sslSupport db4Support;
|
||||
|
||||
inherit perl expat zlib;
|
||||
openssl = if sslSupport then openssl else null;
|
||||
db4 = if db4Support then db4 else null;
|
||||
buildInputs = [expat perl] ++
|
||||
stdenv.lib.optional sslSupport openssl ++
|
||||
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
|
||||
# runs on Linux 2.4 kernels. Once we've dropped support for 2.4 in
|
||||
@ -27,8 +44,13 @@ stdenv.mkDerivation {
|
||||
# detects characteristics of the build system's kernel to decide
|
||||
# what to use at runtime, since it's impure.
|
||||
apr_cv_epoll = "no";
|
||||
|
||||
passthru = {
|
||||
inherit expat sslSupport db4Support proxySupport;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Apache HTTPD, the world's most popular web server";
|
||||
homepage = http://httpd.apache.org/;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user