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