opt/apache/Pkgfile

41 lines
936 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: https://httpd.apache.org/
# Depends on: apr-util libnghttp2 libpcre2 libxml2 openssl
2006-02-23 16:26:10 +01:00
name=apache
2023-10-19 19:04:21 +02:00
version=2.4.58
2023-11-29 11:51:29 +01:00
release=2
source=(https://www.apache.org/dist/httpd/httpd-$version.tar.bz2 \
2023-11-29 11:51:29 +01:00
crux.layout apache libxml2-2.12.patch)
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
2023-11-29 11:51:29 +01:00
patch -p1 -i $SRC/libxml2-2.12.patch
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
}