Index: head/archivers/libzip/Makefile =================================================================== --- head/archivers/libzip/Makefile (revision 395461) +++ head/archivers/libzip/Makefile (revision 395462) @@ -1,21 +1,21 @@ # Created by: Alexander Zhuravlev # $FreeBSD$ PORTNAME= libzip -PORTVERSION= 0.11.2 -PORTREVISION= 2 +PORTVERSION= 1.0.1 CATEGORIES= archivers devel MASTER_SITES= http://www.nih.at/libzip/ MAINTAINER= makc@FreeBSD.org COMMENT= C library for reading, creating, and modifying ZIP archives CPE_VENDOR= nih GNU_CONFIGURE= yes MAKE_ENV= LC_ALL="C" -USES= cpe libtool pathfix tar:xz +USES= cpe libtool pathfix perl5 tar:xz +USE_PERL5= build USE_LDCONFIG= yes INSTALL_TARGET= install-strip .include Index: head/archivers/libzip/distinfo =================================================================== --- head/archivers/libzip/distinfo (revision 395461) +++ head/archivers/libzip/distinfo (revision 395462) @@ -1,2 +1,2 @@ -SHA256 (libzip-0.11.2.tar.xz) = 7cfbbc2c540e154b933b6e9ec781e2671086bd8114eb744ae1a1ade34d2bb6bb -SIZE (libzip-0.11.2.tar.xz) = 413352 +SHA256 (libzip-1.0.1.tar.xz) = f948d597afbb471de8d528d0e35ed977de85b2f4d76fdd74abbb985550e5d840 +SIZE (libzip-1.0.1.tar.xz) = 450308 Index: head/archivers/libzip/files/patch-lib_zip__dirent.c =================================================================== --- head/archivers/libzip/files/patch-lib_zip__dirent.c (revision 395461) +++ head/archivers/libzip/files/patch-lib_zip__dirent.c (nonexistent) @@ -1,14 +0,0 @@ -CVE-2015-2331: ZIP Integer Overflow -Upstream commit: http://hg.nih.at/libzip/rev/9f11d54f692e - ---- lib/zip_dirent.c.orig 2013-11-28 16:57:10 UTC -+++ lib/zip_dirent.c -@@ -110,7 +110,7 @@ _zip_cdir_new(zip_uint64_t nentry, struc - - if (nentry == 0) - cd->entry = NULL; -- else if ((cd->entry=(struct zip_entry *)malloc(sizeof(*(cd->entry))*(size_t)nentry)) == NULL) { -+ else if ((nentry > SIZE_MAX/sizeof(*(cd->entry))) || (cd->entry=(struct zip_entry *)malloc(sizeof(*(cd->entry))*(size_t)nentry)) == NULL) { - _zip_error_set(error, ZIP_ER_MEMORY, 0); - free(cd); - return NULL; Property changes on: head/archivers/libzip/files/patch-lib_zip__dirent.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/archivers/libzip/files/patch-man_Makefile.in =================================================================== --- head/archivers/libzip/files/patch-man_Makefile.in (revision 395461) +++ head/archivers/libzip/files/patch-man_Makefile.in (nonexistent) @@ -1,13 +0,0 @@ ---- man/Makefile.in.orig 2007-08-02 13:44:34.000000000 +0400 -+++ man/Makefile.in 2007-08-02 13:46:45.000000000 +0400 -@@ -154,8 +154,8 @@ - target_alias = @target_alias@ - top_builddir = @top_builddir@ - top_srcdir = @top_srcdir@ --man1_MANS = ${MAN1:.mdoc=.${MANFMT}} --man3_MANS = ${MAN3:.mdoc=.${MANFMT}} -+man1_MANS = ${MAN1} -+man3_MANS = ${MAN3} - DISTCLEANFILES = ${HTML} - EXTRA_DIST = ${MANDOC} ${MAN} CMakeLists.txt - MAN1 = zipcmp.mdoc zipmerge.mdoc Property changes on: head/archivers/libzip/files/patch-man_Makefile.in ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/archivers/libzip/files/patch-lib__Makefile.in =================================================================== --- head/archivers/libzip/files/patch-lib__Makefile.in (revision 395461) +++ head/archivers/libzip/files/patch-lib__Makefile.in (revision 395462) @@ -1,23 +1,23 @@ ---- ./lib/Makefile.in.orig 2014-04-06 20:16:47.095370563 +0000 -+++ ./lib/Makefile.in 2014-04-06 20:17:22.769365707 +0000 -@@ -349,8 +349,8 @@ +--- lib/Makefile.in.orig 2015-08-26 18:39:20 UTC ++++ lib/Makefile.in +@@ -355,8 +355,8 @@ AM_CFLAGS = @CFLAG_VISIBILITY@ libincludedir = ${libdir}/@PACKAGE@/include lib_LTLIBRARIES = libzip.la noinst_HEADERS = zipint.h -include_HEADERS = zip.h -nodist_libinclude_HEADERS = zipconf.h +include_HEADERS = zip.h zipconf.h +nodist_libinclude_HEADERS = # also update CMakeLists.txt when changing version - libzip_la_LDFLAGS = -no-undefined -version-info 3:0:1 -@@ -830,8 +830,7 @@ + libzip_la_LDFLAGS = -no-undefined -version-info 4:0:0 +@@ -869,8 +869,7 @@ info: info-am info-am: -install-data-am: install-includeHEADERS \ - install-nodist_libincludeHEADERS +install-data-am: install-includeHEADERS install-dvi: install-dvi-am Index: head/archivers/libzip/files/patch-libzip.pc.in =================================================================== --- head/archivers/libzip/files/patch-libzip.pc.in (revision 395461) +++ head/archivers/libzip/files/patch-libzip.pc.in (revision 395462) @@ -1,17 +1,17 @@ ---- ./libzip.pc.in.orig 2010-03-08 15:27:48.000000000 +0300 -+++ ./libzip.pc.in 2011-04-24 23:19:07.996595003 +0400 -@@ -2,7 +2,6 @@ +--- libzip.pc.in.orig 2014-03-08 20:13:21 UTC ++++ libzip.pc.in +@@ -2,7 +2,6 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ -libincludedir=@libdir@/@PACKAGE@/include zipcmp=@prefix@/bin/zipcmp -@@ -10,5 +9,4 @@ +@@ -10,5 +9,5 @@ Name: libzip Description: library for handling zip archives Version: @VERSION@ - Libs: -L${libdir} -lzip @LIBS@ + Libs: @PKG_CONFIG_RPATH@ -L${libdir} -lzip @LIBS@ -Cflags: -I${includedir} -I${libincludedir} -- +Cflags: -I${includedir} + Index: head/archivers/libzip/pkg-plist =================================================================== --- head/archivers/libzip/pkg-plist (revision 395461) +++ head/archivers/libzip/pkg-plist (revision 395462) @@ -1,77 +1,114 @@ bin/zipcmp bin/zipmerge -bin/ziptorrent include/zip.h include/zipconf.h lib/libzip.a lib/libzip.so -lib/libzip.so.2 -lib/libzip.so.2.1.0 +lib/libzip.so.4 +lib/libzip.so.4.0.0 libdata/pkgconfig/libzip.pc man/man1/zipcmp.1.gz man/man1/zipmerge.1.gz -man/man1/ziptorrent.1.gz +man/man3/ZIP_SOURCE_GET_ARGS.3.gz man/man3/libzip.3.gz man/man3/zip_add.3.gz man/man3/zip_add_dir.3.gz man/man3/zip_close.3.gz man/man3/zip_delete.3.gz man/man3/zip_dir_add.3.gz man/man3/zip_discard.3.gz man/man3/zip_error_clear.3.gz +man/man3/zip_error_code_system.3.gz +man/man3/zip_error_code_zip.3.gz +man/man3/zip_error_fini.3.gz man/man3/zip_error_get.3.gz man/man3/zip_error_get_sys_type.3.gz +man/man3/zip_error_init.3.gz +man/man3/zip_error_init_with_code.3.gz +man/man3/zip_error_set.3.gz +man/man3/zip_error_strerror.3.gz +man/man3/zip_error_system_type.3.gz +man/man3/zip_error_to_data.3.gz man/man3/zip_error_to_str.3.gz man/man3/zip_errors.3.gz man/man3/zip_fclose.3.gz man/man3/zip_fdopen.3.gz man/man3/zip_file_add.3.gz man/man3/zip_file_error_clear.3.gz man/man3/zip_file_error_get.3.gz man/man3/zip_file_extra_field_delete.3.gz man/man3/zip_file_extra_field_delete_by_id.3.gz man/man3/zip_file_extra_field_get.3.gz man/man3/zip_file_extra_field_get_by_id.3.gz man/man3/zip_file_extra_field_set.3.gz man/man3/zip_file_extra_fields_count.3.gz man/man3/zip_file_extra_fields_count_by_id.3.gz man/man3/zip_file_get_comment.3.gz +man/man3/zip_file_get_error.3.gz man/man3/zip_file_get_external_attributes.3.gz man/man3/zip_file_rename.3.gz man/man3/zip_file_replace.3.gz man/man3/zip_file_set_comment.3.gz man/man3/zip_file_set_external_attributes.3.gz +man/man3/zip_file_set_mtime.3.gz man/man3/zip_file_strerror.3.gz man/man3/zip_fopen.3.gz man/man3/zip_fopen_encrypted.3.gz man/man3/zip_fopen_index.3.gz man/man3/zip_fopen_index_encrypted.3.gz man/man3/zip_fread.3.gz man/man3/zip_get_archive_comment.3.gz man/man3/zip_get_archive_flag.3.gz +man/man3/zip_get_error.3.gz man/man3/zip_get_file_comment.3.gz man/man3/zip_get_name.3.gz man/man3/zip_get_num_entries.3.gz man/man3/zip_get_num_files.3.gz man/man3/zip_name_locate.3.gz man/man3/zip_open.3.gz +man/man3/zip_open_from_source.3.gz man/man3/zip_rename.3.gz man/man3/zip_replace.3.gz man/man3/zip_set_archive_comment.3.gz man/man3/zip_set_archive_flag.3.gz man/man3/zip_set_default_password.3.gz man/man3/zip_set_file_comment.3.gz man/man3/zip_set_file_compression.3.gz +man/man3/zip_source.3.gz +man/man3/zip_source_begin_write.3.gz man/man3/zip_source_buffer.3.gz +man/man3/zip_source_close.3.gz +man/man3/zip_source_commit_write.3.gz +man/man3/zip_source_error.3.gz man/man3/zip_source_file.3.gz man/man3/zip_source_filep.3.gz man/man3/zip_source_free.3.gz man/man3/zip_source_function.3.gz +man/man3/zip_source_function_create.3.gz +man/man3/zip_source_is_deleted.3.gz +man/man3/zip_source_keep.3.gz +man/man3/zip_source_make_command_bitmap.3.gz +man/man3/zip_source_open.3.gz +man/man3/zip_source_read.3.gz +man/man3/zip_source_rollback_write.3.gz +man/man3/zip_source_seek.3.gz +man/man3/zip_source_seek_compute_offset.3.gz +man/man3/zip_source_seek_write.3.gz +man/man3/zip_source_stat.3.gz +man/man3/zip_source_tell.3.gz +man/man3/zip_source_tell_write.3.gz +man/man3/zip_source_win32a.3.gz +man/man3/zip_source_win32a_create.3.gz +man/man3/zip_source_win32handle.3.gz +man/man3/zip_source_win32handle_create.3.gz +man/man3/zip_source_win32w.3.gz +man/man3/zip_source_win32w_create.3.gz +man/man3/zip_source_write.3.gz man/man3/zip_source_zip.3.gz man/man3/zip_stat.3.gz man/man3/zip_stat_index.3.gz man/man3/zip_stat_init.3.gz man/man3/zip_strerror.3.gz man/man3/zip_unchange.3.gz man/man3/zip_unchange_all.3.gz man/man3/zip_unchange_archive.3.gz