2017-12-22 22:59:36 +01:00
|
|
|
|
# Tanım: Açık kaynak web sunucusu.
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://httpd.apache.org/ABOUT_APACHE.html
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
2018-01-25 18:05:56 +01:00
|
|
|
|
# Gerekler: pcre apr-util sqlite
|
2017-12-22 22:59:36 +01:00
|
|
|
|
# Grup: ağ
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=apache
|
|
|
|
|
surum=2.4.18
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(http://archive.apache.org/dist/httpd/httpd-$surum.tar.bz2
|
2017-12-22 22:59:36 +01:00
|
|
|
|
http://www.linuxfromscratch.org/patches/blfs/svn/httpd-$surum-blfs_layout-1.patch)
|
2017-01-30 23:55:06 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle(){
|
2016-02-24 01:27:23 +01:00
|
|
|
|
source /etc/blfs-bootscripts
|
|
|
|
|
wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd httpd-$surum
|
|
|
|
|
patch -Np1 -i ../httpd-$surum-blfs_layout-1.patch
|
2016-02-24 01:27:23 +01:00
|
|
|
|
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}
|
|
|
|
|
}
|