about summary refs log tree commit diff
path: root/pkgs/servers/http/apache-httpd/builder.sh
blob: 559c75d0124f01ccb7065fd7ac13da6a7cf8d9d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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