From 154a0da7244316863ab72b74dbee32ccc3074026 Mon Sep 17 00:00:00 2001 From: Lucian Cristian Date: Wed, 1 Mar 2017 20:26:30 +0200 Subject: [PATCH 1/2] postfix: fix musl compile without POSTFIX_TLS Signed-off-by: Lucian Cristian --- mail/postfix/patches/501-include_stdio.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mail/postfix/patches/501-include_stdio.patch diff --git a/mail/postfix/patches/501-include_stdio.patch b/mail/postfix/patches/501-include_stdio.patch new file mode 100644 index 0000000000..4fc3f52173 --- /dev/null +++ b/mail/postfix/patches/501-include_stdio.patch @@ -0,0 +1,10 @@ +--- a/src/posttls-finger/posttls-finger.c ++++ b/src/posttls-finger/posttls-finger.c +@@ -318,6 +318,7 @@ + #include + #include + #include ++#include + + #ifdef STRCASECMP_IN_STRINGS_H + #include From 2fdca4d5a58a52d079912ad7a50dc442820e5bbd Mon Sep 17 00:00:00 2001 From: Lucian Cristian Date: Wed, 8 Mar 2017 02:02:03 +0200 Subject: [PATCH 2/2] postfix: Add SQLite support Signed-off-by: Lucian Cristian --- mail/postfix/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index 8801948dce..7b6b7664b9 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=postfix -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=ftp://ftp.porcupine.org/mirrors/postfix-release/official/ PKG_VERSION:=3.1.4 PKG_MD5SUM:=878a059d92ee3b093d7d3e97248c915d @@ -25,7 +25,7 @@ define Package/postfix CATEGORY:=Mail TITLE:=Postfix Mail Transmit Agent URL:=http://www.postfix.org/ - DEPENDS:=+POSTFIX_TLS:libopenssl +POSTFIX_SASL:libsasl2 +POSTFIX_LDAP:libopenldap +POSTFIX_DB:libdb47 +POSTFIX_EAI:icu +libpcre + DEPENDS:=+POSTFIX_TLS:libopenssl +POSTFIX_SASL:libsasl2 +POSTFIX_LDAP:libopenldap +POSTFIX_DB:libdb47 +POSTFIX_SQLITE:libsqlite3 +POSTFIX_EAI:icu +libpcre endef define Package/postfix/description @@ -59,6 +59,11 @@ define Package/postfix/config default y help Implements support for cdb files using tinycdb + config POSTFIX_SQLITE + bool "SQLITE support" + default y + help + Implements support for SQLite3 DB config POSTFIX_EAI bool "SMTPUTF8 support" default n @@ -106,6 +111,11 @@ else CCARGS+=-DNO_DB endif +ifdef CONFIG_POSTFIX_SQLITE + CCARGS+=-DHAS_SQLITE -I$(STAGING_DIR)/usr/include/ + AUXLIBS+=-L$(STAGING_DIR)/usr/lib -lsqlite3 -lpthread +endif + ifdef CONFIG_POSTFIX_EAI AUXLIBS+=-licuuc CCARGS+=-DHAS_EAI