mirror of the now-defunct rocklinux.org
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.

59 lines
2.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/alessandro/postfix/postfix.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. pkg_postfix_inmake() {
  23. chmod +x postfix-install
  24. # Due to the compare and remove operation in the install file we really
  25. # need to really modify the config and the filenames - the
  26. # INSTALL_WRAPPER can not be used.
  27. sed -i -e "s,man1/mailq.1,man1/mailq_postfix.1," \
  28. -e "s,man1/newaliases.1,man1/newaliases_postfix.1," \
  29. -e "s,man5/aliases.5,man5/aliases_postfix.5," \
  30. conf/postfix-files
  31. mv man/man5/aliases{,_postfix}.5
  32. mv man/man1/newaliases{,_postfix}.1
  33. mv man/man1/mailq{,_postfix}.1
  34. }
  35. pkg_postfix_postmake() {
  36. ./postfix-install -non-interactive \
  37. sendmail_path=$sbindir/sendmail_postfix \
  38. newaliases_path=$bindir/newaliases_postfix \
  39. mailq_path=$bindir/mailq_postfix \
  40. install_root=$root \
  41. manpage_directory=$mandir \
  42. sample_directory=$docdir \
  43. readme_directory=$docdir
  44. install_setmailer postfix
  45. install_init $pkg $confdir/$pkg.init
  46. }
  47. runconf=0
  48. inmake=pkg_postfix_inmake
  49. makeinstopt=""
  50. postmake="pkg_postfix_postmake"
  51. # adding -pthread switch because bdb is using pthreads
  52. var_append GCC_WRAPPER_INSERT ' ' '-pthread'