patch-bin_upgrade_MailScanner_conf 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. $OpenBSD: patch-bin_upgrade_MailScanner_conf,v 1.2 2009/10/17 16:25:49 sthen Exp $
  2. --- bin/upgrade_MailScanner_conf.orig Tue Aug 11 11:26:07 2009
  3. +++ bin/upgrade_MailScanner_conf Tue Oct 13 22:41:40 2009
  4. @@ -60,25 +60,12 @@ sub Usage {
  5. print STDERR <<EOU;
  6. Usage:
  7. -RPM
  8. -===
  9. -If you are using the RPM distributions then try this:
  10. -
  11. -cd /etc/MailScanner
  12. -upgrade_MailScanner_conf MailScanner.conf MailScanner.conf.rpmnew > MailScanner.new
  13. +cd %SYSCONFDIR%/MailScanner
  14. +%PREFIX%/bin/upgrade_MailScanner_conf MailScanner.conf \\
  15. +%PREFIX%/share/examples/MailScanner/MailScanner.conf > MailScanner.new
  16. mv -f MailScanner.conf MailScanner.old
  17. mv -f MailScanner.new MailScanner.conf
  18. -TAR
  19. -===
  20. -If you are using the tar distribution so that the old version is in
  21. -/opt/MailScanner and the new one is in /opt/MailScanner.new then:
  22. -
  23. -cd /opt/MailScanner.new/etc
  24. -../bin/upgrade_MailScanner_conf /opt/MailScanner/etc/MailScanner.conf /opt/MailScanner.new/etc/MailScanner.conf > MailScanner.new
  25. -mv -f MailScanner.conf MailScanner.old
  26. -mv -f MailScanner.new MailScanner.conf
  27. -
  28. NOTE
  29. ====
  30. To keep your old comments in your original file, add "--keep-comments"
  31. @@ -91,25 +78,7 @@ EOU
  32. print STDERR <<EOLANG;
  33. Usage:
  34. -RPM
  35. -===
  36. -If you are using the RPM distributions then try this:
  37. -cd /etc/MailScanner/reports/en
  38. -upgrade_languages_conf languages.conf languages.conf.rpmnew > languages.new
  39. -mv -f languages.conf languages.old
  40. -mv -f languages.new languages.conf
  41. -
  42. -TAR
  43. -===
  44. -If you are using the tar distribution so that the old version is in
  45. -/opt/MailScanner and the new one is in /opt/MailScanner.new then:
  46. -
  47. -cd /opt/MailScanner.new/etc/reports/en
  48. -../../../bin/upgrade_languages_conf /opt/MailScanner/etc/reports/en/languages.conf /opt/MailScanner.new/etc/reports/en/languages.conf > languages.new
  49. -mv -f languages.conf languages.old
  50. -mv -f languages.new languages.conf
  51. -
  52. NOTE
  53. ====
  54. To keep your old comments in your original file, add "--keep-comments"
  55. @@ -364,9 +333,11 @@ I would advise you to check on any parameters which ar
  56. the default new conf file and the conf file you just created, so that you
  57. find any parameters whose default values have changed.
  58. If you ran this with a command like this
  59. - upgrade_$filescore $filedot $filedot.rpmnew > $filenew
  60. +%PREFIX%/bin/upgrade_MailScanner_conf %SYSCONFDIR%/MailScanner/MailScanner.conf \\
  61. +%PREFIX%/share/examples/MailScanner/MailScanner.conf > MailScanner.new
  62. +
  63. then you should do
  64. - diff -w $filedot.rpmnew $filenew
  65. + diff -w $filedot $filenew
  66. and check for any differences in values you have not changed yourself.
  67. EOL