opt/apache/Pkgfile

35 lines
940 B
Plaintext
Raw Normal View History

2014-03-01 18:30:36 +01:00
# Description: Apache HTTP server version 2.4.x
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2006-02-23 16:26:10 +01:00
# URL: http://httpd.apache.org/
# Depends on: apr libpcre openssl libxml2
2006-02-23 16:26:10 +01:00
# Group: apache
name=apache
2017-10-23 15:18:37 +02:00
version=2.4.29
2015-12-12 11:43:45 +01:00
release=1
2006-02-23 16:26:10 +01:00
source=(http://www.apache.org/dist/httpd/httpd-$version.tar.bz2 \
2014-03-01 18:30:36 +01:00
crux.layout apache)
2006-02-23 16:26:10 +01:00
build(){
cd httpd-$version
2006-11-25 16:14:10 +01:00
2006-02-23 16:26:10 +01:00
cat $SRC/crux.layout >> config.layout
2014-03-01 18:30:36 +01:00
sed -ri '/^(User|Group)/s/daemon/www/' docs/conf/httpd.conf.in
2006-11-25 16:14:10 +01:00
2006-02-23 16:26:10 +01:00
./configure --enable-layout=CRUX \
--with-apr=/usr \
--with-apr-util=/usr \
--with-pcre=/usr \
2006-02-23 16:26:10 +01:00
--enable-so \
--enable-modules=all \
--enable-mods-shared=all \
2014-03-01 18:30:36 +01:00
--enable-mpms-shared=all
2006-02-23 16:26:10 +01:00
make
make -j1 DESTDIR=$PKG install
2006-02-23 16:26:10 +01:00
install -D -m 755 $SRC/apache $PKG/etc/rc.d/apache
2014-03-01 18:30:36 +01:00
rm -r $PKG/var/www/htdocs/*
rm $PKG/var/www/{error,icons}/README*
2006-02-23 16:26:10 +01:00
}