|
@ -8,15 +8,16 @@ |
|
|
include $(TOPDIR)/rules.mk |
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=dovecot |
|
|
PKG_NAME:=dovecot |
|
|
PKG_VERSION:=2.3.7 |
|
|
|
|
|
|
|
|
PKG_VERSION:=2.3.7.1 |
|
|
PKG_RELEASE:=1 |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE_URL:=https://dovecot.org/releases/2.3 |
|
|
PKG_SOURCE_URL:=https://dovecot.org/releases/2.3 |
|
|
PKG_HASH:=11e156ae8539e42892809cc2412c3f1a294188806969f5547191a43abd4083aa |
|
|
|
|
|
|
|
|
PKG_HASH:=c5a51d6f76e6e9c843df69e52a364a4c65c4c60e0c51d992eaa45f22f71803c3 |
|
|
|
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com> |
|
|
PKG_LICENSE:=LGPL-2.1-only MIT BSD-3-Clause |
|
|
PKG_LICENSE:=LGPL-2.1-only MIT BSD-3-Clause |
|
|
PKG_LICENSE_FILES:=COPYING COPYING.LGPL COPYING.MIT |
|
|
PKG_LICENSE_FILES:=COPYING COPYING.LGPL COPYING.MIT |
|
|
PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com> |
|
|
|
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=libiconv |
|
|
PKG_BUILD_DEPENDS:=libiconv |
|
|
PKG_CONFIG_DEPENDS:= \
|
|
|
PKG_CONFIG_DEPENDS:= \
|
|
@ -39,10 +40,11 @@ include $(INCLUDE_DIR)/nls.mk |
|
|
define Package/dovecot |
|
|
define Package/dovecot |
|
|
SECTION:=mail |
|
|
SECTION:=mail |
|
|
CATEGORY:=Mail |
|
|
CATEGORY:=Mail |
|
|
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) |
|
|
|
|
|
TITLE:=An IMAP and POP3 daemon |
|
|
TITLE:=An IMAP and POP3 daemon |
|
|
URL:=https://www.dovecot.org/ |
|
|
URL:=https://www.dovecot.org/ |
|
|
|
|
|
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) |
|
|
USERID:=dovecot=59:dovecot=59 |
|
|
USERID:=dovecot=59:dovecot=59 |
|
|
|
|
|
USERID:=dovenull=60:dovenull=60 |
|
|
ABI_VERSION:=$(PKG_VERSION) |
|
|
ABI_VERSION:=$(PKG_VERSION) |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
@ -51,43 +53,10 @@ define Package/dovecot/description |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/dovecot/config |
|
|
define Package/dovecot/config |
|
|
menu "Select dovecot build options" |
|
|
|
|
|
depends on PACKAGE_dovecot |
|
|
|
|
|
config DOVECOT_GSSAPI |
|
|
|
|
|
bool "GSSAPI support" |
|
|
|
|
|
default n |
|
|
|
|
|
help |
|
|
|
|
|
Implements GSSAPI support in dovecot. |
|
|
|
|
|
config DOVECOT_LDAP |
|
|
|
|
|
bool "LDAP support" |
|
|
|
|
|
default n |
|
|
|
|
|
help |
|
|
|
|
|
Implements LDAP support in dovecot. |
|
|
|
|
|
config DOVECOT_MYSQL |
|
|
|
|
|
bool "MYSQL support" |
|
|
|
|
|
default n |
|
|
|
|
|
help |
|
|
|
|
|
Implements MYSQL support in dovecot. |
|
|
|
|
|
config DOVECOT_PGSQL |
|
|
|
|
|
bool "PostgreSQL support" |
|
|
|
|
|
default n |
|
|
|
|
|
help |
|
|
|
|
|
Implements PostgreSQL support in dovecot. |
|
|
|
|
|
config DOVECOT_SQLITE |
|
|
|
|
|
bool "SQLite support" |
|
|
|
|
|
default n |
|
|
|
|
|
help |
|
|
|
|
|
Implements SQLite DB support in dovecot. |
|
|
|
|
|
config DOVECOT_ICU |
|
|
|
|
|
bool "Enable i18n features" |
|
|
|
|
|
default n |
|
|
|
|
|
help |
|
|
|
|
|
Enable ICU (International Components for Unicode) support. |
|
|
|
|
|
endmenu |
|
|
|
|
|
|
|
|
source "$(SOURCE)/Config.in" |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/dovecot/conffiles |
|
|
define Package/dovecot/conffiles |
|
|
/etc/init.d/dovecot |
|
|
|
|
|
/etc/dovecot/ |
|
|
/etc/dovecot/ |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
@ -105,7 +74,6 @@ CONFIGURE_ARGS += \ |
|
|
--without-lzma \
|
|
|
--without-lzma \
|
|
|
--without-lz4 \
|
|
|
--without-lz4 \
|
|
|
--without-sodium \
|
|
|
--without-sodium \
|
|
|
--without-docs \
|
|
|
|
|
|
$(if $(CONFIG_DOVECOT_GSSAPI),--with-gssapi=yes,--with-gssapi=no) \
|
|
|
$(if $(CONFIG_DOVECOT_GSSAPI),--with-gssapi=yes,--with-gssapi=no) \
|
|
|
$(if $(CONFIG_DOVECOT_LDAP),--with-ldap=yes,--with-ldap=no) \
|
|
|
$(if $(CONFIG_DOVECOT_LDAP),--with-ldap=yes,--with-ldap=no) \
|
|
|
$(if $(CONFIG_DOVECOT_MYSQL),--with-mysql=yes,--with-mysql=no) \
|
|
|
$(if $(CONFIG_DOVECOT_MYSQL),--with-mysql=yes,--with-mysql=no) \
|
|
@ -131,24 +99,30 @@ define Build/InstallDev |
|
|
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib |
|
|
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/dovecot $(1)/usr/include/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/dovecot $(1)/usr/include/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot $(1)/usr/lib/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot $(1)/usr/lib/ |
|
|
rm -f $(1)/usr/lib/dovecot/*.la |
|
|
|
|
|
|
|
|
$(call libtool_remove_files,$(1)) |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Package/dovecot/install |
|
|
define Package/dovecot/install |
|
|
$(INSTALL_DIR) $(1)/etc/init.d \
|
|
|
|
|
|
$(1)/etc/dovecot \
|
|
|
|
|
|
$(1)/usr/lib/dovecot \
|
|
|
|
|
|
$(1)/usr/libexec/dovecot \
|
|
|
|
|
|
$(1)/usr/bin \
|
|
|
|
|
|
$(1)/usr/sbin |
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
|
|
|
$(INSTALL_BIN) ./files/dovecot.init $(1)/etc/init.d/dovecot |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/dovecot |
|
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/doc/dovecot/example-config/* $(1)/etc/dovecot/ |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/dovecot |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/dovecot/* $(1)/usr/lib/dovecot/ |
|
|
|
|
|
rm $(1)/usr/lib/dovecot/dovecot-config |
|
|
|
|
|
find $(1)/usr/lib/dovecot/ -name "*.a" -o -name "*.la" | $(XARGS) rm -f |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/libexec/dovecot |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/libexec/dovecot/* $(1)/usr/libexec/dovecot/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/libexec/dovecot/* $(1)/usr/libexec/dovecot/ |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/doveconf $(1)/usr/bin/ |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/doveconf $(1)/usr/bin/ |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/ |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/ |
|
|
$(INSTALL_BIN) ./files/dovecot.init $(1)/etc/init.d/dovecot |
|
|
|
|
|
rm $(1)/usr/lib/dovecot/dovecot-config |
|
|
|
|
|
find $(1)/usr/lib/dovecot/ -name "*.a" -o -name "*.la" | xargs rm |
|
|
|
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/dovecot-utils/install |
|
|
define Package/dovecot-utils/install |
|
|