49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
# Tanım: Açık kaynak web sunucusu.
|
||
# URL: http://httpd.apache.org/ABOUT_APACHE.html
|
||
# Paketçi: milisarge
|
||
# Gerekler: pcre apr-util sqlite expat
|
||
|
||
name=apache
|
||
version=2.4.18
|
||
release=1
|
||
source=(http://archive.apache.org/dist/httpd/httpd-$version.tar.bz2
|
||
http://www.linuxfromscratch.org/patches/blfs/svn/httpd-$version-blfs_layout-1.patch)
|
||
|
||
derle(){
|
||
|
||
source /etc/blfs-bootscripts
|
||
wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
|
||
|
||
cd httpd-$version
|
||
|
||
patch -Np1 -i ../httpd-$version-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
|
||
chgrp apache $PKG/usr/lib/httpd/suexec
|
||
chmod 4754 $PKG/usr/lib/httpd/suexec
|
||
|
||
chown -v -R apache:apache $PKG/srv/www
|
||
rm -f $PKG/srv/www/htdocs/index.html
|
||
cd $SRC
|
||
tar xf $scripts-$scriptsversion.tar.bz2
|
||
cd $SRC/$scripts-$scriptsversion
|
||
make DESTDIR=$PKG install-httpd
|
||
mv $PKG/etc/httpd/httpd.conf{,.example}
|
||
}
|