blob: b547bc4898e9039caee09613f86e52a2086f09d2 (
plain)
1 # Description: Apache HTTP server version 2.2.x
2 # Maintainer: Juergen Daubert, jue at crux dot nu
3 # URL: http://httpd.apache.org/
4 # Depends on: apr libpcre openssl zlib
5 # Group: apache
6
7 name=apache
8 version=2.2.19
9 release=1
10 source=(http://www.apache.org/dist/httpd/httpd-$version.tar.bz2 \
11 $name-ssl_cert.patch crux.layout apache)
12
13 build(){
14 cd httpd-$version
15
16 patch -p1 < $SRC/$name-ssl_cert.patch
17 cat $SRC/crux.layout >> config.layout
18
19 ./configure --enable-layout=CRUX \
20 --with-apr=/usr \
21 --with-apr-util=/usr \
22 --with-pcre=/usr \
23 --enable-so \
24 --enable-modules=all \
25 --enable-mods-shared=all \
26 --enable-ssl \
27 --enable-proxy \
28 --enable-cache --enable-{disk,file,mem}-cache \
29 --with-mpm=prefork
30 make
31 make DESTDIR=$PKG install
32
33 mkdir -p $PKG/etc/ssl/{keys,certs}
34 touch $PKG/etc/ssl/keys/apache.key
35 touch $PKG/etc/ssl/certs/apache.crt
36 install -D -m 755 $SRC/apache $PKG/etc/rc.d/apache
37
38 sed -ri '/^(User|Group)/s/daemon/www/' $PKG/etc/apache/httpd.conf
39 sed -i '1s|local/||' $PKG/var/www/cgi-bin/printenv
40 rm -R $PKG/{var/www/htdocs/*,usr/bin}
41 rm $PKG/var/www/{error,icons}/README*
42 }
|