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. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../postfix/postfix.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 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. pkg_postfix_premake() {
  16. pkginstalled cyrus-sasl2 && {
  17. var_append CCARGS ' ' "-DUSE_SASL_AUTH -I$( pkgprefix includedir cyrus-sasl2 )"
  18. var_append AUXLIBS ' ' "-L$( pkgprefix libdir cyrus-sasl2 ) -lsasl2"
  19. }
  20. pkginstalled openldap && {
  21. var_append CCARGS ' ' "-DHAS_LDAP -I$( pkgprefix includedir openldap )"
  22. var_append AUXLIBS ' ' "-L$( pkgprefix libdir openldap ) -lldap -llber"
  23. }
  24. pkginstalled mysql && {
  25. var_append CCARGS ' ' "-DHAS_MYSQL -I$( pkgprefix includedir mysql )/mysql -R$( pkgprefix libdir mysql )/mysql"
  26. var_append AUXLIBS ' ' "-L$( pkgprefix libdir mysql )/mysql -lmysqlclient -lz -lm"
  27. var_append LD_RUN_PATH ':' "$( pkgprefix libdir mysql )/mysql"
  28. export LD_RUN_PATH
  29. }
  30. pkginstalled openssl && {
  31. var_append CCARGS ' ' "-DHAS_SSL -I$( pkgprefix includedir openssl )"
  32. var_append AUXLIBS ' ' "-L$( pkgprefix libdir openssl ) -lssl -lcrypto"
  33. }
  34. export CCARGS
  35. export AUXLIBS
  36. $MAKE -f Makefile.init makefiles
  37. }
  38. pkg_postfix_inmake() {
  39. chmod +x postfix-install
  40. # Due to the compare and remove operation in the install file we really
  41. # need to really modify the config and the filenames - the
  42. # INSTALL_WRAPPER can not be used.
  43. sed -i -e "s,man1/mailq.1,man1/mailq_postfix.1," \
  44. -e "s,man1/newaliases.1,man1/newaliases_postfix.1," \
  45. -e "s,man5/aliases.5,man5/aliases_postfix.5," \
  46. conf/postfix-files
  47. mv man/man5/aliases{,_postfix}.5
  48. mv man/man1/newaliases{,_postfix}.1
  49. mv man/man1/mailq{,_postfix}.1
  50. }
  51. pkg_postfix_postmake() {
  52. ./postfix-install -non-interactive \
  53. sendmail_path=$sbindir/sendmail_postfix \
  54. newaliases_path=$bindir/newaliases_postfix \
  55. mailq_path=$bindir/mailq_postfix \
  56. install_root=$root \
  57. manpage_directory=$mandir \
  58. sample_directory=$docdir \
  59. readme_directory=$docdir
  60. install_setmailer postfix
  61. }
  62. runconf=0
  63. hook_add premake 5 pkg_postfix_premake
  64. hook_add inmake 5 pkg_postfix_inmake
  65. makeinstopt=""
  66. hook_add postmake 5 "pkg_postfix_postmake"