2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.dovecot.org/releases/1.2
16 PKG_MD5SUM:=aaee3b5fd59e01780305553248f686bc
21 include $(INCLUDE_DIR)/package.mk
23 define Package/dovecot
26 DEPENDS:=+libopenssl +librt +zlib +libbz2
27 TITLE:=An IMAP and POP3 daemon
28 URL:=http://www.dovecot.org/
31 define Package/dovecot/description
32 Dovecot is a program which provides POP3 and IMAP services.
39 --with-moduledir=/usr/lib/dovecot/modules \
40 --with-notify=dnotify \
44 i_cv_signed_size_t=no \
45 i_cv_signed_time_t=no \
46 i_cv_gmtime_max_time_t=32 \
47 i_cv_mmap_plays_with_write=yes \
49 i_cv_c99_vsnprintf=yes \
52 lib_cv___va_copy=yes \
53 lib_cv_va_val_copy=yes \
55 define Package/dovecot/install
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_BIN) ./files/dovecot.init $(1)/etc/init.d/dovecot
58 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/dovecot-example.conf $(1)/etc/dovecot.conf
59 $(INSTALL_DIR) $(1)/usr/lib/dovecot
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/
61 $(INSTALL_DIR) $(1)/usr/sbin
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
63 find $(1)/usr/lib/dovecot/modules/ \
64 -name "*.a" -o -name "*.la" | xargs rm
67 define Package/dovecot/conffiles
71 $(eval $(call BuildPackage,dovecot))