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.

86 lines
2.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../postfix/postfix-no-postconf.patch.cross
  5. # Copyright (C) 2014 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Do not run postconf when installing through postfix-install, because it
  17. it might not be executable by the host when cross-compiled.
  18. --- a/postfix-install 2014-03-07 18:24:06.661626473 +0100
  19. +++ b/postfix-install 2014-03-07 18:29:09.408652360 +0100
  20. @@ -205,11 +205,6 @@
  21. exit 1
  22. }
  23. -test -x bin/postconf || {
  24. - echo $0: Error: no bin/postconf file. Did you forget to run \"make\"? 1>&2
  25. - exit 1
  26. -}
  27. -
  28. case `uname -s` in
  29. HP-UX*) FMT=cat;;
  30. *) FMT=fmt;;
  31. @@ -368,7 +363,6 @@
  32. : ${install_root=/}
  33. : ${tempdir=`pwd`}
  34. -: ${config_directory=`bin/postconf -c conf -h -d config_directory`}
  35. # Find out the location of installed configuration files.
  36. @@ -438,8 +432,6 @@
  37. case "$junk" in
  38. "") eval unset $name;;
  39. esac
  40. - eval : \${$name=\`bin/postconf -c $CONFIG_DIRECTORY -h $name\`} ||
  41. - exit 1
  42. done
  43. }
  44. @@ -451,7 +443,6 @@
  45. case "$junk" in
  46. "") eval unset $name;;
  47. esac
  48. - eval : \${$name=\`bin/postconf -c conf -d -h $name\`} || exit 1
  49. done
  50. # Override settings manually.
  51. @@ -724,27 +715,6 @@
  52. done
  53. -# Save the installation parameters to main.cf even when they haven't
  54. -# changed from their current default. Defaults can change between
  55. -# Postfix releases, and software should not suddenly be installed in
  56. -# the wrong place when Postfix is being upgraded.
  57. -
  58. -bin/postconf -c $CONFIG_DIRECTORY -e \
  59. - "daemon_directory = $daemon_directory" \
  60. - "data_directory = $data_directory" \
  61. - "command_directory = $command_directory" \
  62. - "queue_directory = $queue_directory" \
  63. - "mail_owner = $mail_owner" \
  64. - "setgid_group = $setgid_group" \
  65. - "sendmail_path = $sendmail_path" \
  66. - "mailq_path = $mailq_path" \
  67. - "newaliases_path = $newaliases_path" \
  68. - "html_directory = $html_directory" \
  69. - "manpage_directory = $manpage_directory" \
  70. - "sample_directory = $sample_directory" \
  71. - "readme_directory = $readme_directory" \
  72. -|| exit 1
  73. -
  74. # If Postfix is being installed locally from source code, do the
  75. # post-install processing now.