2 # Copyright (C) 2006-2014 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
/2.2
16 PKG_MD5SUM
:=a3eb1c0b1822c4f2b0fe9247776baa71
18 PKG_BUILD_DEPENDS
:=libiconv
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/dovecot
28 DEPENDS
:=+libopenssl
+librt
+zlib
+libbz2
+libcap
29 TITLE
:=An IMAP and POP3 daemon
30 MAINTAINER
:=Peter Wagner
<tripolar@gmx.at
>
31 URL
:=http
://www.dovecot.org
/
34 define Package
/dovecot
/description
35 Dovecot is a program which provides POP3 and IMAP services.
41 --with-moduledir
=/usr
/lib
/dovecot
/modules \
42 --with-notify
=dnotify \
48 i_cv_signed_size_t
=no \
49 i_cv_signed_time_t
=no \
50 i_cv_gmtime_max_time_t
=32 \
51 i_cv_mmap_plays_with_write
=yes \
53 i_cv_c99_vsnprintf
=yes \
56 lib_cv___va_copy
=yes \
57 lib_cv_va_val_copy
=yes
59 define Package
/dovecot
/install
60 $(INSTALL_DIR
) $(1)/etc
/init.d \
62 $(1)/usr
/share
/doc
/dovecot
/example-config \
63 $(1)/usr
/lib
/dovecot \
66 $(CP
) $(PKG_INSTALL_DIR
)/etc
/dovecot
/* $(1)/etc
/dovecot
/
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/dovecot
/* $(1)/usr
/lib
/dovecot
/
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/doc
/dovecot
/example-config
$(1)/usr
/share
/doc
/dovecot
/example-config
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/doveconf
$(1)/usr
/bin
/
70 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/* $(1)/usr
/sbin
/
71 $(INSTALL_BIN
) .
/files
/dovecot.init
$(1)/etc
/init.d
/dovecot
72 rm $(1)/usr
/lib
/dovecot
/dovecot-config
73 find
$(1)/usr
/lib
/dovecot
/ -name
"*.a" -o
-name
"*.la" | xargs
rm
76 $(eval
$(call BuildPackage
,dovecot
))