Import Debian changes 1.1-ok1

minizip (1.1-ok1) yangtze; urgency=high

  * Build for openKylin.
This commit is contained in:
openKylinBot 2022-04-25 22:03:04 +08:00
parent 4027f73ec5
commit 044fa4052a
18 changed files with 454 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
minizip (1.1-ok1) yangtze; urgency=high
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.com> Mon, 25 Apr 2022 22:03:04 +0800

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

58
debian/control vendored Normal file
View File

@ -0,0 +1,58 @@
Source: minizip
Section: libs
Priority: optional
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
XSBC-Original-Maintainer: Michael Gilbert <mgilbert@debian.org>
Standards-Version: 3.9.6
Homepage: http://www.winimage.com/zLibDll/minizip.html
Build-Depends:
debhelper (>= 9),
dh-autoreconf,
zlib1g-dev,
Package: minizip
Section: utils
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
Replaces:
zlib-bin,
Conflicts:
zlib-bin,
Description: compression library - minizip tools
minizip is a minimalistic library that supports compressing, extracting,
viewing, and manipulating zip files.
.
This package includes the minizip and miniunzip tools.
Package: libminizip1
Architecture: any
Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends}
Depends:
${misc:Depends},
${shlibs:Depends},
Description: compression library - minizip library
minizip is a minimalistic library that supports compressing, extracting,
viewing, and manipulating zip files.
.
This package includes the minizip library.
Package: libminizip-dev
Architecture: any
Multi-Arch: same
Section: libdevel
Depends:
${misc:Depends},
libminizip1 (= ${binary:Version})
Replaces:
libkml-dev (<< 1.3.0~r864+git20150723-0fa2f22-0),
Breaks:
libkml-dev (<< 1.3.0~r864+git20150723-0fa2f22-0),
Description: compression library - minizip development files
minizip is a minimalistic library that supports compressing, extracting,
viewing, and manipulating zip files.
.
This package includes development support files for the minizip library.

44
debian/copyright vendored Normal file
View File

@ -0,0 +1,44 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
Upstream-Name: minizip
Source: http://www.winimage.com/zLibDll/minizip.html
Files: *
Copyright:
Copyright (C) 1998-2010 Gilles Vollant <info@winimage.com>
Copyright (C) 2007-2008 Even Rouault
Copyright (C) 2010 Daniel Borca
Copyright (C) 2009-2010 Mathias Svensson <mathias@result42.com>
License: zlib
Files: debian/minizip.1
Copyright:
Copyright (C) Mark Brown <broonie@sirena.org.uk>
License: zlib
Files: debian/miniunzip.1
Copyright:
Copyright (C) Mark Brown <broonie@sirena.org.uk>
Copyright (C) Dirk Eddelbuettel <edd@debian.org>.
License: zlib
Files: debian/*
Copyright:
Copyright (C) 2014 Michael Gilbert <mgilbert@debian.org>
License: zlib
License: zlib
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
.
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.

4
debian/libminizip-dev.install vendored Normal file
View File

@ -0,0 +1,4 @@
usr/include/minizip
usr/lib/*/libminizip.a
usr/lib/*/libminizip.so
usr/lib/*/pkgconfig/minizip.pc

