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.

97 lines
2.6 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_LICENSE:=LGPL-2.1 MIT BSD-3-Clause Unique
  15. PKG_LICENSE_FILES:=COPYING COPYING.LGPL COPYING.MIT
  16. PKG_BUILD_DEPENDS:=libiconv
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/dovecot
  21. SECTION:=mail
  22. CATEGORY:=Mail
  23. DEPENDS:=+DOVECOT_LDAP:libopenldap +libopenssl +librt +zlib +libbz2 +libcap
  24. TITLE:=An IMAP and POP3 daemon
  25. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  26. URL:=http://www.dovecot.org/
  27. endef
  28. define Package/dovecot/description
  29. Dovecot is a program which provides POP3 and IMAP services.
  30. endef
  31. define Package/dovecot/config
  32. menu "Select dovecot build options"
  33. depends on PACKAGE_dovecot
  34. config DOVECOT_LDAP
  35. bool "LDAP support"
  36. default y
  37. help
  38. Implements LDAP support in dovecot.
  39. endmenu
  40. endef
  41. CONFIGURE_ARGS += \
  42. --without-gssapi \
  43. --without-pam \
  44. --with-moduledir=/usr/lib/dovecot/modules \
  45. --with-notify=dnotify \
  46. --without-lzma \
  47. --without-lz4
  48. ifneq ($(strip $(CONFIG_DOVECOT_LDAP)),)
  49. CONFIGURE_ARGS+= \
  50. --with-ldap=yes
  51. else
  52. CONFIGURE_ARGS+= \
  53. --with-ldap=no
  54. endif
  55. CONFIGURE_VARS += \
  56. RPCGEN= \
  57. i_cv_signed_size_t=no \
  58. i_cv_signed_time_t=no \
  59. i_cv_gmtime_max_time_t=32 \
  60. i_cv_mmap_plays_with_write=yes \
  61. i_cv_fd_passing=yes \
  62. i_cv_c99_vsnprintf=yes \
  63. lib_cv_va_copy=yes \
  64. lib_cv_va_copy=yes \
  65. lib_cv___va_copy=yes \
  66. lib_cv_va_val_copy=yes
  67. define Package/dovecot/install
  68. $(INSTALL_DIR) $(1)/etc/init.d \
  69. $(1)/etc/dovecot \
  70. $(1)/usr/share/doc/dovecot/example-config \
  71. $(1)/usr/lib/dovecot \
  72. $(1)/usr/bin \
  73. $(1)/usr/sbin
  74. $(CP) $(PKG_INSTALL_DIR)/etc/dovecot/* $(1)/etc/dovecot/
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/
  76. $(CP) $(PKG_INSTALL_DIR)/usr/share/doc/dovecot/example-config $(1)/usr/share/doc/dovecot/example-config
  77. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/doveconf $(1)/usr/bin/
  78. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
  79. $(INSTALL_BIN) ./files/dovecot.init $(1)/etc/init.d/dovecot
  80. rm $(1)/usr/lib/dovecot/dovecot-config
  81. find $(1)/usr/lib/dovecot/ -name "*.a" -o -name "*.la" | xargs rm
  82. endef
  83. $(eval $(call BuildPackage,dovecot))