talimat 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Tanım: Açık kaynak web sunucusu.
  2. # URL: http://httpd.apache.org/ABOUT_APACHE.html
  3. # Paketçi: milisarge
  4. # Gerekler: pcre apr-util sqlite
  5. # Grup: ağ
  6. isim=apache
  7. surum=2.4.18
  8. devir=1
  9. kaynak=(http://archive.apache.org/dist/httpd/httpd-$surum.tar.bz2
  10. http://www.linuxfromscratch.org/patches/blfs/svn/httpd-$surum-blfs_layout-1.patch)
  11. derle(){
  12. source /etc/blfs-bootscripts
  13. wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
  14. cd httpd-$surum
  15. patch -Np1 -i ../httpd-$surum-blfs_layout-1.patch
  16. sed '/dir.*CFG_PREFIX/s@^@#@' -i support/apxs.in
  17. ./configure --enable-authnz-fcgi \
  18. --enable-layout=BLFS \
  19. --enable-mods-shared="all cgi" \
  20. --enable-mpms-shared=all \
  21. --enable-suexec=shared \
  22. --with-apr=/usr/bin/apr-1-config \
  23. --with-apr-util=/usr/bin/apu-1-config \
  24. --with-suexec-bin=/usr/lib/httpd/suexec \
  25. --with-suexec-caller=apache \
  26. --with-suexec-docroot=/srv/www \
  27. --with-suexec-logfile=/var/log/httpd/suexec.log \
  28. --with-suexec-uidmin=100 \
  29. --with-suexec-userdir=public_html
  30. make
  31. make DESTDIR=$PKG install
  32. mv -v $PKG/usr/sbin/suexec $PKG/usr/lib/httpd/suexec
  33. chgrp apache $PKG/usr/lib/httpd/suexec
  34. chmod 4754 $PKG/usr/lib/httpd/suexec
  35. chown -v -R apache:apache $PKG/srv/www
  36. rm -f $PKG/srv/www/htdocs/index.html
  37. cd $SRC
  38. tar xf $scripts-$scriptsversion.tar.bz2
  39. cd $SRC/$scripts-$scriptsversion
  40. make DESTDIR=$PKG install-httpd
  41. mv $PKG/etc/httpd/httpd.conf{,.example}
  42. }