Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= dovecot
  5. PKG_VERSION:= 2.2.23
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 5d834be43fe8f6f61d9b0fb139bf1db2a4da313aeebd7bf09e4bf6bcb1c9e441
  8. PKG_DESCR:= minimal and secure imap server
  9. PKG_SECTION:= net/mail
  10. PKG_URL:= http://www.dovecot.org/
  11. PKG_SITES:= http://www.dovecot.org/releases/2.2/
  12. PKG_CHOICES_DOVECOT:= WITH_LIBRESSL WITH_OPENSSL
  13. PKGCD_WITH_LIBRESSL:= use libressl for crypto
  14. PKGCB_WITH_LIBRESSL:= libressl
  15. PKGCS_WITH_LIBRESSL:= libressl
  16. PKGCD_WITH_OPENSSL:= use openssl for crypto
  17. PKGCB_WITH_OPENSSL:= openssl
  18. PKGCS_WITH_OPENSSL:= libopenssl
  19. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  20. include $(ADK_TOPDIR)/mk/package.mk
  21. $(eval $(call PKG_template,DOVECOT,dovecot,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  22. CONFIGURE_ENV+= RPCGEN='' \
  23. ignore_signed_size=1 \
  24. signed_size_t=no \
  25. gmtime_max_time_t=32 \
  26. fd_passing=yes \
  27. lib_cv_va_copy=yes \
  28. lib_cv___va_copy=yes \
  29. lib_cv_va_val_copy=yes \
  30. mmap_plays_with_write=yes \
  31. i_cv_gmtime_max_time_t=31 \
  32. i_cv_posix_fallocate_works=no \
  33. i_cv_epoll_works=yes \
  34. i_cv_signed_time_t=yes \
  35. i_cv_mmap_plays_with_write=yes \
  36. i_cv_signed_size_t=yes \
  37. i_cv_c99_vsnprintf=yes \
  38. i_cv_fd_passing=yes
  39. CONFIGURE_ARGS+= --with-notify=none \
  40. --without-gssapi \
  41. --without-pam \
  42. --with-ioloop=epoll \
  43. --with-moduledir=/usr/lib/dovecot/modules \
  44. --with-ssl=openssl
  45. dovecot-install:
  46. $(INSTALL_DIR) $(IDIR_DOVECOT)/etc/dovecot
  47. $(INSTALL_DIR) $(IDIR_DOVECOT)/usr/bin
  48. $(INSTALL_DIR) $(IDIR_DOVECOT)/usr/sbin
  49. $(INSTALL_DIR) $(IDIR_DOVECOT)/usr/libexec/dovecot
  50. $(INSTALL_DIR) $(IDIR_DOVECOT)/usr/lib/dovecot/modules
  51. $(CP) $(WRKINST)/usr/share/doc/dovecot/example-config/* \
  52. $(IDIR_DOVECOT)/etc/dovecot
  53. $(CP) $(WRKINST)/usr/lib/dovecot/*.so* \
  54. $(IDIR_DOVECOT)/usr/lib/dovecot/
  55. $(CP) $(WRKINST)/usr/lib/dovecot/modules/*.so \
  56. $(IDIR_DOVECOT)/usr/lib/dovecot/modules/
  57. $(CP) $(WRKINST)/usr/libexec/dovecot/* \
  58. $(IDIR_DOVECOT)/usr/libexec/dovecot/
  59. $(INSTALL_BIN) $(WRKINST)/usr/sbin/dovecot* \
  60. $(IDIR_DOVECOT)/usr/sbin
  61. $(INSTALL_BIN) $(WRKINST)/usr/bin/* \
  62. $(IDIR_DOVECOT)/usr/bin
  63. include $(ADK_TOPDIR)/mk/pkg-bottom.mk