milis/talimatname/genel/apache/talimat

49 lines
1.7 KiB
Plaintext
Raw Normal View History

# Description: Açık kaynak web sunucusu.
2016-02-24 01:27:23 +01:00
# URL: http://httpd.apache.org/ABOUT_APACHE.html
2017-01-30 23:55:06 +01:00
# Packager: milisarge
# Depends on: pcre apr-util sqlite expat
2016-02-24 01:27:23 +01:00
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)
2017-01-30 23:55:06 +01:00
2016-02-24 01:27:23 +01:00
build(){
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}
}