aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cpio/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* bsdcat,cpio,tar: derive version string from archive.hXin LI2020-12-291-1/+2
| | | | | | Reviewed by: mm MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27823
* bsdcat,cpio,tar: Bump version number to 3.5.1Martin Matuska2020-12-271-1/+1
| | | | Matches import of libarchive 3.5.1
* MFV r368207:Martin Matuska2020-12-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | Update libarchive to 3.5.0 Relevant vendor changes: Issue #1258: add archive_read_support_filter_by_code() PR #1347: mtree digest reader support Issue #1381: skip hardlinks pointing to itself on extraction PR #1387: fix writing of cpio archives with hardlinks without file type PR #1388: fix rdev field in cpio format for device nodes PR #1389: completed support for UTF-8 encoding conversion PR #1405: more formats in archive_read_support_format_by_code() PR #1408: fix uninitialized size in rar5_read_data PR #1409: system extended attribute support PR #1435: support for decompression of symbolic links in zipx archives Issue #1456: memory leak after unsuccessful archive_write_open_filename MFC after: 1 week Notes: svn path=/head/; revision=368234
* MFV r361280:Martin Matuska2020-05-201-1/+1
| | | | | | | | | | | | | | | | Update libarchive to 3.4.3 Relevant vendor changes: PR #1352: support negative zstd compression levels PR #1359: improve zstd version checking PR #1348: support RHT.security.selinux from GNU tar PR #1357: support for archives compressed with pzstd PR #1367: fix issues in acl tests PR #1372: child handling cleanup PR #1378: fix memory leak from passphrase callback Notes: svn path=/head/; revision=361294
* MFV r357783:Martin Matuska2020-02-121-1/+1
| | | | | | | | | | | | | | | | | | | | Update libarchive to 3.4.2 Relevant vendor changes: PR #1289: atomic extraction support (bsdtar -x --safe-writes) PR #1308: big endian fix for UTF16 support in LHA reader PR #1326: reject RAR5 files that declare invalid header flags Issue #987: fix support 7z archive entries with Delta filter Issue #1317: fix compression output buffer handling in XAR writer Issue #1319: fix uname or gname longer than 32 characters in pax writer Issue #1325: fix use after free when archiving hardlinks in ISO9660 or XAR Use localtime_r() and gmtime_r() instead of localtime() and gmtime() X-MFC-With: r356212,r356365,r356416 MFC after: 1 week Notes: svn path=/head/; revision=357785
* MFV r356163,r356197:Martin Matuska2019-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Update libarchive to 3.4.1 Relevant vendor changes since last update: Issue #351: Refactor and implement private state logic for write filters PR #1252: RAR5 reader - verify window size for solid files (OSS-Fuzz 15482) PR #1255: zip writer - don't append unused NUL for directories PR #1260: Fix sparse file offset overflow on 32-bit systems PR #1263: UNICODE filename support for reading lha/lzh format Issue #1276: Bugfix and optimize archive_wstring_append_from_mbs() PR #1288: Add the "xattrhdr" option to pax write options PR #1295: 7z reader - fix reading archives with digests in PackInfo PR #1296: RAR5 reader - verify window size for multivolume archives PR #1297: ZIP reader - support LZMA_STREAM_END marker in 'lzma alone' files Issue #1298: Fix a heap-buffer-overflow in archive_string_append_from_wcs() OSS-Fuzz 19360, 19362: LHA reader - plug two memory leaks on error Fix possible off-by-one when dealing with readlink(2) MFC after: 2 weeks Notes: svn path=/head/; revision=356212
* There is no SMALLER define anymore hereWarner Losh2019-07-121-5/+0
| | | | | | | | | Stop defining SMALLER. Since we replaced cpio with libarchive version, there's no options to make it smaller. Also, the comment about the FreeBSD installer is obsolete. Remove them both. Notes: svn path=/head/; revision=349934
* MFV r348971,r348977:Martin Matuska2019-06-121-1/+1
| | | | | | | | | | | | | | | Sync libarchive with vendor. Relevant vendor changes: - check_symlinks_fsobj() without chdir() and fchdir() - bsdtar.1 manpage fixes - patches from OpenBSD to libarchive_fe/passphrase.c - version bumped to 3.4.0 MFC after: 2 weeks Notes: svn path=/head/; revision=348993
* MFV r338519:Martin Matuska2018-09-111-1/+1
| | | | | | | | | | | | | | | Update libarchive to 3.3.3 As all important changes have already been merged from libarchive git this is just version number bump, documentation update and some polishing for cpio tests. Other source code changes are not relevant to FreeBSD. Approved by: re (gjb) MFC after: 1 week Notes: svn path=/head/; revision=338600
* Add HAS_TESTS to all Makefiles that are currently using theEnji Cooper2017-08-021-0/+1
| | | | | | | | | `SUBDIR.${MK_TESTS}+= tests` idiom. This is a follow up to r321912. Notes: svn path=/projects/make-check-sandbox/; revision=321914
* Convert traditional ${MK_TESTS} conditional idiom for including testEnji Cooper2017-08-021-3/+1
| | | | | | | | | | | | | | directories to SUBDIR.${MK_TESTS} idiom This is being done to pave the way for future work (and homogenity) in ^/projects/make-check-sandbox . No functional change intended. MFC after: 1 weeks Notes: svn path=/head/; revision=321912
* MFV r320924:Martin Matuska2017-07-131-1/+1
| | | | | | | | | | | | Bump libarchive to 3.3.2 Vendor changes: PR #901: don't depend on stdin in a testcase MFC after: 1 week Notes: svn path=/head/; revision=320927
* Adopt SRCTOP in usr.binWarner Losh2017-03-121-2/+2
| | | | | | | | | | | | Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo over ${.CURDIR}/../foo for paths in Makefiles. Differential Revision: https://reviews.freebsd.org/D9932 Sponsored by: Netflix Silence on: arch@ (twice) Notes: svn path=/head/; revision=315170
* MFV r314565,314567,314570:Martin Matuska2017-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | Update libarchive to version 3.3.1 (and sync with latest vendor dist) Notable vendor changes: PR #501: improvements in ACL path handling PR #724: fix hang when reading malformed cpio files PR #864: fix out of bounds read with malformed GNU tar archives Documentation, style, test suite improvements and typo fixes. New options to bsdtar that enable or disable reading and/or writing of: Access Control Lists (--acls, --no-acls) Extended file flags (--fflags, --no-fflags) Extended attributes (--xattrs, --no-xattrs) Mac OS X metadata (Mac OS X only) (--mac-metadata, --no-mac-metadata) MFC after: 2 weeks Notes: svn path=/head/; revision=314571
* MFV r307859:Martin Matuska2016-10-241-1/+1
| | | | | | | Update libarchive to 3.2.2 Notes: svn path=/head/; revision=307861
* MFV r302003,r302037,r302038,r302056:Martin Matuska2016-06-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update libarchive to 3.2.1 (bugfix and security fix release) List of vendor fixes: - fix exploitable heap overflow vulnerability in Rar decompression (vendor issue 719, CVE-2016-4302, TALOS-2016-0154) - fix exploitable stack based buffer overflow vulnebarility in mtree parse_device functionality (vendor PR 715, CVE-2016-4301, TALOS-2016-0153) - fix exploitable heap overflow vulnerability in 7-zip read_SubStreamsInfo (vendor issue 718, CVE-2016-4300, TALOS-2016-152) - fix integer overflow when computing location of volume descriptor (vendor issue 717) - fix buffer overflow when reading a crafred rar archive (vendor issue 521) - fix possible buffer overflow when reading ISO9660 archives on machines where sizeof(int) < sizeof(size_t) (vendor issue 711) - tar and cpio should fail if an input file named on the command line is missing (vendor issue 708) - fix incorrect writing of gnutar filenames that are exactly 512 bytes long (vendor issue 682) - allow tests to be run from paths that are equal or longer than 128 characters (vendor issue 657) - add memory allocation errors in archive_entry_xattr.c (vendor PR 603) - remove dead code in archive_entry_xattr_add_entry() (vendor PR 716) - fix broken decryption of ZIP files (vendor issue 553) - manpage style, typo and description fixes Post-3.2.1 vendor fixes: - fix typo in cpio version reporting (Vendor PR 725, 726) - fix argument range of ctype functions in libarchive_fe/passphrase.c - fix ctype use and avoid empty loop bodies in WARC reader MFC after: 1 week Security: CVE-2016-4300, CVE-2016-4301, CVE-2016-4302 Approved by: re (kib) Notes: svn path=/head/; revision=302075
* MFV r299425:Martin Matuska2016-05-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update libarchive to 3.2.0 New features: - new bsdcat command-line utility - LZ4 compression (in src only via external utility from ports) - Warc format support - 'Raw' format writer - Zip: Support archives >4GB, entries >4GB - Zip: Support encrypting and decrypting entries - Zip: Support experimental streaming extension - Identify encrypted entries in several formats - New --clear-nochange-flags option to bsdtar tries to remove noschg and similar flags before deleting files - New --ignore-zeros option to bsdtar to handle concatenated tar archives - Use multi-threaded LZMA decompression if liblzma supports it - Expose version info for libraries used by libarchive Patched files (fixed compiler warnings): contrib/libarchive/cat/bsdcat.c (vendor PR #702) contrib/libarchive/cat/bsdcat.h (vendor PR #702) contrib/libarchive/libarchive/archive_read_support_format_mtree.c (PR #701) contrib/libarchive/libarchive_fe/err.c (vendor PR #703) MFC after: 1 month Relnotes: yes Notes: svn path=/head/; revision=299529
* Don't override LIB*DIR variables from src.libnames.mk.Bryan Drewery2015-12-011-6/+6
| | | | | | | | | | | In some cases switch to the LIB*SRCDIR value. These recently were defined in r291327 and r291619. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291620
* Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in toEnji Cooper2015-10-121-7/+3
| | | | | | | | | | | | | | | | | | | | | the FreeBSD test suite functional_test.sh was ported from bin/sh/tests/functional_test.sh, as a small wrapper around libarchive_test, bsdcpio_test, and bsdtar_test provided by upstream. A handful of testcases in lib/libarchive/tests have been disabled as they were failing when run with kyua test (see BROKEN_TESTS in lib/libarchive/tests/Makefile) As a sidenote: this removes the check/test targets from the Makefiles as they don't match the pattern used in the rest of the FreeBSD test suite. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289195
* Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-9/+1
| | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* MFV r248590,248594:Martin Matuska2013-03-221-1/+1
| | | | | | | | | | | | | | Update libarchive to 3.1.2 Some of new features: - support for lrzip and grzip compression - support for writing tar v7 format - b64encode and uuencode filters - support for __MACOSX directory in Zip archives - support for lzop compresion (external utility) Notes: svn path=/head/; revision=248616
* Update libarchive to 3.0.4Martin Matuska2012-07-281-2/+2
| | | | Notes: svn path=/head/; revision=238856
* Update libarchive to 3.0.3Martin Matuska2012-02-251-2/+7
| | | | | | | | | | | | | | | | | Some of new features: - New readers: RAR, LHA/LZH, CAB reader, 7-Zip - New writers: ISO9660, XAR - Improvements to many formats, especially including ISO9660 and Zip - Stackable write filters to write, e.g., tar.gz.uu in a single pass - Exploit seekable input; new "seekable" Zip reader can exploit the Zip Central Directory when it's available; the old "streamable" Zip reader is still fully supported for cases where seeking is not possible. Full release notes available at: https://github.com/libarchive/libarchive/wiki/ReleaseNotes Notes: svn path=/head/; revision=232153
* Use contrib sources for building libarchive, tar and cpio.Martin Matuska2011-12-221-5/+11
| | | | | | | | | Make "make test" fully operational. MFC after: 2 weeks Notes: svn path=/head/; revision=228797
* Update libarchive, tar and cpio to version 2.8.5Martin Matuska2011-12-201-1/+1
| | | | | | | | | | | | | The following additional vendor revisions are applied: Revision 3740: Use archive_clear_error() to clear the error markers. Obtained from: http://code.google.com/p/libarchive MFC after: 2 weeks Notes: svn path=/head/; revision=228745
* Correctly link bsdcpio and bsdtar against libmd and libcrpytoMartin Matuska2011-08-011-2/+5
| | | | | | | | | | | by applying the change from r221472 (libarchive). Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=224566
* Update bsdcpio to 2.8.4Martin Matuska2011-07-171-4/+11
| | | | | | | | | | Use common code from lib/libarchive/libarchive_fe Approved by: kientzle MFC after: 2 weeks Notes: svn path=/head/; revision=224154
* Enable liblzma support in libarchiveMartin Matuska2010-05-101-2/+2
| | | | | | | | | | | Adjust dependencies for programs using libarchive Add xz and linkage against liblzma to rescue system Approved by: kientzle, delphij (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=207849
* bsdcpio 2.8.3Tim Kientzle2010-05-081-2/+2
| | | | Notes: svn path=/head/; revision=207792
* Remove GNU cpio after fix of CVE-2010-0624.Xin LI2010-03-261-2/+0
| | | | | | | | | | | | | | | | Note that this is actually a no-op for most users, as this GNU cpio was broken on -HEAD and 8-STABLE since last March until the recent fix. FreeBSD 8.0+ uses BSD cpio by default and the code is being actively maintained. Blessed by: kientzle With hat: secteam MFC after: 3 days Notes: svn path=/head/; revision=205702
* Fixed dependencies (make checkdpadd).Ruslan Ermilov2010-02-251-2/+3
| | | | Notes: svn path=/head/; revision=204329
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* When compiled for the release crunches, be a bitTim Kientzle2009-04-191-0/+5
| | | | | | | | | | | | more selective about what libarchive features we pull in: * No compression support * Only cpio and ustar writing * Only cpio and tar/pax readers This reduces a statically linked, stripped binary from 900k to 680k and completely eliminates the dependency on libcrypto. Notes: svn path=/head/; revision=191262
* Make -lcrypto usage dependent on whether or not we're building with OpenSSL.Tim Kientzle2009-04-181-1/+4
| | | | Notes: svn path=/head/; revision=191240
* Merge from libarchive.googlecode.com:Tim Kientzle2009-04-171-2/+2
| | | | | | | | | | | * Lots of new tests. * New -n / --numeric-uid-gid option * More sanity-checking of arguments * Various Windows portability improvements * Sync up version number to 2.7.0 Notes: svn path=/head/; revision=191192
* Custom command line parser for cpio; this is a little moreTim Kientzle2008-12-061-1/+1
| | | | | | | | code but should be a lot fewer cross-platform compatibility headaches. Notes: svn path=/head/; revision=185685
* bsdcpio is now at version 1.0.0.Tim Kientzle2008-07-051-1/+1
| | | | Notes: svn path=/head/; revision=180280
* Include bsd.own.mk to pick up the definition of MK_GNU_CPIODoug Barton2008-06-161-0/+2
| | | | Notes: svn path=/head/; revision=179816
* 1. Make the BSD version of cpio the default [1]Doug Barton2008-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | a. The BSD version will be built and installed unless WITHOUT_BSD_CPIO is defined. b. The GNU version will not be built or installed unless WITH_GNU_CPIO is defined. If this is defined, the symlink in /usr/bin will be to the GNU version whether the BSD version is present or not. When these changes are MFCed the defaults should be flipped. 2. Add a knob to disable the building of GNU grep. This will make it easier for those that want to test the BSD version in the ports. Approved by: kientzle [1] Notes: svn path=/head/; revision=179813
* bsdcpio is always installed as 'bsdcpio', symlink it to 'cpio'Tim Kientzle2008-05-261-1/+4
| | | | | | | only if WITH_BSDCPIO is defined. Notes: svn path=/head/; revision=179324
* Initial commit of bsdcpio 0.9.11b.Tim Kientzle2008-05-261-0/+19
A new implementation of cpio that uses libarchive as it's back-end archiving/dearchiving infrastructure. Includes test harness; "make check" in the bsdcpio directory to build and run the test harness. Notes: svn path=/head/; revision=179323