site.OS.m4 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: site.OS.m4,v 1.3 2017/01/30 15:42:04 bluhm Exp $
  2. # OpenBSD Sendmail port configuration, generated from __file__
  3. dnl
  4. dnl Target directories
  5. dnl ==================
  6. define(`confHFDIR', `${TRUEPREFIX}/share/examples/sendmail')dnl
  7. define(`confINCLUDEDIR', `${TRUEPREFIX}/include')dnl
  8. define(`confLIBDIR', `${TRUEPREFIX}/lib')dnl
  9. define(`confUBINDIR', `${TRUEPREFIX}/bin')dnl
  10. define(`confSBINDIR', `${TRUEPREFIX}/sbin')dnl
  11. define(`confEBINDIR', `${TRUEPREFIX}/libexec')dnl
  12. define(`confMBINDIR', `${TRUEPREFIX}/libexec/sendmail/')dnl
  13. dnl Overriden in PLIST
  14. define(`confMSPQOWN', `root')
  15. define(`confGBINGRP', `wheel')
  16. dnl Manpages handling
  17. dnl =================
  18. define(`confMANROOT', `${TRUEPREFIX}/man/man')dnl
  19. define(`confMANROOTMAN', `${TRUEPREFIX}/man/man')dnl
  20. dnl define(`confNO_MAN_BUILD', `Yes')dnl
  21. define(`confINSTALL_RAWMAN', 'Yes')dnl
  22. define(`confDONT_INSTALL_CATMAN', 'Yes')dnl
  23. dnl FIXME
  24. define(`confNO_STATISTICS_INSTALL')dnl
  25. dnl Features we want
  26. dnl ================
  27. APPENDDEF(`confENVDEF', `-DNEEDSGETIPNODE')dnl
  28. APPENDDEF(`confENVDEF', `-DNETINET6')dnl
  29. APPENDDEF(`confENVDEF', `-DSM_CONF_SHM')dnl
  30. APPENDDEF(`confMAPDEF', `-DSOCKETMAP')dnl
  31. APPENDDEF(`conf_libmilter_ENVDEF', `-DMILTER')
  32. APPENDDEF(`conf_sendmail_ENVDEF', `-DMILTER')
  33. dnl (START)TLS
  34. APPENDDEF(`confENVDEF', `-DSTARTTLS')dnl
  35. APPENDDEF(`confENVDEF', `-D_FFR_TLS_EC')dnl
  36. APPENDDEF(`confENVDEF', `-D_FFR_TLS_SE_OPTS')dnl
  37. APPENDDEF(`confLIBS', `-lssl -lcrypto')dnl
  38. dnl Flavors
  39. dnl =======
  40. ifelse(`${WANT_LOCALBASE}', `Yes',dnl
  41. `APPENDDEF(`confINCDIRS', `-I${LOCALBASE}/include')dnl
  42. APPENDDEF(`confLIBDIRS', `-L${LOCALBASE}/lib')')dnl
  43. dnl
  44. ifelse(`${WANT_LDAP}', `Yes',dnl
  45. `APPENDDEF(`confMAPDEF', `-DLDAPMAP')dnl
  46. APPENDDEF(`confLIBS', `-lldap')')dnl
  47. dnl
  48. ifelse(`${WANT_SMTP_AUTH}', `Yes',dnl
  49. `APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')dnl
  50. APPENDDEF(`conf_sendmail_LIBS', `-lsasl2')dnl
  51. APPENDDEF(`confINCDIRS', `-I${LOCALBASE}/include/sasl')')dnl
  52. dnl Misc
  53. dnl ====
  54. dnl we do have poll(2), so use it
  55. APPENDDEF(`conf_libmilter_ENVDEF', `-DSM_CONF_POLL')dnl