milis/talimatname/genel/a/apache/talimat

49 lines
1.7 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02: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
# Gerekler: pcre apr-util sqlite expat
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
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
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
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}
}