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.

79 lines
2.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../nufw/nufw.conf
  5. # Copyright (C) 2007 - 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. if [ $prefix_auto = 1 ] ; then
  15. prefix="opt/nufw"
  16. set_confopt
  17. fi
  18. # echo a warning if iptables was not build with development support and
  19. # libnetfilter_queue is not available
  20. if [ "$SDECFG_PKG_IPTABLES_DEVEL" != "1" ] && ! pkginstalled libnetfilter_queue ; then
  21. echo_warning "NuFW daemon WON'T be compiled: neither libipq nor nfqueue"
  22. echo_warning "found! Please recompile iptables with development support"
  23. echo_warning "or install libnetfilter_queue alternatively to get the"
  24. echo_warning "NuFW daemon build!"
  25. fi
  26. # Compile for NFQUEUE instead of QUEUE
  27. if pkginstalled libnetfilter_queue ; then
  28. pkgprefix -t libnetfilter_queue
  29. var_append confopt ' ' "--with-nfqueue"
  30. echo_status "NuFW: libnetfilter_queue support"
  31. else
  32. var_append confopt ' ' "--without-nfqueue"
  33. fi
  34. # Compile with netfilter_conntrack
  35. if pkginstalled libnetfilter_conntrack ; then
  36. pkgprefix -t libnetfilter_conntrack
  37. var_append confopt ' ' "--with-nfconntrack"
  38. echo_status "NuFW: libnetfilter_conntrack support"
  39. fi
  40. # Support user activity logging in Prelude
  41. if pkginstalled libprelude ; then
  42. pkgprefix -t libprelude
  43. var_append confopt ' ' "--with-prelude-log"
  44. var_append CPPFLAGS ' ' "-I$root$( pkgprefix includedir libprelude )/libprelude"
  45. var_append CFLAGS ' ' "-I$root$( pkgprefix includedir libprelude )/libprelude"
  46. var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir libprelude )"
  47. export CPPFLAGS CFLAGS LDFLAGS
  48. fi
  49. # Support user activity logging in Mysql database
  50. if pkginstalled mysql ; then
  51. pkgprefix -t mysql
  52. var_append confopt ' ' "--with-mysql-log"
  53. var_append GCC_WRAPPER_APPEND ' ' "-I$(pkgprefix -r includedir mysql)"
  54. var_append GCC_WRAPPER_APPEND ' ' "-L$(pkgprefix -r libdir mysql)"
  55. fi
  56. # Support user activity logging in PostgreSQL database
  57. if pkginstalled postgresql ; then
  58. pkgprefix -t postgresql
  59. var_append confopt ' ' "--with-pgsql-log"
  60. var_append CPPFLAGS ' ' "-I$root$( pkgprefix includedir postgresql )"
  61. var_append CFLAGS ' ' "-I$root$( pkgprefix includedir postgresql )"
  62. var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir postgresql )"
  63. export CPPFLAGS CFLAGS LDFLAGS
  64. fi
  65. # Support user activity logging in syslog
  66. var_append confopt ' ' "--with-syslog-log"
  67. # Support LDAP directory for users and acl lookup
  68. if pkginstalled openldap ; then
  69. var_append confopt ' ' "--with-ldap"
  70. fi