Files
ports/core/apache/spkgbuild
2019-05-15 17:28:46 +08:00

45 lines
1.5 KiB
Plaintext
Executable File

# description : Open-source HTTP server
# depends : apr-util pcre openssl
name=apache
version=2.4.39
release=3
source=(https://archive.apache.org/dist/httpd/httpd-$version.tar.bz2
httpd-blfs_layout-1.patch
httpd.rc)
md5sum=(930e217ba2d71e708a3f1521ecae7ec0
f24185eaa0cbcab3c0b07032584575d9
4aa473be24266e0d48be1143f22d02e8)
build() {
cd httpd-$version
# Forces the apxs utility to use absolute pathnames for modules, when instructed to do so
patch -Np1 -i ../httpd-blfs_layout-1.patch
sed '/dir.*CFG_PREFIX/s@^@#@' -i support/apxs.in
./configure --enable-authnz-fcgi \
--enable-layout=BLFS \
--enable-mods-shared="all cgi" \
--enable-mpms-shared=all \
--enable-suexec=shared \
--with-apr=/usr/bin/apr-1-config \
--with-apr-util=/usr/bin/apu-1-config \
--with-suexec-bin=/usr/lib/httpd/suexec \
--with-suexec-caller=apache \
--with-suexec-docroot=/srv/www \
--with-suexec-logfile=/var/log/httpd/suexec.log \
--with-suexec-uidmin=100 \
--with-suexec-userdir=public_html
make
make DESTDIR=$PKG install
mv -v $PKG/usr/sbin/suexec $PKG/usr/lib/httpd/suexec
rm -fr $PKG/var/run
# rc service
install -Dm755 $SRC/httpd.rc $PKG/etc/rc.d/httpd
}