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.

88 lines
3.3 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 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. # 2007-08-04 NOTE: disabled because it doesn't build at the moment
  53. #var_append confopt ' ' "--with-mysql-log"
  54. var_append CPPFLAGS ' ' "-I$root$( pkgprefix includedir mysql )"
  55. var_append CFLAGS ' ' "-I$root$( pkgprefix includedir mysql )"
  56. var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir mysql )/mysql"
  57. var_append LD_RUN_PATH ':' "$( pkgprefix libdir mysql )/mysql"
  58. export CPPFLAGS CFLAGS LDFLAGS LD_RUN_PATH
  59. fi
  60. # Support user activity logging in PostgreSQL database
  61. if pkginstalled postgresql ; then
  62. pkgprefix -t postgresql
  63. var_append confopt ' ' "--with-pgsql-log"
  64. var_append CPPFLAGS ' ' "-I$root$( pkgprefix includedir postgresql )"
  65. var_append CFLAGS ' ' "-I$root$( pkgprefix includedir postgresql )"
  66. var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir postgresql )"
  67. export CPPFLAGS CFLAGS LDFLAGS
  68. fi
  69. # Support user activity logging in syslog
  70. var_append confopt ' ' "--with-syslog-log"
  71. # Support LDAP directory for users and acl lookup
  72. if pkginstalled openldap ; then
  73. pkgprefix -t openldap
  74. var_append confopt ' ' "--with-ldap"
  75. var_append CPPFLAGS ' ' "-I$root$( pkgprefix includedir openldap )"
  76. var_append CFLAGS ' ' "-I$root$( pkgprefix includedir openldap )"
  77. var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir openldap )"
  78. export CPPFLAGS CFLAGS LDFLAGS
  79. fi