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.

76 lines
2.0 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=dovecot
  9. PKG_VERSION:=2.2.13
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.dovecot.org/releases/2.2
  13. PKG_MD5SUM:=a3eb1c0b1822c4f2b0fe9247776baa71
  14. PKG_BUILD_DEPENDS:=libiconv
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/dovecot
  19. SECTION:=mail
  20. CATEGORY:=Mail
  21. DEPENDS:=+libopenssl +librt +zlib +libbz2 +libcap
  22. TITLE:=An IMAP and POP3 daemon
  23. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  24. URL:=http://www.dovecot.org/
  25. endef
  26. define Package/dovecot/description
  27. Dovecot is a program which provides POP3 and IMAP services.
  28. endef
  29. CONFIGURE_ARGS += \
  30. --without-gssapi \
  31. --without-pam \
  32. --with-moduledir=/usr/lib/dovecot/modules \
  33. --with-notify=dnotify \
  34. --without-lzma \
  35. --without-lz4
  36. CONFIGURE_VARS += \
  37. RPCGEN= \
  38. i_cv_signed_size_t=no \
  39. i_cv_signed_time_t=no \
  40. i_cv_gmtime_max_time_t=32 \
  41. i_cv_mmap_plays_with_write=yes \
  42. i_cv_fd_passing=yes \
  43. i_cv_c99_vsnprintf=yes \
  44. lib_cv_va_copy=yes \
  45. lib_cv_va_copy=yes \
  46. lib_cv___va_copy=yes \
  47. lib_cv_va_val_copy=yes
  48. define Package/dovecot/install
  49. $(INSTALL_DIR) $(1)/etc/init.d \
  50. $(1)/etc/dovecot \
  51. $(1)/usr/share/doc/dovecot/example-config \
  52. $(1)/usr/lib/dovecot \
  53. $(1)/usr/bin \
  54. $(1)/usr/sbin
  55. $(CP) $(PKG_INSTALL_DIR)/etc/dovecot/* $(1)/etc/dovecot/
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/
  57. $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/dovecot/example-config $(1)/usr/share/doc/dovecot/example-config
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/doveconf $(1)/usr/bin/
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  60. $(INSTALL_BIN) ./files/dovecot.init $(1)/etc/init.d/dovecot
  61. rm $(1)/usr/lib/dovecot/dovecot-config
  62. find $(1)/usr/lib/dovecot/ -name "*.a" -o -name "*.la" | xargs rm
  63. endef
  64. $(eval $(call BuildPackage,dovecot))