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.

72 lines
2.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../samhain/samhain.conf
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. # removing some not supported configure options
  16. CONFOPT_RM_REGEX="bindir libdir datadir includedir infodir"
  17. for x in $CONFOPT_RM_REGEX; do
  18. var_remove_regex confopt " " "--$x.*"
  19. done
  20. EXTRACONFOPT_RM_REGEX="enable-gssapi with-gss with-krb5 with-kerberos5 with-mysql-lib with-mysql-include with-ssl"
  21. for x in $EXTRACONFOPT_RM_REGEX; do
  22. var_remove_regex extraconfopt " " "--$x.*"
  23. done
  24. EXTRACONFOPTS_RM="with-pam enable-pam with-libpam enable-libpam with-kerberos"
  25. for x in $EXTRACONFOPTS_RM; do
  26. var_remove extraconfopt " " "--$x"
  27. done
  28. # GnuPG Support (Signing of Configuration/Database Files)
  29. if pkginstalled gnupg ; then
  30. pkgprefix -t gnupg
  31. var_append extraconfopt " " "--with-gpg=$( pkgprefix bindir gnupg )/gpg"
  32. echo_status "Enable GnuPG Signing for Configuration/Database Files"
  33. else
  34. echo_status "Disable GnuPG Signing for Configuration/Database Files"
  35. fi
  36. # checking for prelude support
  37. if pkginstalled libprelude; then
  38. var_append extraconfopt " " "--with-prelude"
  39. fi
  40. # checking for mysql support
  41. if pkginstalled mysql; then
  42. pkgprefix -t mysql
  43. var_append extraconfopt " " "--enable-xml-log"
  44. var_append extraconfopt " " "--with-database=mysql"
  45. var_append LD_RUN_PATH ':' "$( pkgprefix libdir mysql )/mysql"
  46. export LD_RUN_PATH
  47. fi
  48. # checking for postgresql support
  49. if pkginstalled postgresql; then
  50. pkgprefix -t postgresql
  51. var_append extraconfopt " " "--enable-xml-log"
  52. var_append extraconfopt " " "--with-database=postgresql"
  53. var_append LD_RUN_PATH ':' "$( pkgprefix libdir postgresql )"
  54. export LD_RUN_PATH
  55. fi
  56. samhain_custextract () {
  57. echo "Extracting $1 ($taropt) to temporary location ... "
  58. pkg_samhain_tempdir=`mktemp -d`
  59. tar -v $taropt $1 -C $pkg_samhain_tempdir
  60. echo "Extracting2 $1 ($taropt) ... "
  61. tar -xzvf $pkg_samhain_tempdir/$pkg-$ver.tar.gz | sed 's,^,$pkg-$ver/,' > untar.txt
  62. }
  63. custextract=samhain_custextract