talimat 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Tanım: Guvenli ve gelişmiş bir webserver
  2. # URL: https://www.hiawatha-webserver.org/
  3. # Paketçi: milisarge
  4. # Gerekler: cmake libxslt mbedtls
  5. # Grup: ağ
  6. isim=hiawatha
  7. surum=10.3
  8. devir=1
  9. kaynak=(https://www.hiawatha-webserver.org/files/$isim-$surum.tar.gz
  10. hiawatha.conf.sample)
  11. derle() {
  12. cd "$isim-$surum"
  13. sed -i 's/www-data/http/g' extra/logrotate.in
  14. mkdir -p build
  15. cd build
  16. cmake ../ -DCMAKE_INSTALL_PREFIX="/" \
  17. -DCMAKE_INSTALL_BINDIR="/usr/bin" \
  18. -DCMAKE_INSTALL_SBINDIR="/usr/bin" \
  19. -DCMAKE_INSTALL_SYSCONFDIR="/etc/hiawatha" \
  20. -DCMAKE_INSTALL_LIBDIR="/usr/lib" \
  21. -DCMAKE_INSTALL_MANDIR="/usr/share/man" \
  22. -DCONFIG_DIR="/etc/hiawatha" \
  23. -DLOG_DIR="/var/log/hiawatha" \
  24. -DPID_DIR="/run" \
  25. -DENABLE_TLS=ON \
  26. -DUSE_SYSTEM_MBEDTLS=ON \
  27. -DENABLE_MONITOR=ON \
  28. -DWEBROOT_DIR="/srv/http/hiawatha" \
  29. -DWORK_DIR="/var/lib/hiawatha"
  30. make
  31. # Features enabled by default
  32. # -DENABLE_CACHE
  33. # -DENABLE_IPV6
  34. # -DENABLE_RPROXY
  35. # -DENABLE_TOOLKIT
  36. # -DENABLE_XSLT
  37. # Features disabled by default
  38. # -DENABLE_DEBUG
  39. # -DENABLE_TOMAHAWK
  40. make DESTDIR="$PKG/" install
  41. rmdir "$PKG/run"
  42. rm "$PKG/srv/http/hiawatha/index.html"
  43. rmdir -p --ignore-fail-on-non-empty "$PKG/srv/http/hiawatha"
  44. # Update stock hiawatha.conf
  45. sed -e 's|#ServerId = www-data|ServerId = http|' \
  46. -e 's|/var/www/|/srv/http/|g' \
  47. -e 's|//|/|g' \
  48. -e 's|#CGIextension = cgi|&\n#TriggerOnCGIstatus = no|g' \
  49. -e 's|ConnectTo = 127.0.0.1:2005|ConnectTo = 127.0.0.1:9000|g' \
  50. -e 's|# Extension = php|&\n# SessionTimeout = 30|g' \
  51. -e 's|#ErrorHandler = 404:/error.cgi|&\n#UseGZfile = yes|g' \
  52. -i "$PKG/etc/hiawatha/hiawatha.conf"
  53. install -Dm644 logrotate.d/hiawatha "$PKG/etc/logrotate.d/hiawatha"
  54. install -Dm644 $SRC/"hiawatha.conf.sample" "$PKG/etc/hiawatha/"
  55. }