blob: 0e63396d8a278fe90ee26d9cf2aa465faa8f7a3b (
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 libnghttp2 libpcre libxml2 openssl
5
6 name=apache
7 version=2.4.54
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 -r $PKG/run
35 rm $PKG/var/www/{error,icons}/README*
36
37 chmod -R g-s $PKG/var/www/
38 }
|