2008-10-06 15:38:45 +02:00
|
|
|
{ stdenv, fetchurl, openssl, perl, zlib
|
|
|
|
, sslSupport, proxySupport ? true
|
|
|
|
, apr, aprutil, pcre
|
2003-11-05 13:17:48 +01:00
|
|
|
}:
|
2003-12-21 22:25:38 +01:00
|
|
|
|
2004-03-27 16:47:48 +01:00
|
|
|
assert sslSupport -> openssl != null;
|
2003-12-21 22:25:38 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2008-12-19 13:52:55 +01:00
|
|
|
name = "apache-httpd-2.2.11";
|
2003-11-05 13:17:48 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-12-19 13:52:55 +01:00
|
|
|
url = mirror://apache/httpd/httpd-2.2.11.tar.bz2;
|
|
|
|
md5 = "3e98bcb14a7122c274d62419566431bb";
|
2003-11-05 17:28:26 +01:00
|
|
|
};
|
2003-11-05 13:17:48 +01:00
|
|
|
|
2008-10-06 15:38:45 +02:00
|
|
|
#inherit sslSupport;
|
2003-12-21 22:25:38 +01:00
|
|
|
|
2008-10-06 15:38:45 +02:00
|
|
|
buildInputs = [perl apr aprutil pcre] ++
|
|
|
|
stdenv.lib.optional sslSupport openssl;
|
2008-02-18 15:59:48 +01:00
|
|
|
|
|
|
|
configureFlags = ''
|
|
|
|
--with-z=${zlib}
|
2008-10-06 15:38:45 +02:00
|
|
|
--with-pcre=${pcre}
|
2008-02-18 15:59:48 +01:00
|
|
|
--enable-mods-shared=all
|
|
|
|
--enable-authn-alias
|
|
|
|
${if proxySupport then "--enable-proxy" else ""}
|
|
|
|
${if sslSupport then "--enable-ssl --with-ssl=${openssl}" else ""}
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
echo "removing manual"
|
|
|
|
rm -rf $out/manual
|
|
|
|
'';
|
2006-10-11 18:45:55 +02:00
|
|
|
|
2008-02-18 15:59:48 +01:00
|
|
|
passthru = {
|
2008-10-06 15:38:45 +02:00
|
|
|
inherit apr aprutil sslSupport proxySupport;
|
2008-02-18 15:59:48 +01:00
|
|
|
};
|
2007-11-23 14:09:22 +01:00
|
|
|
|
2006-10-11 18:45:55 +02:00
|
|
|
meta = {
|
|
|
|
description = "Apache HTTPD, the world's most popular web server";
|
2008-02-18 15:59:48 +01:00
|
|
|
homepage = http://httpd.apache.org/;
|
2006-10-11 18:45:55 +02:00
|
|
|
};
|
2003-11-05 13:17:48 +01:00
|
|
|
}
|