opt/apache/Pkgfile

39 lines
870 B
Plaintext
Raw Normal View History

2014-03-01 18:30:36 +01:00
# Description: Apache HTTP server version 2.4.x
2021-05-28 17:20:36 +02:00
# Maintainer: Juergen Daubert, jue at crux dot nu
# URL: http://httpd.apache.org/
2022-05-09 13:06:10 +02:00
# Depends on: apr libnghttp2 libpcre libxml2 openssl
2006-02-23 16:26:10 +01:00
name=apache
version=2.4.54
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 \
2021-05-28 17:20:36 +02:00
crux.layout apache)
2006-02-23 16:26:10 +01:00
build(){
2021-05-28 17:20:36 +02:00
cd httpd-$version
2006-11-25 16:14:10 +01:00
2021-05-28 17:20:36 +02:00
cat $SRC/crux.layout >> config.layout
sed -ri '/^(User|Group)/s/daemon/www/' docs/conf/httpd.conf.in
2006-11-25 16:14:10 +01:00
2021-05-28 17:20:36 +02:00
./configure \
--enable-layout=CRUX \
--with-apr=/usr \
--with-apr-util=/usr \
--with-pcre=/usr \
--enable-so \
--enable-modules=all \
--enable-mods-shared=all \
--enable-mpms-shared=all \
--disable-lua
make
make -j1 DESTDIR=$PKG install
2006-02-23 16:26:10 +01:00
2021-05-28 17:20:36 +02:00
install -D -m 755 $SRC/apache $PKG/etc/rc.d/apache
2006-02-23 16:26:10 +01:00
2021-05-28 17:20:36 +02:00
rm -r $PKG/var/www/htdocs/*
2022-02-12 19:39:31 +01:00
rm -r $PKG/run
2021-05-28 17:20:36 +02:00
rm $PKG/var/www/{error,icons}/README*
2018-03-23 11:26:17 +01:00
2021-05-28 17:20:36 +02:00
chmod -R g-s $PKG/var/www/
2006-02-23 16:26:10 +01:00
}