OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

106 lines
3.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../apache/apache.conf
  5. # Copyright (C) 2007 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2004 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. if [ $prefix_auto = 1 ] ; then
  17. if [ "$SDECFG_PKG_APACHE_PREFIX" ] ; then
  18. prefix="$SDECFG_PKG_APACHE_PREFIX"
  19. else
  20. prefix="opt/apache"
  21. fi
  22. set_confopt
  23. fi
  24. # APR is mandatory, so no additional test needed.
  25. pkgprefix -t apr
  26. var_append extraconfopt " " "--with-apr=$root/$( pkgprefix apr )"
  27. pkgprefix -t apr-util
  28. var_append extraconfopt " " "--with-apr-util=$root/$( pkgprefix apr-util )"
  29. if [ $pkg = "apache" ] ; then
  30. datadir="$localstatedir/lib"
  31. # or maybe www would be nicer than lib ?!? ...
  32. if [ "$SDECFG_PKG_APACHE_SUEXEC" == "1" ]; then
  33. if [ "${SDECFG_PKG_APACHE_DOCROOT:0:1}" == "/" ] ; then
  34. docroot="$SDECFG_PKG_APACHE_DOCROOT"
  35. else
  36. docroot="$localstatedir/$SDECFG_PKG_APACHE_DOCROOT"
  37. fi
  38. var_append extraconfopt ' ' \
  39. "--with-suexec-docroot=${docroot#$root}"
  40. # var_append extraconfopt ' ' \
  41. # "--with-suexec-userdir=$SDECFG_PKG_APACHE_USERDIR"
  42. var_append extraconfopt ' ' "--with-suexec-caller=http \
  43. --enable-suexec"
  44. hook_add postmake 5 "mv -vf $sbindir/suexec $bindir/"
  45. fi
  46. [ "$SDECFG_PKG_APACHE_MOD_SO" == 1 ] &&
  47. var_append extraconfopt " " "--enable-so"
  48. [ "$SDECFG_PKG_APACHE_MOD_AUTH_ANON" == 1 ] &&
  49. var_append extraconfopt " " "--enable-mod-auth-anon"
  50. [ "$SDECFG_PKG_APACHE_MOD_AUTH_DBM" == 1 ] &&
  51. var_append extraconfopt " " "--enable-mod-auth-dbm"
  52. [ "$SDECFG_PKG_APACHE_MOD_AUTH_DIGEST" == 1 ] &&
  53. var_append extraconfopt " " "--enable-auth-digest"
  54. if [ "$SDECFG_PKG_APACHE_MOD_AUTH_LDAP" == 1 ] ; then
  55. pkgprefix -t openldap
  56. var_append extraconfopt " " "--with-ldap"
  57. var_append extraconfopt " " "--enable-ldap"
  58. var_append extraconfopt " " "--enable-auth-ldap"
  59. var_append CFLAGS ' ' "-I$( pkgprefix includedir openldap )"
  60. var_append CPPFLAGS ' ' "-I$( pkgprefix includedir openldap )"
  61. var_append LDFLAGS ' ' "-L$( pkgprefix libdir openldap )"
  62. export CPPFLAGS CFLAGS LDFLAGS
  63. fi
  64. var_append extraconfopt " " "--enable-ssl"
  65. [ "$SDECFG_PKG_APACHE_MOD_DAV" == 1 ] &&
  66. var_append extraconfopt " " "--enable-dav"
  67. [ "$SDECFG_PKG_APACHE_MOD_PROXY" == 1 ] &&
  68. var_append extraconfopt " " "--enable-proxy"
  69. [ "$SDECFG_PKG_APACHE_MOD_REWRITE" == 1 ] &&
  70. var_append extraconfopt " " "--enable-rewrite"
  71. [ "$SDECFG_PKG_APACHE_MOD_CACHE" == 1 ] &&
  72. var_append extraconfopt " " "--enable-cache"
  73. [ "$SDECFG_PKG_APACHE_MOD_DISK_CACHE" == 1 ] &&
  74. var_append extraconfopt " " "--enable-disk-cache"
  75. [ "$SDECFG_PKG_APACHE_MOD_DEFLATE" == 1 ] &&
  76. var_append extraconfopt " " "--enable-deflate"
  77. [ "$SDECFG_PKG_APACHE_MOD_INFO" == 1 ] &&
  78. var_append extraconfopt " " "--enable-info"
  79. [ "$SDECFG_PKG_APACHE_MOD_SPELLING" == 1 ] &&
  80. var_append extraconfopt " " "--enable-spelling"
  81. fi
  82. if [ "$SDECFG_PKG_APACHE_BDB" ] ; then
  83. pkgprefix -t bdb
  84. var_append extraconfopt " " \
  85. "--with-berkeley-db=$( pkgprefix includedir bdb )"
  86. fi