2 # Copyright (C) 2006-2018 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
:=https
://dovecot.org
/releases
/2.3
16 PKG_HASH
:=06e73f668c6c093c45bdeeeb7c20398ab8dc49317234f4b5781ac5e2cc5d6c33
18 PKG_MAINTAINER
:=Lucian Cristian
<lucian.cristian@gmail.com
>
19 PKG_LICENSE
:=LGPL-2.1
-only MIT BSD-3-Clause
20 PKG_LICENSE_FILES
:=COPYING COPYING.LGPL COPYING.MIT
21 PKG_CPE_ID
:=cpe
:/a
:dovecot
:dovecot
23 PKG_CONFIG_DEPENDS
:= \
24 CONFIG_DOVECOT_GSSAPI \
26 CONFIG_DOVECOT_MYSQL \
27 CONFIG_DOVECOT_PGSQL \
28 CONFIG_DOVECOT_SQLITE \
35 include $(INCLUDE_DIR
)/package.mk
36 # iconv is needed when compiling with MySQL support. iconv will also be used by
38 include $(INCLUDE_DIR
)/nls.mk
40 # need iconv.m4, otherwise error during autoreconf
41 PKG_BUILD_DEPENDS
:=gettext-full
43 define Package
/dovecot
46 TITLE
:=An IMAP and POP3 daemon
47 URL
:=https
://www.dovecot.org
/
48 DEPENDS
:=+DOVECOT_GSSAPI
:krb5-libs
+DOVECOT_LDAP
:libopenldap
+DOVECOT_MYSQL
:libmysqlclient
+DOVECOT_PGSQL
:libpq
+DOVECOT_SQLITE
:libsqlite3
+libopenssl
+librt
+zlib
+libbz2
+libcap
+DOVECOT_ICU
:icu
$(ICONV_DEPENDS
)
49 USERID
:=dovecot
=59:dovecot
=59 dovenull
=60:dovenull
=60
50 ABI_VERSION
:=$(PKG_VERSION
)
53 define Package
/dovecot
/description
54 Dovecot is a program which provides POP3 and IMAP services.
57 define Package
/dovecot
/config
58 source
"$(SOURCE)/Config.in"
61 define Package
/dovecot
/conffiles
65 define Package
/dovecot-utils
69 TITLE
:=doveadm and dsync utilities for Dovecot
73 --libexecdir
=/usr
/libexec \
76 --with-notify
=dnotify \
81 $(if
$(CONFIG_DOVECOT_GSSAPI
),--with-gssapi
=yes
,--with-gssapi
=no
) \
82 $(if
$(CONFIG_DOVECOT_LDAP
),--with-ldap
=yes
,--with-ldap
=no
) \
83 $(if
$(CONFIG_DOVECOT_MYSQL
),--with-mysql
=yes
,--with-mysql
=no
) \
84 $(if
$(CONFIG_DOVECOT_PGSQL
),--with-pgsql
=yes
,--with-pgsql
=no
) \
85 $(if
$(CONFIG_DOVECOT_SQLITE
),--with-sqlite
=yes
,--with-sqlite
=no
) \
86 $(if
$(CONFIG_DOVECOT_ICU
),--with-icu
=yes
,--with-icu
=no
)
90 i_cv_signed_size_t
=no \
91 i_cv_signed_time_t
=no \
92 i_cv_gmtime_max_time_t
=32 \
93 i_cv_mmap_plays_with_write
=yes \
95 i_cv_c99_vsnprintf
=yes \
98 lib_cv___va_copy
=yes \
99 lib_cv_va_val_copy
=yes \
100 ac_cv_prog_KRB5CONFIG
="krb5-config"
102 define Build
/InstallDev
103 $(INSTALL_DIR
) $(1)/usr
/include $(1)/usr
/lib
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/dovecot
$(1)/usr
/include/
105 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/dovecot
$(1)/usr
/lib
/
106 $(call libtool_remove_files
,$(1))
110 define Package
/dovecot
/install
111 $(INSTALL_DIR
) $(1)/etc
/init.d
112 $(INSTALL_BIN
) .
/files
/dovecot.init
$(1)/etc
/init.d
/dovecot
114 $(INSTALL_DIR
) $(1)/etc
/dovecot
115 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/doc
/dovecot
/example-config
/* $(1)/etc
/dovecot
/
117 $(INSTALL_DIR
) $(1)/usr
/lib
/dovecot
118 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/dovecot
/* $(1)/usr
/lib
/dovecot
/
119 rm $(1)/usr
/lib
/dovecot
/dovecot-config
120 find
$(1)/usr
/lib
/dovecot
/ -name
"*.a" -o
-name
"*.la" |
$(XARGS
) rm -f
122 $(INSTALL_DIR
) $(1)/usr
/libexec
/dovecot
123 $(CP
) $(PKG_INSTALL_DIR
)/usr
/libexec
/dovecot
/* $(1)/usr
/libexec
/dovecot
/
125 $(INSTALL_DIR
) $(1)/usr
/bin
126 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/doveconf
$(1)/usr
/bin
/
128 $(INSTALL_DIR
) $(1)/usr
/sbin
129 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/* $(1)/usr
/sbin
/
132 define Package
/dovecot-utils
/install
133 $(INSTALL_DIR
) $(1)/usr
/bin
134 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/doveadm
$(1)/usr
/bin
/
135 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/dsync
$(1)/usr
/bin
/
138 $(eval
$(call BuildPackage
,dovecot
))
139 $(eval
$(call BuildPackage
,dovecot-utils
))