1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

* Enable building of mod_proxy.

svn path=/nixpkgs/trunk/; revision=10730
This commit is contained in:
Eelco Dolstra 2008-02-18 14:59:48 +00:00
parent 90a5f1fec4
commit 1bd2f3e93e
3 changed files with 31 additions and 37 deletions

View file

@ -23,6 +23,7 @@ stdenv.mkDerivation (rec {
";
meta = {
homepage = http://www.nano-editor.org;
homepage = http://www.nano-editor.org/;
description = "A small, user-friendly console text editor";
};
})

View file

@ -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

View file

@ -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/;
};
}