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.

111 lines
3.8 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 - 2011 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="usr"
  21. fi
  22. set_confopt
  23. fi
  24. sysconfdir="$sysconfdir/$pkg"
  25. includedir="$includedir/$pkg"
  26. var_append extraconfopt ' ' "--libexecdir=$libdir/$pkg/modules"
  27. # APR is mandatory, so no additional test needed.
  28. pkgprefix -t apr
  29. var_append extraconfopt " " "--with-apr=$root/$( pkgprefix apr )"
  30. pkgprefix -t apr-util
  31. var_append extraconfopt " " "--with-apr-util=$root/$( pkgprefix apr-util )"
  32. if [ $pkg = "apache" ] ; then
  33. datadir="$localstatedir/lib"
  34. # or maybe www would be nicer than lib ?!? ...
  35. if [ "$SDECFG_PKG_APACHE_SUEXEC" == "1" ]; then
  36. if [ "${SDECFG_PKG_APACHE_DOCROOT:0:1}" == "/" ] ; then
  37. docroot="$SDECFG_PKG_APACHE_DOCROOT"
  38. else
  39. docroot="$localstatedir/$SDECFG_PKG_APACHE_DOCROOT"
  40. fi
  41. var_append extraconfopt ' ' \
  42. "--with-suexec-docroot=${docroot#$root}"
  43. # var_append extraconfopt ' ' \
  44. # "--with-suexec-userdir=$SDECFG_PKG_APACHE_USERDIR"
  45. var_append extraconfopt ' ' "--with-suexec-caller=http \
  46. --enable-suexec"
  47. hook_add postmake 5 "mv -vf $sbindir/suexec $bindir/"
  48. fi
  49. [ "$SDECFG_PKG_APACHE_MOD_SO" == 1 ] &&
  50. var_append extraconfopt " " "--enable-so"
  51. [ "$SDECFG_PKG_APACHE_MOD_AUTH_ANON" == 1 ] &&
  52. var_append extraconfopt " " "--enable-mod-auth-anon"
  53. [ "$SDECFG_PKG_APACHE_MOD_AUTH_DBM" == 1 ] &&
  54. var_append extraconfopt " " "--enable-mod-auth-dbm"
  55. [ "$SDECFG_PKG_APACHE_MOD_AUTH_DIGEST" == 1 ] &&
  56. var_append extraconfopt " " "--enable-auth-digest"
  57. if [ "$SDECFG_PKG_APACHE_MOD_AUTH_LDAP" == 1 ] ; then
  58. pkgprefix -t openldap
  59. var_append extraconfopt " " "--with-ldap"
  60. var_append extraconfopt " " "--enable-ldap"
  61. var_append extraconfopt " " "--enable-auth-ldap"
  62. var_append CFLAGS ' ' "-I$( pkgprefix includedir openldap )"
  63. var_append CPPFLAGS ' ' "-I$( pkgprefix includedir openldap )"
  64. var_append LDFLAGS ' ' "-L$( pkgprefix libdir openldap )"
  65. export CPPFLAGS CFLAGS LDFLAGS
  66. fi
  67. var_append extraconfopt " " "--enable-ssl"
  68. [ "$SDECFG_PKG_APACHE_MOD_DAV" == 1 ] &&
  69. var_append extraconfopt " " "--enable-dav"
  70. [ "$SDECFG_PKG_APACHE_MOD_PROXY" == 1 ] &&
  71. var_append extraconfopt " " "--enable-proxy"
  72. [ "$SDECFG_PKG_APACHE_MOD_REWRITE" == 1 ] &&
  73. var_append extraconfopt " " "--enable-rewrite"
  74. [ "$SDECFG_PKG_APACHE_MOD_CACHE" == 1 ] &&
  75. var_append extraconfopt " " "--enable-cache"
  76. [ "$SDECFG_PKG_APACHE_MOD_DISK_CACHE" == 1 ] &&
  77. var_append extraconfopt " " "--enable-disk-cache"
  78. [ "$SDECFG_PKG_APACHE_MOD_DEFLATE" == 1 ] &&
  79. var_append extraconfopt " " "--enable-deflate"
  80. [ "$SDECFG_PKG_APACHE_MOD_INFO" == 1 ] &&
  81. var_append extraconfopt " " "--enable-info"
  82. [ "$SDECFG_PKG_APACHE_MOD_SPELLING" == 1 ] &&
  83. var_append extraconfopt " " "--enable-spelling"
  84. fi
  85. if [ "$SDECFG_PKG_APACHE_BDB" ] ; then
  86. pkgprefix -t bdb
  87. var_append extraconfopt " " \
  88. "--with-berkeley-db=$( pkgprefix includedir bdb )"
  89. fi