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.

56 lines
1.8 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../anomy-mailtools/anomy-mailtools.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  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. # --- T2-COPYRIGHT-NOTE-END ---
  15. if [ $prefix_auto = 1 ] ; then
  16. prefix="opt/anomy-mailtools"
  17. set_confopt
  18. fi
  19. anomy_custmain() {
  20. # Create necessary directories
  21. mkdir -p $root/$bindir/Anomy/Sanitizer
  22. mkdir -p $root/$datadir/contrib
  23. mkdir -p $root/$datadir/testcases/results.def
  24. # Install the executables
  25. install -v -m 755 bin/*.pl contrib/check_for_virus $root/$bindir
  26. install -v -m 644 bin/Anomy/*.pm $root/$bindir/Anomy
  27. install -v -m 644 bin/Anomy/Sanitizer/*.pm $root/$bindir/Anomy/Sanitizer
  28. # Install the contributed files and testcases
  29. install -v -m 644 contrib/* $root/$datadir/contrib
  30. install -v -m 644 testcases/* $root/$datadir/testcases || true
  31. install -v -m 644 testcases/results.def/* $root/$datadir/testcases/results.def
  32. # Install the docs
  33. for I in CHANGELOG.sanitizer CREDITS README.sanitizer \
  34. sanitizer.html UNICODE.TXT
  35. do
  36. install -v -m 644 $I $root/$docdir
  37. done
  38. # Install a sample config that uses ClamAV
  39. install -v -m 644 $confdir/sanitizer.cfg $root/$sysconfdir
  40. # Set up the environment variable
  41. echo "Creating /etc/profile.d/$pkg ..."
  42. cat <<- EOT > $root/etc/profile.d/$pkg
  43. export ANOMY=$root/opt/$pkg
  44. EOT
  45. }
  46. custmain="anomy_custmain"
  47. createdocs=0