summaryrefslogtreecommitdiff
path: root/apache/Pkgfile
blob: 5aeca0b2232da15849e624055d614cd82b6bf95b (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.53
    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 }

Generated by cgit