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.

73 lines
2.6 KiB

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