blob: 07eb646f216b5ffae397258c924aef003ad8a11a (
plain)
1 # Description: Apache HTTP server version 2.2.x
2 # Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
3 # URL: http://httpd.apache.org/
4 # Depends on: apr, openssl, zlib
5 # Group: apache
6
7 name=apache
8 version=2.2.8
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 --enable-so \
23 --enable-modules=all \
24 --enable-mods-shared=all \
25 --enable-ssl \
26 --with-mpm=prefork
27 make
28 make DESTDIR=$PKG install
29
30 mkdir -p $PKG/etc/ssl/{keys,certs}
31 touch $PKG/etc/ssl/keys/apache.key
32 touch $PKG/etc/ssl/certs/apache.crt
33 install -D -m 755 $SRC/apache $PKG/etc/rc.d/apache
34
35 sed -ri '/^(User|Group)/s/daemon/www/' $PKG/etc/apache/httpd.conf
36 sed -i '1s|local/||' $PKG/var/www/cgi-bin/printenv
37 rm -R $PKG/{var/www/htdocs/*,usr/bin}
38 rm $PKG/var/www/{error,icons}/README*
39 }
|