1
debian/libminizip1.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/*/libminizip.so.*

68
debian/libminizip1.symbols vendored Normal file
View File

@ -0,0 +1,68 @@
libminizip.so.1 libminizip1 #MINVER#
LoadCentralDirectoryRecord@Base 1.1
Write_EndOfCentralDirectoryRecord@Base 1.1
Write_GlobalComment@Base 1.1
Write_LocalFileHeader@Base 1.1
Write_Zip64EndOfCentralDirectoryLocator@Base 1.1
Write_Zip64EndOfCentralDirectoryRecord@Base 1.1
call_zopen64@Base 1.1
call_zseek64@Base 1.1
call_ztell64@Base 1.1
fill_fopen64_filefunc@Base 1.1
fill_fopen_filefunc@Base 1.1
fill_zlib_filefunc64_32_def_from_filefunc32@Base 1.1
unzClose@Base 1.1
unzCloseCurrentFile@Base 1.1
unzGetCurrentFileInfo64@Base 1.1
unzGetCurrentFileInfo@Base 1.1
unzGetCurrentFileZStreamPos64@Base 1.1
unzGetFilePos64@Base 1.1
unzGetFilePos@Base 1.1
unzGetGlobalComment@Base 1.1
unzGetGlobalInfo64@Base 1.1
unzGetGlobalInfo@Base 1.1
unzGetLocalExtrafield@Base 1.1
unzGetOffset64@Base 1.1
unzGetOffset@Base 1.1
unzGoToFilePos64@Base 1.1
unzGoToFilePos@Base 1.1
unzGoToFirstFile@Base 1.1
unzGoToNextFile@Base 1.1
unzLocateFile@Base 1.1
unzOpen2@Base 1.1
unzOpen2_64@Base 1.1
unzOpen64@Base 1.1
unzOpen@Base 1.1
unzOpenCurrentFile2@Base 1.1
unzOpenCurrentFile3@Base 1.1
unzOpenCurrentFile@Base 1.1
unzOpenCurrentFilePassword@Base 1.1
unzReadCurrentFile@Base 1.1
unzRepair@Base 1.1
unzSetOffset64@Base 1.1
unzSetOffset@Base 1.1
unzStringFileNameCompare@Base 1.1
unz_copyright@Base 1.1
unzeof@Base 1.1
unztell64@Base 1.1
unztell@Base 1.1
zipClose@Base 1.1
zipCloseFileInZip@Base 1.1
zipCloseFileInZipRaw64@Base 1.1
zipCloseFileInZipRaw@Base 1.1
zipOpen2@Base 1.1
zipOpen2_64@Base 1.1
zipOpen3@Base 1.1
zipOpen64@Base 1.1
zipOpen@Base 1.1
zipOpenNewFileInZip2@Base 1.1
zipOpenNewFileInZip2_64@Base 1.1
zipOpenNewFileInZip3@Base 1.1
zipOpenNewFileInZip3_64@Base 1.1
zipOpenNewFileInZip4@Base 1.1
zipOpenNewFileInZip4_64@Base 1.1
zipOpenNewFileInZip64@Base 1.1
zipOpenNewFileInZip@Base 1.1
zipRemoveExtraInfoBlock@Base 1.1
zipWriteInFileInZip@Base 1.1
zip_copyright@Base 1.1

63
debian/miniunzip.1 vendored Normal file
View File

@ -0,0 +1,63 @@
.\" Hey, EMACS: -*- nroff -*-
.TH miniunzip 1 "Nov 7, 2001"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
miniunzip - uncompress and examine ZIP archives
.SH SYNOPSIS
.B miniunzip
.RI [ -exvlo ]
zipfile [ files_to_extract ] [\-d tempdir]
.SH DESCRIPTION
.B minizip
is a simple tool which allows the extraction of compressed file
archives in the ZIP format used by the MS-DOS utility PKZIP. It was
written as a demonstration of the
.IR zlib (3)
library and therefore lack many of the features of the
.IR unzip (1)
program.
.SH OPTIONS
A number of options are supported. With the exception of
.BI \-d\ tempdir
these must be supplied before any
other arguments and are:
.TP
.BI \-l\ ,\ \-v
List the files in the archive without extracting them.
.TP
.B \-o
Overwrite files without prompting for confirmation.
.TP
.B \-x
Extract files (default).
.PP
The
.I zipfile
argument is the name of the archive to process. The next argument can be used
to specify a single file to extract from the archive.
Lastly, the following option can be specified at the end of the command-line:
.TP
.BI \-d\ tempdir
Extract the archive in the directory
.I tempdir
rather than the current directory.
.SH SEE ALSO
.BR minizip (1),
.BR zlib (3),
.BR unzip (1).
.SH AUTHOR
This program was written by Gilles Vollant. This manual page was
written by Mark Brown <broonie@sirena.org.uk>. The \-d tempdir option
was added by Dirk Eddelbuettel <edd@debian.org>.

48
debian/minizip.1 vendored Normal file
View File

@ -0,0 +1,48 @@
.\" Hey, EMACS: -*- nroff -*-
.TH minizip 1 "May 2, 2001"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
minizip - create ZIP archives
.SH SYNOPSIS
.B minizip
.RI [ options ]
zipfile [ " files" ... ]
.SH DESCRIPTION
.B minizip
is a simple tool which allows the creation of compressed file archives
in the ZIP format used by the MS-DOS utility PKZIP. It was written as
a demonstration of the
.IR zlib (3)
library and therefore lack many of the features of the
.IR zip (1)
program.
.SH OPTIONS
The first non-option argument is the name of the ZIP archive to create.
.PP
Subsequent arguments specify a list of files to add to the ZIP
archive. If none are specified then an empty archive will be created.
.PP
For information about the available
.RI [ options ]
type
.PP
.B minizip -h
.SH SEE ALSO
.BR miniunzip (1),
.BR zlib (3),
.BR zip (1).
.SH AUTHOR
This program was written by Gilles Vollant. This manual page was
written by Mark Brown <broonie@sirena.org.uk>.

2
debian/minizip.install vendored Normal file
View File

@ -0,0 +1,2 @@
.libs/minizip usr/bin
.libs/miniunzip usr/bin

2
debian/minizip.manpages vendored Normal file
View File

@ -0,0 +1,2 @@
debian/minizip.1
debian/miniunzip.1

100
debian/patches/automake.patch vendored Normal file
View File

@ -0,0 +1,100 @@
description: apply automake build system from the zlib package
--- /dev/null
+++ minizip-1.1/Makefile.am
@@ -0,0 +1,45 @@
+lib_LTLIBRARIES = libminizip.la
+
+if COND_DEMOS
+bin_PROGRAMS = miniunzip minizip
+endif
+
+zlib_top_srcdir = $(top_srcdir)/../..
+zlib_top_builddir = $(top_builddir)/../..
+
+AM_CPPFLAGS = -I$(zlib_top_srcdir)
+AM_LDFLAGS = -L$(zlib_top_builddir)
+
+if WIN32
+iowin32_src = iowin32.c
+iowin32_h = iowin32.h
+endif
+
+libminizip_la_SOURCES = \
+ ioapi.c \
+ mztools.c \
+ unzip.c \
+ zip.c \
+ ${iowin32_src}
+
+libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz
+
+minizip_includedir = $(includedir)/minizip
+minizip_include_HEADERS = \
+ crypt.h \
+ ioapi.h \
+ mztools.h \
+ unzip.h \
+ zip.h \
+ ${iowin32_h}
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = minizip.pc
+
+EXTRA_PROGRAMS = miniunzip minizip
+
+miniunzip_SOURCES = miniunz.c
+miniunzip_LDADD = libminizip.la
+
+minizip_SOURCES = minizip.c
+minizip_LDADD = libminizip.la -lz
--- /dev/null
+++ minizip-1.1/configure.ac
@@ -0,0 +1,32 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_INIT([minizip], [1.2.8], [bugzilla.redhat.com])
+AC_CONFIG_SRCDIR([minizip.c])
+AM_INIT_AUTOMAKE([foreign])
+LT_INIT
+
+AC_MSG_CHECKING([whether to build example programs])
+AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs]))
+AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes])
+if test "$enable_demos" = yes
+then
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+fi
+
+case "${host}" in
+ *-mingw* | mingw*)
+ WIN32="yes"
+ ;;
+ *)
+ ;;
+esac
+AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
+
+
+AC_SUBST([HAVE_UNISTD_H], [0])
+AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
+AC_CONFIG_FILES([Makefile minizip.pc])
+AC_OUTPUT
--- /dev/null
+++ minizip-1.1/minizip.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/minizip
+
+Name: minizip
+Description: Minizip zip file manipulation library
+Requires:
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lminizip
+Libs.private: -lz
+Cflags: -I${includedir}

13
debian/patches/include.patch vendored Normal file
View File

@ -0,0 +1,13 @@
description: add include that defines mkdir
author: Michael Gilbert <mgilbert@debian.org>
--- a/miniunz.c
+++ b/miniunz.c
@@ -37,6 +37,7 @@
#ifdef unix
# include <unistd.h>
# include <utime.h>
+# include <sys/stat.h>
#else
# include <direct.h>
# include <io.h>

3
debian/patches/series vendored Normal file
View File

@ -0,0 +1,3 @@
include.patch
automake.patch
traversal.patch

28
debian/patches/traversal.patch vendored Normal file
View File

@ -0,0 +1,28 @@
description: fix directory traversal issues in miniunzip
author: Michael Gilbert <mgilbert@debian.org>
bug-debian: https://bugs.debian.org/774321
bug-debian: https://bugs.debian.org/776831
--- a/miniunz.c
+++ b/miniunz.c
@@ -354,6 +354,20 @@ int do_extract_currentfile(uf,popt_extra
else
write_filename = filename_withoutpath;
+ if (write_filename[0]!='\0')
+ {
+ const char* relative_check = write_filename;
+ while (relative_check[1]!='\0')
+ {
+ if (relative_check[0]=='.' && relative_check[1]=='.')
+ write_filename = relative_check;
+ relative_check++;
+ }
+ }
+
+ while (write_filename[0]=='/' || write_filename[0]=='.')
+ write_filename++;
+
err = unzOpenCurrentFilePassword(uf,password);
if (err!=UNZ_OK)
{

12
debian/rules vendored Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/make -f
export DH_VERBOSE=1
%:
dh $@ --parallel --with autoreconf
override_dh_auto_build:
dh_auto_build -- minizip miniunzip
override_dh_clean:
dh_clean -- minizip miniunzip

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/lintian-overrides vendored Normal file
View File

@ -0,0 +1 @@
dep5-copyright-license-name-not-unique