Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # $OpenBSD: Makefile,v 1.21 2017/04/10 11:46:22 sthen Exp $
  2. COMMENT-main= extras for smtpd
  3. COMMENT-mysql= mysql based smtpd table support
  4. COMMENT-pgsql= postgresql based smtpd table support
  5. COMMENT-python= extras with python bindings for smtpd
  6. COMMENT-redis= redis based smtpd table support
  7. V= 201703132115
  8. DISTNAME= opensmtpd-extras-${V}
  9. PKGNAME-main= ${DISTNAME}
  10. PKGNAME-mysql= opensmtpd-extras-mysql-${V}
  11. PKGNAME-pgsql= opensmtpd-extras-pgsql-${V}
  12. PKGNAME-python= opensmtpd-extras-python-${V}
  13. PKGNAME-redis= opensmtpd-extras-redis-${V}
  14. CATEGORIES= mail
  15. HOMEPAGE= https://www.opensmtpd.org/
  16. MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>, \
  17. Joerg Jung <jung@openbsd.org>
  18. MULTI_PACKAGES= -main -mysql -pgsql -python -redis
  19. # BSD
  20. PERMIT_PACKAGE_CDROM= Yes
  21. WANTLIB= c crypto event pthread ssl sqlite3
  22. WANTLIB-mysql= c crypto event ssl m z pthread ${LIBCXX} mysqlclient
  23. WANTLIB-pgsql= c crypto event ssl pq
  24. WANTLIB-python= c crypto event ssl m util pthread ${MODPY_WANTLIB}
  25. WANTLIB-redis= c crypto event ssl hiredis
  26. MASTER_SITES= ${HOMEPAGE}archives/
  27. MODULES= lang/python
  28. LIB_DEPENDS-main= databases/sqlite3
  29. LIB_DEPENDS-mysql= databases/mariadb,-main
  30. LIB_DEPENDS-pgsql= databases/postgresql,-main
  31. LIB_DEPENDS-python= ${MODPY_LIB_DEPENDS}
  32. LIB_DEPENDS-redis= databases/libhiredis
  33. RUN_DEPENDS-python= ${MODPY_RUN_DEPENDS}
  34. CONFIGURE_STYLE= gnu
  35. CONFIGURE_ARGS= --mandir=${PREFIX}/man \
  36. --libexecdir=${PREFIX}/libexec \
  37. --sysconfdir=${SYSCONFDIR}/mail \
  38. --with-cppflags="${CFLAGS} -I${PREFIX}/include \
  39. -I${PREFIX}/include/postgresql" \
  40. --with-python-type=python${MODPY_VERSION} \
  41. --with-filter-monkey \
  42. --with-filter-stub \
  43. --with-filter-trace \
  44. --with-filter-void \
  45. --with-queue-null \
  46. --with-queue-python \
  47. --with-queue-ram \
  48. --with-queue-stub \
  49. --with-scheduler-python \
  50. --with-scheduler-ram \
  51. --with-scheduler-stub \
  52. --with-table-ldap \
  53. --with-table-mysql \
  54. --with-table-passwd \
  55. --with-table-postgres \
  56. --with-table-python \
  57. --with-table-redis \
  58. --with-table-socketmap \
  59. --with-table-sqlite \
  60. --with-table-stub \
  61. --with-tool-stats
  62. NO_TEST= Yes
  63. post-install:
  64. ${INSTALL_DATA_DIR} \
  65. ${PREFIX}/share/examples/opensmtpd-extras
  66. cd ${WRKSRC} && ${INSTALL_DATA} \
  67. extras/filters/filter-*/filter-*.conf \
  68. ${PREFIX}/share/examples/opensmtpd-extras
  69. .include <bsd.port.mk>