Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= dovecot
  5. PKG_VERSION:= 2.0.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 7168c5bf40fdd38cceb99114547699b8
  8. PKG_DESCR:= A minimal and secure imap server
  9. PKG_SECTION:= mail
  10. PKG_URL:= http://www.dovecot.org/
  11. PKG_SITES:= http://www.dovecot.org/releases/2.0/
  12. PKG_CHOICES_DOVECOT:= WITH_OPENSSL WITH_GNUTLS
  13. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  14. PKGCS_WITH_OPENSSL:= libopenssl
  15. PKGCB_WITH_OPENSSL:= openssl
  16. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  17. PKGCS_WITH_GNUTLS:= libgnutls
  18. PKGCB_WITH_GNUTLS:= gnutls
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,DOVECOT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. CONFIGURE_ENV+= RPCGEN='' \
  22. ignore_signed_size=1 \
  23. signed_size_t=no \
  24. gmtime_max_time_t=32 \
  25. fd_passing=yes \
  26. lib_cv_va_copy=yes \
  27. lib_cv___va_copy=yes \
  28. lib_cv_va_val_copy=yes \
  29. mmap_plays_with_write=yes \
  30. i_cv_gmtime_max_time_t=31 \
  31. i_cv_posix_fallocate_works=no \
  32. i_cv_epoll_works=yes \
  33. i_cv_signed_time_t=yes \
  34. i_cv_mmap_plays_with_write=yes \
  35. i_cv_signed_size_t=yes \
  36. i_cv_c99_vsnprintf=yes \
  37. i_cv_fd_passing=yes
  38. CONFIGURE_ARGS+= --with-notify=none \
  39. --without-gssapi \
  40. --without-pam \
  41. --with-ioloop=epoll \
  42. --with-moduledir=/usr/lib/dovecot/modules
  43. ifeq (${ADK_PACKAGE_DOVECOT_WITH_GNUTLS},y)
  44. CONFIGURE_ARGS+= --with-ssl=gnutls
  45. endif
  46. ifeq (${ADK_PACKAGE_DOVECOT_WITH_OPENSSL},y)
  47. CONFIGURE_ARGS+= --with-ssl=openssl
  48. endif
  49. post-install:
  50. ${INSTALL_DIR} ${IDIR_DOVECOT}/etc
  51. ${INSTALL_DIR} ${IDIR_DOVECOT}/usr/sbin
  52. ${INSTALL_DIR} ${IDIR_DOVECOT}/usr/libexec/dovecot
  53. ${INSTALL_DIR} ${IDIR_DOVECOT}/usr/lib/dovecot/modules
  54. ${INSTALL_DATA} ./files/dovecot.conf ${IDIR_DOVECOT}/etc
  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. include ${TOPDIR}/mk/pkg-bottom.mk