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.

74 lines
2.7 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. # echo a warning if iptables was not build with development support and
  15. # libnetfilter_queue is not available
  16. if [ "$SDECFG_PKG_IPTABLES_DEVEL" != "1" ] && ! pkginstalled libnetfilter_queue ; then
  17. echo_warning "NuFW daemon WON'T be compiled: neither libipq nor nfqueue"
  18. echo_warning "found! Please recompile iptables with development support"
  19. echo_warning "or install libnetfilter_queue alternatively to get the"
  20. echo_warning "NuFW daemon build!"
  21. fi
  22. # Compile for NFQUEUE instead of QUEUE
  23. if pkginstalled libnetfilter_queue ; then
  24. pkgprefix -t libnetfilter_queue
  25. var_append confopt ' ' "--with-nfqueue"
  26. echo_status "NuFW: libnetfilter_queue support"
  27. else
  28. var_append confopt ' ' "--without-nfqueue"
  29. fi
  30. # Compile with netfilter_conntrack
  31. if pkginstalled libnetfilter_conntrack ; then
  32. pkgprefix -t libnetfilter_conntrack
  33. var_append confopt ' ' "--with-nfconntrack"
  34. echo_status "NuFW: libnetfilter_conntrack support"
  35. fi
  36. # Support user activity logging in Prelude
  37. if pkginstalled libprelude ; then
  38. pkgprefix -t libprelude
  39. var_append confopt ' ' "--with-prelude-log"
  40. var_append CPPFLAGS ' ' "-I$root$( pkgprefix includedir libprelude )/libprelude"
  41. var_append CFLAGS ' ' "-I$root$( pkgprefix includedir libprelude )/libprelude"
  42. var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir libprelude )"
  43. export CPPFLAGS CFLAGS LDFLAGS
  44. fi
  45. # Support user activity logging in Mysql database
  46. if pkginstalled mysql ; then
  47. pkgprefix -t mysql
  48. var_append confopt ' ' "--with-mysql-log"
  49. var_append GCC_WRAPPER_APPEND ' ' "-I$(pkgprefix -r includedir mysql)"
  50. var_append GCC_WRAPPER_APPEND ' ' "-L$(pkgprefix -r libdir mysql)"
  51. fi
  52. # Support user activity logging in PostgreSQL database
  53. if pkginstalled postgresql ; then
  54. pkgprefix -t postgresql
  55. var_append confopt ' ' "--with-pgsql-log"
  56. var_append CPPFLAGS ' ' "-I$root$( pkgprefix includedir postgresql )"
  57. var_append CFLAGS ' ' "-I$root$( pkgprefix includedir postgresql )"
  58. var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir postgresql )"
  59. export CPPFLAGS CFLAGS LDFLAGS
  60. fi
  61. # Support user activity logging in syslog
  62. var_append confopt ' ' "--with-syslog-log"
  63. # Support LDAP directory for users and acl lookup
  64. if pkginstalled openldap ; then
  65. var_append confopt ' ' "--with-ldap"
  66. fi