head 1.6; access; symbols pkgsrc-2016Q4:1.5.0.6 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.4 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.2 pkgsrc-2016Q2-base:1.5 libarchive-3-2-1:1.1.1.5 pkgsrc-2016Q1:1.4.0.10 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.8 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.6 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.4 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.2 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.3.0.40 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.38 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.36 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.34 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.32 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.30 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.28 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.26 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.24 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.22 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.20 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.18 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.16 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.14 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.12 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.10 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.8 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.6 pkgsrc-2010Q3-base:1.3 libarchive-2-8-4:1.1.1.4 pkgsrc-2010Q2:1.3.0.4 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.2 pkgsrc-2010Q1-base:1.3 libarchive-2-8-3:1.1.1.4 libarchive-2-8-2:1.1.1.4 libarchive-2-8-0:1.1.1.4 pkgsrc-2009Q4:1.1.1.3.0.18 pkgsrc-2009Q4-base:1.1.1.3 pkgsrc-2009Q3:1.1.1.3.0.16 pkgsrc-2009Q3-base:1.1.1.3 pkgsrc-2009Q2:1.1.1.3.0.14 pkgsrc-2009Q2-base:1.1.1.3 pkgsrc-2009Q1:1.1.1.3.0.12 pkgsrc-2009Q1-base:1.1.1.3 pkgsrc-2008Q4:1.1.1.3.0.10 pkgsrc-2008Q4-base:1.1.1.3 pkgsrc-2008Q3:1.1.1.3.0.8 pkgsrc-2008Q3-base:1.1.1.3 cube-native-xorg:1.1.1.3.0.6 cube-native-xorg-base:1.1.1.3 libarchive-2-5-5:1.1.1.3 pkgsrc-2008Q2:1.1.1.3.0.4 pkgsrc-2008Q2-base:1.1.1.3 cwrapper:1.1.1.3.0.2 libarchive-2-5-4b:1.1.1.3 libarchive-2-5-1b:1.1.1.2 pkgsrc-2008Q1:1.1.1.2.0.4 pkgsrc-2008Q1-base:1.1.1.2 libarchive-2-5-0b:1.1.1.2 libarchive-2-4-14:1.1.1.2 libarchive-2-4-13:1.1.1.2 pkgsrc-2007Q4:1.1.1.2.0.2 pkgsrc-2007Q4-base:1.1.1.2 libarchive-2-4-0:1.1.1.2 pkgsrc-2007Q3:1.1.1.1.0.2 pkgsrc-2007Q3-base:1.1.1.1 libarchive-2-2-8:1.1.1.1 libarchive-2-2-6:1.1.1.1 libarchive-2-2-5:1.1.1.1 KIENTZLE:1.1.1; locks; strict; comment @# @; 1.6 date 2017.02.25.21.11.18; author joerg; state dead; branches; next 1.5; commitid rW8QfCWrsCO1snHz; 1.5 date 2016.06.20.17.24.55; author joerg; state Exp; branches; next 1.4; commitid ArUvympBjfBseebz; 1.4 date 2015.01.17.12.44.47; author adam; state Exp; branches; next 1.3; commitid yy7e1hLrfmA2pn6y; 1.3 date 2010.02.20.03.54.07; author joerg; state Exp; branches; next 1.2; 1.2 date 2010.02.20.03.51.39; author joerg; state dead; branches; next 1.1; 1.1 date 2007.08.03.12.55.52; author joerg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.08.03.12.55.52; author joerg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2007.11.30.21.25.12; author joerg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2008.05.25.19.41.18; author joerg; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2010.02.20.03.48.25; author joerg; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2016.06.20.17.11.26; author joerg; state Exp; branches; next ; commitid rRgm3BqbmbI8aebz; desc @@ 1.6 log @Merge libarchive-3.3.1. @ text @README for libarchive bundle. Questions? Issues? * http://www.libarchive.org is the home for ongoing libarchive development, including documentation, and links to the libarchive mailing lists. * To report an issue, use the issue tracker at https://github.com/libarchive/libarchive/issues * To submit an enhancement to libarchive, please submit a pull request via GitHub. https://github.com/libarchive/libarchive/pulls This distribution bundle includes the following components: * libarchive: a library for reading and writing streaming archives * tar: the 'bsdtar' program is a full-featured 'tar' implementation built on libarchive * cpio: the 'bsdcpio' program is a different interface to essentially the same functionality * cat: the 'bsdcat' program is a simple replacement tool for zcat, bzcat, xzcat, and such * examples: Some small example programs that you may find useful. * examples/minitar: a compact sample demonstrating use of libarchive. * contrib: Various items sent to me by third parties; please contact the authors with any questions. The top-level directory contains the following information files: * NEWS - highlights of recent changes * COPYING - what you can do with this * INSTALL - installation instructions * README - this file * configure - configuration script, see INSTALL for details. * CMakeLists.txt - input for "cmake" build tool, see INSTALL The following files in the top-level directory are used by the 'configure' script: * Makefile.am, aclocal.m4, configure.ac - used to build this distribution, only needed by maintainers * Makefile.in, config.h.in - templates used by configure script Guide to Documentation installed by this system: * bsdtar.1 explains the use of the bsdtar program * bsdcpio.1 explains the use of the bsdcpio program * bsdcat.1 explains the use of the bsdcat program * libarchive.3 gives an overview of the library as a whole * archive_read.3, archive_write.3, archive_write_disk.3, and archive_read_disk.3 provide detailed calling sequences for the read and write APIs * archive_entry.3 details the "struct archive_entry" utility class * archive_internals.3 provides some insight into libarchive's internal structure and operation. * libarchive-formats.5 documents the file formats supported by the library * cpio.5, mtree.5, and tar.5 provide detailed information about these popular archive formats, including hard-to-find details about modern cpio and tar variants. The manual pages above are provided in the 'doc' directory in a number of different formats. You should also read the copious comments in "archive.h" and the source code for the sample programs for more details. Please let us know about any errors or omissions you find. Currently, the library automatically detects and reads the following fomats: * GNU tar format (including GNU long filenames, long link names, and sparse files) * Solaris 9 extended tar format (including ACLs) * Old V7 tar archives * POSIX ustar * POSIX pax interchange format * POSIX octet-oriented cpio * SVR4 ASCII cpio * POSIX octet-oriented cpio * Binary cpio (big-endian or little-endian) * ISO9660 CD-ROM images (with optional Rockridge or Joliet extensions) * ZIP archives (with uncompressed or "deflate" compressed entries) * GNU and BSD 'ar' archives * 'mtree' format * 7-Zip archives * Microsoft CAB format * LHA and LZH archives * RAR archives * XAR archives The library also detects and handles any of the following before evaluating the archive: * uuencoded files * files with RPM wrapper * gzip compression * bzip2 compression * compress/LZW compression * lzma, lzip, and xz compression * lz4 compression * lzop compression The library can create archives in any of the following formats: * POSIX ustar * POSIX pax interchange format * "restricted" pax format, which will create ustar archives except for entries that require pax extensions (for long filenames, ACLs, etc). * Old GNU tar format * Old V7 tar format * POSIX octet-oriented cpio * SVR4 "newc" cpio * shar archives * ZIP archives (with uncompressed or "deflate" compressed entries) * GNU and BSD 'ar' archives * 'mtree' format * ISO9660 format * 7-Zip archives * XAR archives When creating archives, the result can be filtered with any of the following: * uuencode * gzip compression * bzip2 compression * compress/LZW compression * lzma, lzip, and xz compression * lz4 compression * lzop compression Notes about the library architecture: * This is a heavily stream-oriented system. There is no direct support for in-place modification or random access. * The library is designed to be extended with new compression and archive formats. The only requirement is that the format be readable or writable as a stream and that each archive entry be independent. There are articles on the libarchive Wiki explaining how to extend libarchive. * On read, compression and format are always detected automatically. * I've attempted to minimize static link pollution. If you don't explicitly invoke a particular feature (such as support for a particular compression or format), it won't get pulled in to statically-linked programs. In particular, if you don't explicitly enable a particular compression or decompression support, you won't need to link against the corresponding compression or decompression libraries. This also reduces the size of statically-linked binaries in environments where that matters. * On read, the library accepts whatever blocks you hand it. Your read callback is free to pass the library a byte at a time or mmap the entire archive and give it to the library at once. On write, the library always produces correctly-blocked output. * The object-style approach allows you to have multiple archive streams open at once. bsdtar uses this in its "@@archive" extension. * The archive itself is read/written using callback functions. You can read an archive directly from an in-memory buffer or write it to a socket, if you wish. There are some utility functions to provide easy-to-use "open file," etc, capabilities. * The read/write APIs are designed to allow individual entries to be read or written to any data source: You can create a block of data in memory and add it to a tar archive without first writing a temporary file. You can also read an entry from an archive and write the data directly to a socket. If you want to read/write entries to disk, there are convenience functions to make this especially easy. * Note: "pax interchange format" is really an extended tar format, despite what the name says. @ 1.5 log @Update for libarchive 3.2.1. @ text @@ 1.4 log @Changes 3.1.2: This is a maintenance update to fix issues with the new RAR seeking feature. This new release also contains fixes for build failures when building libarchive using Visual Studio 2012 and MinGW. @ text @d8 1 a8 1 http://code.google.com/p/libarchive/issues/list d16 1 a16 1 replacement built on libarchive d19 2 d44 1 d90 2 d99 1 d116 2 d134 6 a139 6 particular compression or format), it won't get pulled in. In particular, if you don't explicitly enable a particular compression or decompression support, you won't need to link against the corresponding compression or decompression libraries. This also reduces the size of statically-linked binaries in environments where that matters. @ 1.3 log @Merge again... @ text @d4 8 a11 3 * http://libarchive.googlecode.com/ is the home for ongoing libarchive development, including issue tracker, additional documentation, and links to the libarchive mailing lists. a20 2 I use this for testing link pollution; it should produce a very small executable file on most systems. d57 1 a57 1 source code for the sample programs for more details. Please let me d60 2 a61 7 Currently, the library automatically detects and reads the following: * gzip compression * bzip2 compression * compress/LZW compression * lzma and xz compression * GNU tar format (including GNU long filenames, long link names, and sparse files) d74 9 a82 2 The library can write: d86 3 a88 1 * lzma and xz compression d93 1 d100 10 @ 1.2 log @Merge @ text @d3 5 a8 1 d12 8 a19 1 * minitar: a compact sample demonstrating use of libarchive d27 1 a30 1 a34 1 * config.aux/* - auxiliary scripts used by build system d38 1 d40 3 a42 2 * archive_read.3, archive_write.3, and archive_write_disk.3 provide detailed calling sequences for the read and write APIs d44 2 d47 9 a55 6 * tar.5 provides some detailed information about a variety of different "tar" formats. You should also read the copious comments in "archive.h" and the source code for the sample "bsdtar" program for more details. Please let me know about any errors or omissions you find. d61 1 d70 1 d72 1 a72 1 * ISO9660 CD-ROM images (with optional Rockridge extensions) d75 1 d80 2 d87 1 d89 1 d91 1 d96 1 a96 3 support for in-place modification or random access and no intention of ever adding such support. Adding such support would require sacrificing a lot of other features, so don't bother asking. d101 2 a102 1 independent. d118 1 a118 2 On write, the library always produces correctly-blocked output. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import libarchive-2.2.5 with three modifications sent upstream: - optional building of bsdtar - optional dynamic linkage of bsdtar - fixed libtool use for bsdtar linkage - include of pre-built getdate.c @ text @@ 1.1.1.2 log @Import libarchive-2.4.0 @ text @d8 1 a8 8 * cpio: the 'bsdcpio' program is a different interface to essentially the same functionality * examples: Some small example programs that you may find useful. * examples/minitar: a compact sample demonstrating use of libarchive. I use this for testing link pollution; it should produce a very small executable file on most systems. * contrib: Various items sent to me by third parties; please contact the authors with any questions. a27 1 * bsdcpio.1 explains the use of the bsdcpio program a31 2 * archive_internals.3 provides some insight into libarchive's internal structure and operation. d33 2 a34 3 * cpio.5, mtree.5, and tar.5 provide detailed information about a variety of different archive formats, including hard-to-find details about modern cpio and tar variants. a55 1 * 'mtree' format a64 1 * SVR4 "newc" cpio d92 1 a92 1 Your read callback is free to pass the library a byte at a time[1] d94 2 a95 1 On write, the library always produces correctly-blocked output. a114 8 [1] Gzip and compress formats are identical in the first byte. For that reason, the first block must be at least two bytes if you have both of these formats enabled at read time. This is currently the only restriction on block size. (This restriction could be lifted by buffering the initial blocks prior to the compression tasting step, but it doesn't really seem worth the effort.) @ 1.1.1.3 log @Import libarchive-2.5.4b. Major changes: - much improved mtree support - fix a number of non-exploitable integer and buffer overflows - bsdtar get -s and SIGINFO/SIGUSR1 support - fix hardlink extraction bug where latter hardlinks would overwrite the permissions of earlier entries even when they don't carry data - fix bsdtar crashes on entries with empty filenames @ text @a71 1 * compress/LZW compression @ 1.1.1.4 log @Import libarchive 2.8.0: - Infrastructure: - Allow command line tools as fallback for missing compression libraries. If compiled without gzip for example, gunzip will be used automatically. - Improved support for a number of platforms like high-resolution timestamps and Extended Attributes on various Unix systems - New convience interface for creating archives based on disk content, complement of the archive_write_disk interface. - Frontends: - bsdcpio ready for public consumption - hand-written date parser replaces the yacc code - Filter system: - Simplified read filter chains - Option support for filters - LZMA, XZ, uudecode handled - Format support: - Write support for mtree files based on file system or archive content - Basic read support for Joliet - Write support for zip files - Write support for shar archives, both text-only and binary-safe @ text @d3 1 a3 4 Questions? Issues? * http://libarchive.googlecode.com/ is the home for ongoing libarchive development, including issue tracker, additional documentation, and links to the libarchive mailing lists. a4 1 This distribution bundle includes the following components: a22 1 * CMakeLists.txt - input for "cmake" build tool, see INSTALL d26 1 d31 1 d37 2 a38 3 * archive_read.3, archive_write.3, archive_write_disk.3, and archive_read_disk.3 provide detailed calling sequences for the read and write APIs d43 7 a49 9 * cpio.5, mtree.5, and tar.5 provide detailed information about these popular archive formats, including hard-to-find details about modern cpio and tar variants. The manual pages above are provided in the 'doc' directory in a number of different formats. You should also read the copious comments in "archive.h" and the source code for the sample programs for more details. Please let me know about any errors or omissions you find. a54 1 * lzma and xz compression a62 1 * POSIX octet-oriented cpio d64 1 a64 1 * ISO9660 CD-ROM images (with optional Rockridge or Joliet extensions) a72 1 * lzma and xz compression a79 1 * ZIP archives (with uncompressed or "deflate" compressed entries) a80 1 * 'mtree' format d85 3 a87 1 support for in-place modification or random access. d92 1 a92 2 independent. There are articles on the libarchive Wiki explaining how to extend libarchive. d106 1 a106 1 Your read callback is free to pass the library a byte at a time d128 8 @ 1.1.1.5 log @Import libarchive-3.2.1: - security fixes and other bugfixes - support for multhreading in xz 5.2+ @ text @d4 3 a6 8 * http://www.libarchive.org is the home for ongoing libarchive development, including documentation, and links to the libarchive mailing lists. * To report an issue, use the issue tracker at https://github.com/libarchive/libarchive/issues * To submit an enhancement to libarchive, please submit a pull request via GitHub. https://github.com/libarchive/libarchive/pulls d11 1 a11 1 implementation built on libarchive a13 2 * cat: the 'bsdcat' program is a simple replacement tool for zcat, bzcat, xzcat, and such d16 2 a38 1 * bsdcat.1 explains the use of the bsdcat program d54 1 a54 1 source code for the sample programs for more details. Please let us d57 7 a63 2 Currently, the library automatically detects and reads the following fomats: * GNU tar format (including GNU long filenames, long link names, and sparse files) d76 2 a77 9 * 7-Zip archives * Microsoft CAB format * LHA and LZH archives * RAR archives * XAR archives The library also detects and handles any of the following before evaluating the archive: * uuencoded files * files with RPM wrapper d81 1 a81 5 * lzma, lzip, and xz compression * lz4 compression * lzop compression The library can create archives in any of the following formats: a85 2 * Old GNU tar format * Old V7 tar format a91 12 * ISO9660 format * 7-Zip archives * XAR archives When creating archives, the result can be filtered with any of the following: * uuencode * gzip compression * bzip2 compression * compress/LZW compression * lzma, lzip, and xz compression * lz4 compression * lzop compression d108 6 a113 6 particular compression or format), it won't get pulled in to statically-linked programs. In particular, if you don't explicitly enable a particular compression or decompression support, you won't need to link against the corresponding compression or decompression libraries. This also reduces the size of statically-linked binaries in environments where that matters. @