about summary refs log tree commit diff
path: root/pkgs/servers/http/apache-httpd/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/http/apache-httpd/builder.sh')
-rwxr-xr-xpkgs/servers/http/apache-httpd/builder.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/servers/http/apache-httpd/builder.sh b/pkgs/servers/http/apache-httpd/builder.sh
new file mode 100755
index 0000000000000..559c75d0124f0
--- /dev/null
+++ b/pkgs/servers/http/apache-httpd/builder.sh
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+buildinputs="$openssl $db4 $expat $perl"
+. $stdenv/setup || exit 1
+
+if test $db4Support; then
+    extraflags="--with-berkeley-db=$db4 $extraflags"
+fi
+
+if test $sslSupport; then
+    extraflags="--enable-ssl --with-ssl=$openssl $extraflags"
+fi
+
+tar xvfz $src || exit 1
+cd httpd-* || exit 1
+./configure --prefix=$out \
+ --with-expat=$expat --enable-mods-shared=all --without-gdbm \
+ --enable-threads --with-devrandom=/dev/urandom \
+ $extraflags || exit 1
+make || exit 1
+make install || exit 1
+strip -S $out/lib/*.a || exit 1
+rm -rf $out/manual || exit 1