* Apache httpd: build against apr, aputil and pcre instead of using
its own copies. svn path=/nixpkgs/trunk/; revision=12971
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
{ stdenv, fetchurl, openssl, db4, expat, perl, zlib
|
||||
, sslSupport, db4Support, proxySupport ? true
|
||||
{ stdenv, fetchurl, openssl, perl, zlib
|
||||
, sslSupport, proxySupport ? true
|
||||
, apr, aprutil, pcre
|
||||
}:
|
||||
|
||||
assert sslSupport -> openssl != null;
|
||||
assert db4Support -> db4 != null;
|
||||
assert expat != null && perl != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "apache-httpd-2.2.9";
|
||||
@@ -14,23 +13,18 @@ stdenv.mkDerivation {
|
||||
md5 = "3afa8137dc1999be695a20b62fdf032b";
|
||||
};
|
||||
|
||||
#inherit sslSupport db4Support;
|
||||
#inherit sslSupport;
|
||||
|
||||
buildInputs = [expat perl] ++
|
||||
stdenv.lib.optional sslSupport openssl ++
|
||||
stdenv.lib.optional db4Support db4;
|
||||
buildInputs = [perl apr aprutil pcre] ++
|
||||
stdenv.lib.optional sslSupport openssl;
|
||||
|
||||
configureFlags = ''
|
||||
--with-expat=${expat}
|
||||
--with-z=${zlib}
|
||||
--with-pcre=${pcre}
|
||||
--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 = ''
|
||||
@@ -38,15 +32,8 @@ stdenv.mkDerivation {
|
||||
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
|
||||
# Nixpkgs, this can go. In general, it's a problem that APR
|
||||
# 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;
|
||||
inherit apr aprutil sslSupport proxySupport;
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user