msmtp: Update to 1.8.1
authorRosen Penev <[email protected]>
Thu, 13 Dec 2018 21:28:42 +0000 (13:28 -0800)
committerRosen Penev <[email protected]>
Thu, 13 Dec 2018 22:14:44 +0000 (14:14 -0800)
Switch from OpenSSL to GnuTLS as upstream has deprecated the former.

Add myself as maintainer.

Signed-off-by: Rosen Penev <[email protected]>
mail/msmtp/Makefile
mail/msmtp/patches/010-openssl-deprecated.patch [deleted file]

index 2c9ec32490150a4534496579d9ee67e25f0220bd..12a36dbdaf7144cda1ba858a6903aa489ac1a332 100644 (file)
@@ -9,22 +9,21 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=msmtp
-PKG_VERSION:=1.6.8
-PKG_RELEASE:=2
+PKG_VERSION:=1.8.1
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://marlam.de/msmtp/releases
-PKG_HASH:=55ff95a304d888b56d07d9c62327ab9bfe26532c9c2a2ed6aefc43bea1b659fb
+PKG_HASH:=f0a2a7ed23a3ba5ca88640a9bc433507a79fdfc916b14a989d36679b7fdca4da
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
 
+PKG_MAINTAINER:=Rosen Penev <[email protected]>
 PKG_LICENSE:=GPL-3.0+
 PKG_LICENSE_FILES:=COPYING
-PKG_MAINTAINER:=
 
 PKG_BUILD_PARALLEL:=1
 PKG_INSTALL:=1
 
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
-
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/nls.mk
 
@@ -46,7 +45,7 @@ endef
 
 define Package/msmtp
 $(call Package/msmtp/Default)
-  DEPENDS+= +libopenssl +ca-bundle
+  DEPENDS+= +libgnutls +ca-bundle
   TITLE+= (with SSL support)
   VARIANT:=ssl
 endef
@@ -101,6 +100,7 @@ CONFIGURE_ARGS += \
        --without-libidn \
        --without-libsecret \
        --without-macosx-keyring \
+       --without-msmtpd
 
 ifneq ($(CONFIG_USE_UCLIBC),)
   CONFIGURE_ARGS += --disable-gai-idn
@@ -110,7 +110,7 @@ MAKE_FLAGS :=
 
 ifeq ($(BUILD_VARIANT),ssl)
        CONFIGURE_ARGS += \
-               --with-tls=openssl
+               --with-tls=gnutls
 endif
 
 ifeq ($(BUILD_VARIANT),nossl)
diff --git a/mail/msmtp/patches/010-openssl-deprecated.patch b/mail/msmtp/patches/010-openssl-deprecated.patch
deleted file mode 100644 (file)
index 2a229aa..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
---- a/src/tls.c
-+++ b/src/tls.c
-@@ -45,6 +45,10 @@
- # include <openssl/err.h>
- # include <openssl/rand.h>
- # include <openssl/evp.h>
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#define X509_getm_notBefore X509_get_notBefore
-+#define X509_getm_notAfter X509_get_notAfter
-+#endif
- #endif /* HAVE_LIBSSL */
- #ifdef HAVE_LIBIDN
-@@ -167,8 +171,10 @@ int tls_lib_init(char **errstr)
- #ifdef HAVE_LIBSSL
-     int e;
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L
-     SSL_load_error_strings();
-     SSL_library_init();
-+#endif
-     if ((e = seed_prng(errstr)) != TLS_EOK)
-     {
-         return e;
-@@ -518,7 +524,7 @@ int tls_cert_info_get(tls_t *tls, tls_cert_info_t *tci, char **errstr)
-         *errstr = xasprintf(_("%s: error getting SHA1 fingerprint"), errmsg);
-         return TLS_ECERT;
-     }
--    asn1time = X509_get_notBefore(x509cert);
-+    asn1time = X509_getm_notBefore(x509cert);
-     if (asn1time_to_time_t((char *)asn1time->data,
-                 (asn1time->type != V_ASN1_GENERALIZEDTIME),
-                 &(tci->activation_time)) != 0)
-@@ -528,7 +534,7 @@ int tls_cert_info_get(tls_t *tls, tls_cert_info_t *tci, char **errstr)
-         tls_cert_info_free(tci);
-         return TLS_ECERT;
-     }
--    asn1time = X509_get_notAfter(x509cert);
-+    asn1time = X509_getm_notAfter(x509cert);
-     if (asn1time_to_time_t((char *)asn1time->data,
-                 (asn1time->type != V_ASN1_GENERALIZEDTIME),
-                 &(tci->expiration_time)) != 0)