diff options
author | Jiaqing Zhao <jiaqing.zhao@linux.intel.com> | 2022-03-03 09:58:59 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-03-03 08:50:19 -0800 |
commit | dec689cf6ddf65d018206ba422d22b6a6b29d1a3 (patch) | |
tree | 29453d63bd31886568d67e783ed5c6d6fa9a22b9 /meta-networking/recipes-support/libesmtp | |
parent | 674f785672a445b08b117423eaf9f256546eb5a6 (diff) | |
download | meta-openembedded-dec689cf6ddf65d018206ba422d22b6a6b29d1a3.tar.gz |
libesmtp: bump 1.0.6 -> 1.1.0
This also fixes CVE-2019-19977.
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
Diffstat (limited to 'meta-networking/recipes-support/libesmtp')
4 files changed, 32 insertions, 105 deletions
diff --git a/meta-networking/recipes-support/libesmtp/libesmtp/include-topdir.patch b/meta-networking/recipes-support/libesmtp/libesmtp/include-topdir.patch deleted file mode 100644 index 90c4ce75e1..0000000000 --- a/meta-networking/recipes-support/libesmtp/libesmtp/include-topdir.patch +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | diff -Nurp libesmtp-1.0.6.org/crammd5/Makefile.am libesmtp-1.0.6/crammd5/Makefile.am | ||
2 | --- libesmtp-1.0.6.org/crammd5/Makefile.am 2010-08-08 23:45:57.000000000 +0800 | ||
3 | +++ libesmtp-1.0.6/crammd5/Makefile.am 2014-11-17 11:17:21.663624295 +0800 | ||
4 | @@ -2,7 +2,7 @@ | ||
5 | |||
6 | libdir = @plugindir@ | ||
7 | |||
8 | -INCLUDES = -I@srcdir@ | ||
9 | +INCLUDES = -I@srcdir@ -I@srcdir@/../ | ||
10 | AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@ | ||
11 | |||
12 | lib_LTLIBRARIES = sasl-cram-md5.la | ||
13 | diff -Nurp libesmtp-1.0.6.org/login/Makefile.am libesmtp-1.0.6/login/Makefile.am | ||
14 | --- libesmtp-1.0.6.org/login/Makefile.am 2010-08-08 23:45:56.000000000 +0800 | ||
15 | +++ libesmtp-1.0.6/login/Makefile.am 2014-11-17 11:17:54.339623018 +0800 | ||
16 | @@ -2,7 +2,7 @@ | ||
17 | |||
18 | libdir = @plugindir@ | ||
19 | |||
20 | -INCLUDES = -I@srcdir@ | ||
21 | +INCLUDES = -I@srcdir@ -I@srcdir@/../ | ||
22 | |||
23 | lib_LTLIBRARIES = sasl-login.la | ||
24 | AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@ | ||
25 | diff -Nurp libesmtp-1.0.6.org/ntlm/Makefile.am libesmtp-1.0.6/ntlm/Makefile.am | ||
26 | --- libesmtp-1.0.6.org/ntlm/Makefile.am 2010-08-08 23:45:56.000000000 +0800 | ||
27 | +++ libesmtp-1.0.6/ntlm/Makefile.am 2014-11-17 11:18:10.551622385 +0800 | ||
28 | @@ -2,7 +2,7 @@ | ||
29 | |||
30 | libdir = @plugindir@ | ||
31 | |||
32 | -INCLUDES = -I@srcdir@ | ||
33 | +INCLUDES = -I@srcdir@ -I@srcdir@/../ | ||
34 | AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@ | ||
35 | |||
36 | lib_LTLIBRARIES = sasl-ntlm.la | ||
37 | diff -Nurp libesmtp-1.0.6.org/plain/Makefile.am libesmtp-1.0.6/plain/Makefile.am | ||
38 | --- libesmtp-1.0.6.org/plain/Makefile.am 2010-08-08 23:45:54.000000000 +0800 | ||
39 | +++ libesmtp-1.0.6/plain/Makefile.am 2014-11-17 11:18:33.355621494 +0800 | ||
40 | @@ -2,7 +2,7 @@ | ||
41 | |||
42 | libdir = @plugindir@ | ||
43 | |||
44 | -INCLUDES = -I@srcdir@ | ||
45 | +INCLUDES = -I@srcdir@ -I@srcdir@/../ | ||
46 | AM_CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@ | ||
47 | |||
48 | lib_LTLIBRARIES = sasl-plain.la | ||
diff --git a/meta-networking/recipes-support/libesmtp/libesmtp/snprintf.patch b/meta-networking/recipes-support/libesmtp/libesmtp/snprintf.patch deleted file mode 100644 index d0d203eadb..0000000000 --- a/meta-networking/recipes-support/libesmtp/libesmtp/snprintf.patch +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | Use HAVE_WORKING_SNPRINTF to check for snprintf() | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
6 | |||
7 | Index: libesmtp-1.0.6/missing.h | ||
8 | =================================================================== | ||
9 | --- libesmtp-1.0.6.orig/missing.h | ||
10 | +++ libesmtp-1.0.6/missing.h | ||
11 | @@ -43,7 +43,7 @@ int strncasecmp (const char *a, const ch | ||
12 | void *memrchr (const void *a, int c, size_t len); | ||
13 | #endif | ||
14 | |||
15 | -#ifndef HAVE_SNPRINTF | ||
16 | +#ifndef HAVE_WORKING_SNPRINTF | ||
17 | #include <sys/types.h> | ||
18 | int snprintf(char *s, size_t n, const char *format, ...); | ||
19 | #endif | ||
diff --git a/meta-networking/recipes-support/libesmtp/libesmtp_1.0.6.bb b/meta-networking/recipes-support/libesmtp/libesmtp_1.0.6.bb deleted file mode 100644 index ed2a5d9044..0000000000 --- a/meta-networking/recipes-support/libesmtp/libesmtp_1.0.6.bb +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | SUMMARY = "SMTP client library" | ||
2 | DESCRIPTION = "LibESMTP is a library to manage posting \ | ||
3 | (or submission of) electronic mail using SMTP to a \ | ||
4 | preconfigured Mail Transport Agent (MTA) such as Exim or PostFix." | ||
5 | HOMEPAGE = "http://www.stafford.uklinux.net/libesmtp/" | ||
6 | LICENSE = "LGPLv2+" | ||
7 | SECTION = "libs" | ||
8 | |||
9 | DEPENDS = "openssl" | ||
10 | |||
11 | SRC_URI = "http://www.stafford.uklinux.net/libesmtp/libesmtp-${PV}.tar.bz2 \ | ||
12 | file://include-topdir.patch \ | ||
13 | file://snprintf.patch \ | ||
14 | " | ||
15 | SRC_URI[md5sum] = "bf3915e627fd8f35524a8fdfeed979c8" | ||
16 | SRC_URI[sha256sum] = "d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b" | ||
17 | |||
18 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
19 | file://COPYING.LIB;md5=e3eda01d9815f8d24aae2dbd89b68b06" | ||
20 | |||
21 | inherit autotools binconfig | ||
22 | |||
23 | EXTRA_OECONF = " \ | ||
24 | --with-auth-plugin-dir=${libdir}/esmtp-plugins \ | ||
25 | --enable-pthreads \ | ||
26 | --enable-debug \ | ||
27 | --enable-etrn \ | ||
28 | --disable-isoc \ | ||
29 | --disable-more-warnings \ | ||
30 | --disable-static \ | ||
31 | " | ||
32 | |||
33 | FILES:${PN} = "${libdir}/lib*${SOLIBS} \ | ||
34 | ${libdir}/esmtp-plugins/*${SOLIBSDEV}" | ||
35 | |||
36 | FILES:${PN}-dev += "${libdir}/esmtp-plugins/*.la" | ||
37 | FILES:${PN}-static += "${libdir}/esmtp-plugins/*.a" | ||
38 | FILES:${PN}-dbg += "${libdir}/esmtp-plugins/.debug/" | ||
diff --git a/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb b/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb new file mode 100644 index 0000000000..7d65133c5d --- /dev/null +++ b/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "SMTP client library" | ||
2 | DESCRIPTION = "LibESMTP is a library to manage posting \ | ||
3 | (or submission of) electronic mail using SMTP to a \ | ||
4 | preconfigured Mail Transport Agent (MTA) such as Exim or PostFix." | ||
5 | HOMEPAGE = "https://libesmtp.github.io/" | ||
6 | LICENSE = "LGPLv2+" | ||
7 | SECTION = "libs" | ||
8 | |||
9 | DEPENDS = "openssl" | ||
10 | |||
11 | SRC_URI = "git://github.com/libesmtp/libESMTP.git;branch=master;protocol=https" | ||
12 | SRCREV = "1d0af244310a66943ab400be56b15a9087f181eb" | ||
13 | |||
14 | S = "${WORKDIR}/git" | ||
15 | |||
16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=1803fa9c2c3ce8cb06b4861d75310742 \ | ||
17 | file://COPYING.GPL;md5=393a5ca445f6965873eca0259a17f833" | ||
18 | |||
19 | inherit meson pkgconfig | ||
20 | |||
21 | EXTRA_OEMESON = " \ | ||
22 | -Dpthreads=enabled \ | ||
23 | -Dtls=enabled \ | ||
24 | -Dxdg=false \ | ||
25 | -Dlwres=disabled \ | ||
26 | -Dbdat=true \ | ||
27 | -Detrn=true \ | ||
28 | -Dxusr=true \ | ||
29 | " | ||
30 | |||
31 | FILES:${PN} = "${libdir}/lib*${SOLIBS} \ | ||
32 | ${libdir}/esmtp-plugins-6.2.0/*${SOLIBSDEV}" | ||