blob: 4e3895af3efb701d3f7ddac78d459dd078d24136 (
plain)
1 # Description: Apache HTTP server version 2.4.x
2 # Maintainer: Juergen Daubert, jue at crux dot nu
3 # URL: http://httpd.apache.org/
4 # Depends on: apr libpcre openssl libxml2
5
6 name=apache
7 version=2.4.52
8 release=1
9 source=(http://www.apache.org/dist/httpd/httpd-$version.tar.bz2 \
10 crux.layout apache)
11
12 build(){
13 cd httpd-$version
14
15 cat $SRC/crux.layout >> config.layout
16 sed -ri '/^(User|Group)/s/daemon/www/' docs/conf/httpd.conf.in
17
18 ./configure \
19 --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-mpms-shared=all \
27 --disable-lua
28 make
29 make -j1 DESTDIR=$PKG install
30
31 install -D -m 755 $SRC/apache $PKG/etc/rc.d/apache
32
33 rm -r $PKG/var/www/htdocs/*
34 rm $PKG/var/www/{error,icons}/README*
35
36 chmod -R g-s $PKG/var/www/
37 }
|