pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/libytnef Update libytnef to version 1.9.2.
details: https://anonhg.NetBSD.org/pkgsrc/rev/15a73cea81e7
branches: trunk
changeset: 366764:15a73cea81e7
user: nros <nros%pkgsrc.org@localhost>
date: Thu Aug 17 09:49:47 2017 +0000
description:
Update libytnef to version 1.9.2.
The changes in patch-ytnef.c has been applied upstream.
patch-ytnef.c has now been removed.
Changes from Changelog:
v1.9.2 - February 23, 2017
Thanks to @hannob for finding some Out-of-bound exceptions in memory handline.
* [SECURITY] An invalid memory access (heap overrun) in handling LONG datatypes (CVE-2017-6800)
* [SECURITY] Missing a check for fields of size 0 (CVE-2017-6801)
* [SECURITY] Potential buffer overrun on incoming Compressed RTF Streams (CVE-2017-6802)
This version & the previous 1.9.1 resolves the following CVEs:
* CVE-2017-6306
* CVE-2017-6305
* CVE-2017-6304
* CVE-2017-6303
* CVE-2017-6302
* CVE-2017-6301
* CVE-2017-6300
* CVE-2017-6299
* CVE-2017-6298
v1.9.1 - Feb 14, 2017
* BugFix for path handling- label both / and \ as invalid characters inattachments
* Remove lots of exit(-1)'s from the code that would crash calling programs
* [SECURITY] Thanks to EricSesterhennX41 for a patch to fix lots of invalid
memory allocation around corrupted files.
v1.9 - January 2, 2017
* Unify libytnef and ytnef tools into a single build & package (Thanks @jmallach)
* Fix applied for CVE-2010-5109
* Various fixes for errors found via Static Analysis (cppcheck)
* Various memory leaks plugged (Thanks @slonik-v-domene)
* Bugfix for a broken "uniqueness" checker
* Lots of formatting & documentation cleanups
Now that the two packages are unified into a single install & build, I've had
to choose a unifier of Version Numbers. I chose 1.9 .
diffstat:
mail/libytnef/Makefile | 18 +++-------
mail/libytnef/Makefile.common | 24 ++++++++++++++
mail/libytnef/PLIST | 3 +-
mail/libytnef/buildlink3.mk | 3 +-
mail/libytnef/distinfo | 13 ++++---
mail/libytnef/patches/patch-ytnef.c | 37 ----------------------
mail/libytnef/patches/patch-ytnef_Makefile.am | 16 +++++++++
mail/libytnef/patches/patch-ytnefprint_Makefile.am | 14 ++++++++
8 files changed, 71 insertions(+), 57 deletions(-)
diffs (181 lines):
diff -r 94a52861d5ac -r 15a73cea81e7 mail/libytnef/Makefile
--- a/mail/libytnef/Makefile Thu Aug 17 07:59:02 2017 +0000
+++ b/mail/libytnef/Makefile Thu Aug 17 09:49:47 2017 +0000
@@ -1,15 +1,9 @@
-# $NetBSD: Makefile,v 1.4 2012/10/08 12:19:15 asau Exp $
-#
-
-DISTNAME= libytnef-1.5
-CATEGORIES= mail
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ytnef/}
+# $NetBSD: Makefile,v 1.5 2017/08/17 09:49:47 nros Exp $
-MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= http://tnef.sourceforge.net/
-COMMENT= Yerase's TNEF Stream Reader
-
-GNU_CONFIGURE= YES
-USE_LIBTOOL= YES
+.include "Makefile.common"
+PKGNAME= lib${DISTNAME}
+COMMENT= Yerase's TNEF Stream Reader library
+BUILD_DIRS= lib
+PKGCONFIG_OVERRIDE= lib/libytnef.pc.in
.include "../../mk/bsd.pkg.mk"
diff -r 94a52861d5ac -r 15a73cea81e7 mail/libytnef/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/libytnef/Makefile.common Thu Aug 17 09:49:47 2017 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile.common,v 1.1 2017/08/17 09:49:47 nros Exp $
+# used by mail/libytnef/Makefile
+# used by mail/ytnef/Makefile
+
+DISTNAME= ytnef-1.9.2
+CATEGORIES= mail
+MASTER_SITES= ${MASTER_SITE_GITHUB:=Yeraze/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+GITHUB_PROJECT= ytnef
+EXTRACT_USING= bsdtar
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://github.com/Yeraze/ytnef
+LICENSE= gnu-gpl-v2
+
+DISTINFO_FILE= ${.CURDIR}/../../mail/libytnef/distinfo
+PATCHDIR= ${.CURDIR}/../../mail/libytnef/patches
+
+GNU_CONFIGURE= YES
+USE_LIBTOOL= YES
+USE_TOOLS+= autoconf automake
+
+pre-configure:
+ cd ${WRKSRC} && ${MKDIR} m4 && autoreconf -vfi
diff -r 94a52861d5ac -r 15a73cea81e7 mail/libytnef/PLIST
--- a/mail/libytnef/PLIST Thu Aug 17 07:59:02 2017 +0000
+++ b/mail/libytnef/PLIST Thu Aug 17 09:49:47 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2008/01/09 03:53:10 smb Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/08/17 09:49:47 nros Exp $
include/mapi.h
include/mapidefs.h
include/mapitags.h
@@ -6,3 +6,4 @@
include/tnef-types.h
include/ytnef.h
lib/libytnef.la
+lib/pkgconfig/libytnef.pc
diff -r 94a52861d5ac -r 15a73cea81e7 mail/libytnef/buildlink3.mk
--- a/mail/libytnef/buildlink3.mk Thu Aug 17 07:59:02 2017 +0000
+++ b/mail/libytnef/buildlink3.mk Thu Aug 17 09:49:47 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2009/03/20 19:24:55 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2017/08/17 09:49:47 nros Exp $
BUILDLINK_TREE+= libytnef
@@ -6,6 +6,7 @@
LIBYTNEF_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libytnef+= libytnef>=1.5
+BUILDLINK_ABI_DEPENDS.libytnef?= libytnef>=1.9.2
BUILDLINK_PKGSRCDIR.libytnef?= ../../mail/libytnef
.endif # LIBYTNEF_BUILDLINK3_MK
diff -r 94a52861d5ac -r 15a73cea81e7 mail/libytnef/distinfo
--- a/mail/libytnef/distinfo Thu Aug 17 07:59:02 2017 +0000
+++ b/mail/libytnef/distinfo Thu Aug 17 09:49:47 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 23:27:08 agc Exp $
+$NetBSD: distinfo,v 1.4 2017/08/17 09:49:47 nros Exp $
-SHA1 (libytnef-1.5.tar.gz) = f04075187accaa82346ed873af8c61755de781cc
-RMD160 (libytnef-1.5.tar.gz) = c4754814124f4fbbf6d3385cded5e6f03ff09fcc
-SHA512 (libytnef-1.5.tar.gz) = 6a7f1953e734400c604d00dd639b1069147b005bb91ab43727fb9b3b6a57d6812d4e828e75f992074f86ca5e50ab7d4333bf2f288e9ffe4930de0a6abbfce91e
-Size (libytnef-1.5.tar.gz) = 212412 bytes
-SHA1 (patch-ytnef.c) = 82755fc0530ba43520de2a5b1fda3765648d1d70
+SHA1 (ytnef-1.9.2.tar.gz) = f1814a7838dc65ff076fc28379bc1d09cc57b257
+RMD160 (ytnef-1.9.2.tar.gz) = 5134cb2fb104bd180d18444dfd6639726b2a8c25
+SHA512 (ytnef-1.9.2.tar.gz) = 125727a8afac959ac9c60fa977913da743b1ace05ea6af6cd75fff3a786ecf7cb54b49006c8c5249eb48d9aefe0ffcdc24af2944a8611f54a03eb4c24a78506e
+Size (ytnef-1.9.2.tar.gz) = 300945 bytes
+SHA1 (patch-ytnef_Makefile.am) = 1a93de2ec27b3230f52e9bb7de279fd1584e0e6a
+SHA1 (patch-ytnefprint_Makefile.am) = f9e02624df257b07f1a095aeb65e5c24d8f0ee37
diff -r 94a52861d5ac -r 15a73cea81e7 mail/libytnef/patches/patch-ytnef.c
--- a/mail/libytnef/patches/patch-ytnef.c Thu Aug 17 07:59:02 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-$NetBSD: patch-ytnef.c,v 1.1 2012/11/19 02:56:05 joerg Exp $
-
---- ytnef.c.orig 2012-11-18 23:24:09.000000000 +0000
-+++ ytnef.c
-@@ -565,7 +565,7 @@ void TNEFPrintDate(dtr Date) {
- int TNEFHexBreakdown STD_ARGLIST {
- int i;
- if (TNEF->Debug == 0)
-- return;
-+ return 0;
-
- printf("%s: [%i bytes] \n", TNEFList[id].name, size);
-
-@@ -574,13 +574,14 @@ int TNEFHexBreakdown STD_ARGLIST {
- if ((i+1)%16 == 0) printf("\n");
- }
- printf("\n");
-+ return 0;
- }
-
- // -----------------------------------------------------------------------------
- int TNEFDetailedPrint STD_ARGLIST {
- int i;
- if (TNEF->Debug == 0)
-- return;
-+ return 0;
-
- printf("%s: [%i bytes] \n", TNEFList[id].name, size);
-
-@@ -588,6 +589,7 @@ int TNEFDetailedPrint STD_ARGLIST {
- printf("%c", data[i]);
- }
- printf("\n");
-+ return 0;
- }
-
- // -----------------------------------------------------------------------------
diff -r 94a52861d5ac -r 15a73cea81e7 mail/libytnef/patches/patch-ytnef_Makefile.am
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/libytnef/patches/patch-ytnef_Makefile.am Thu Aug 17 09:49:47 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ytnef_Makefile.am,v 1.1 2017/08/17 09:49:47 nros Exp $
+Use installed copy of ytnef library so we can have the programs in a
+separate package.
+--- ytnef/Makefile.am.orig 2017-08-17 08:48:50.000000000 +0000
++++ ytnef/Makefile.am
+@@ -2,8 +2,8 @@ bin_PROGRAMS = ytnef
+ bin_SCRIPTS = ytnefprocess
+
+ ytnef_SOURCES = main.c
+-ytnef_CPPFLAGS = -I$(top_srcdir)/lib
+-ytnef_LDADD = $(top_builddir)/lib/libytnef.la
++ytnef_CPPFLAGS = -I$(prefix)/include
++ytnef_LDADD = $(prefix)/lib/libytnef.la
+ ytnef_CFLAGS = \
+ $(YTNEF_CFLAGS) \
+ $(AM_CFLAGS) \
diff -r 94a52861d5ac -r 15a73cea81e7 mail/libytnef/patches/patch-ytnefprint_Makefile.am
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/libytnef/patches/patch-ytnefprint_Makefile.am Thu Aug 17 09:49:47 2017 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ytnefprint_Makefile.am,v 1.1 2017/08/17 09:49:47 nros Exp $
+Use installed copy of ytnef library so we can have the programs in a
+separate package.
+--- ytnefprint/Makefile.am.orig 2017-08-17 08:50:42.000000000 +0000
++++ ytnefprint/Makefile.am
+@@ -1,6 +1,6 @@
+ bin_PROGRAMS = ytnefprint
+
+-ytnefprint_CPPFLAGS = -I$(top_srcdir)/lib
++ytnefprint_CPPFLAGS = -I$(prefix)/include
+ ytnefprint_SOURCES = main.c
+-ytnefprint_LDADD = $(top_builddir)/lib/libytnef.la
++ytnefprint_LDADD = $(prefix)/lib/libytnef.la
+
Home |
Main Index |
Thread Index |
Old Index