History log of /freebsd-current/usr.bin/tar/Makefile
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 2ff66a91 29-Dec-2020 Xin LI <delphij@FreeBSD.org>

bsdcat,cpio,tar: derive version string from archive.h

Reviewed by: mm
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D27823


# 70a567c2 27-Dec-2020 Martin Matuska <mm@FreeBSD.org>

bsdcat,cpio,tar: Bump version number to 3.5.1

Matches import of libarchive 3.5.1


# a7b5a3d48 05-Sep-2019 Emmanuel Vadot <manu@FreeBSD.org>

pkgbase: Put a lot of binaries and lib in FreeBSD-runtime

All of them are needed to be able to boot to single user and be able
to repair a existing FreeBSD installation so put them directly into
FreeBSD-runtime.

Reviewed by: bapt, gjb
Differential Revision: https://reviews.freebsd.org/D21503


# d511b20a 02-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

Add HAS_TESTS to all Makefiles that are currently using the
`SUBDIR.${MK_TESTS}+= tests` idiom.

This is a follow up to r321912.


# 4b330699 02-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

Convert traditional ${MK_TESTS} conditional idiom for including test
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


# a35f04fb 12-Mar-2017 Warner Losh <imp@FreeBSD.org>

Adopt SRCTOP in usr.bin

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)


# 3c89d6b0 01-Dec-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Don't override LIB*DIR variables from src.libnames.mk.

In some cases switch to the LIB*SRCDIR value.

These recently were defined in r291327 and r291619.

Sponsored by: EMC / Isilon Storage Division


# 59e2ff55 12-Oct-2015 Enji Cooper <ngie@FreeBSD.org>

Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in to
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


# 68930541 21-May-2015 Warner Losh <imp@FreeBSD.org>

Remove stray DEBUG_FLAGS=-g that snuck in with r184761.


# 3e11bd9e 25-Nov-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Convert to usr.bin/ to LIBADD
Reduce overlinking


# c6063d0d 05-May-2014 Warner Losh <imp@FreeBSD.org>

Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.


# 45d3b226 22-Dec-2011 Martin Matuska <mm@FreeBSD.org>

Use contrib sources for building libarchive, tar and cpio.
Make "make test" fully operational.

MFC after: 2 weeks


# f6ccfb42 20-Dec-2011 Martin Matuska <mm@FreeBSD.org>

Update libarchive, tar and cpio to version 2.8.5

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


# 83c03ed2 01-Aug-2011 Martin Matuska <mm@FreeBSD.org>

Correctly link bsdcpio and bsdtar against libmd and libcrpyto
by applying the change from r221472 (libarchive).

Reviewed by: kientzle
Approved by: re (kib)
MFC after: 3 days


# 2ad1419f 17-Jul-2011 Martin Matuska <mm@FreeBSD.org>

Update bsdtar to 2.8.4
Use common code from lib/libarchive/libarchive_fe

Approved by: kientzle
MFC after: 2 weeks


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 7fbeb03e 10-May-2010 Martin Matuska <mm@FreeBSD.org>

Enable liblzma support in libarchive
Adjust dependencies for programs using libarchive
Add xz and linkage against liblzma to rescue system

Approved by: kientzle, delphij (mentor)
MFC after: 2 weeks


# 9122b590 08-May-2010 Tim Kientzle <kientzle@FreeBSD.org>

FreeBSD is now using bsdtar 2.8.3.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# bee10047 25-Feb-2010 Ruslan Ermilov <ru@FreeBSD.org>

Fixed dependencies (make checkdpadd).


# 3b7dbff3 06-Feb-2010 Tim Kientzle <kientzle@FreeBSD.org>

Merge a bunch of refactoring from Joerg Sonnenberger to
isolate common code used by tar and cpio (and useful to other
libarchive clients). The functions here are prefixed with
"lafe" (libarchive front-end) to indicate their use.


# 12d4db7c 06-Feb-2010 Tim Kientzle <kientzle@FreeBSD.org>

Refactor the siginfo/sigusr1 handling. The read/write reporting
is sufficiently different that it was simpler to just put separate
reporting functions into read.c and write.c rather than try to have
a single all-purpose reporting function.
Switch to a custom function for converting int64_t to a string; in
the portable version, this saves a lot of configuration headaches
trying to decipher the platform printf().


# 2be33632 06-Feb-2010 Tim Kientzle <kientzle@FreeBSD.org>

Reformat the Makefile slightly.


# ae41a0ad 06-Feb-2010 Tim Kientzle <kientzle@FreeBSD.org>

Diff reduction compared to portable bsdtar 2.8: Move the
program name into a global, which eliminates an extra
argument from a lot of places.


# b7946da9 02-Jan-2010 Ed Schouten <ed@FreeBSD.org>

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


# b61d9eab 07-Sep-2009 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Make sure to use up-to-date libarchive header files from source tree when
compiling tar and not the ones from /usr/include/.

Reviewed by: kientzle
Approved by: kientzle


# 79cf3de4 18-Apr-2009 Tim Kientzle <kientzle@FreeBSD.org>

Make -lcrypto usage dependent on whether or not we're building with OpenSSL.


# 5191e7b5 16-Apr-2009 Tim Kientzle <kientzle@FreeBSD.org>

Merge remaining changes from libarchive.googlecode.com:
* Add xz and lzma compression options
* Rename --format-options to simply --options
* Add --same-owner for GNU tar compat
* Add -lmd and -lcrypto to fix link
* Documentation


# 05fa9d9f 07-Mar-2009 Tim Kientzle <kientzle@FreeBSD.org>

Update version to 2.6.901a to indicate this is synced up with r745 of
libarchive.googlecode.com (except for the lzma/xz support).


# ac90bcde 07-Mar-2009 Tim Kientzle <kientzle@FreeBSD.org>

Merge r687-689,691,693-701,720 from libarchive.googlecode.com:
Translate getdate.y into C for portability. Make the get_date()
function easier to test as well:
* Have it accept a time_t "now" to use as a reference so that test
code can verify relative time specifications against known starting
points.
* Set up default date after parsing the string so that we
can use the specified timezone (if any) instead of the local
default. Otherwise, local DST makes it almost impossible to
reliably test time specifications such as "sunday UTC"


# 2c2029ad 06-Dec-2008 Tim Kientzle <kientzle@FreeBSD.org>

bsdtar is synced up with 2.5.903a


# 85ae3122 07-Nov-2008 Tim Kientzle <kientzle@FreeBSD.org>

New command-line parser for bsdtar.

This replaces the getopt()/getopt_long() wrapper, the old-style
argument rewriter and the associated configuration glue with a more
straightforward custom command parser. In particular, this ensures
that bsdtar will have consistent option parsing on every platform,
regardless of whether the platform supports getopt_long().

MFC after: 30 days


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# ca926f6f 21-Aug-2008 Tim Kientzle <kientzle@FreeBSD.org>

Don't clean before running tests.


# 6481fd43 04-Jul-2008 Tim Kientzle <kientzle@FreeBSD.org>

FreeBSD-CURRENT bsdtar is synched up with libarchive-portable 2.5.5.


# eb360319 26-May-2008 Tim Kientzle <kientzle@FreeBSD.org>

MFp4: bsdtar 2.5.4b

In addition to a number of bug fixes and minor changes:
* --numeric-owner (ignore user/group names on create and extract)
* -S (sparsify files on extraction)
* -s (regex filename substitutions)
* Use new libarchive 'linkify' to get correct hardlink handling for
both old and new cpio formats
* Rework 'copy' test to be insensitive to readdir() filename ordering

Most of the credit for this work goes to Joerg Sonnenberger, who
has been duplicating features from NetBSD's 'pax' program.


# 06a047f0 18-May-2008 Colin Percival <cperciva@FreeBSD.org>

Add SIGINFO (and for portability to SIGINFO-lacking systems, SIGUSR1)
handling to bsdtar. When writing archives (including copying via the
@archive directive) a line is output to stderr indicating what is being
done (adding or copying), the path, and how far through the file we are;
extracting currently does not report progress within each file, but
this is likely to happen eventually.

Discussed with: kientzle
Obtained from: tarsnap


# 3b56813e 18-Mar-2008 Tim Kientzle <kientzle@FreeBSD.org>

Fix --fast-read by decrementing the remaining patterns to be matched,
instead of incrementing.

Pointy hat: me
Thanks to: Tomasz Przygoda
MFC after: 3 days


# d6711375 01-Jan-2008 Tim Kientzle <kientzle@FreeBSD.org>

A couple of miscellaneous fixes:
* prototypes for optarg/optind on platforms that don't already have them
* Disambiguate version number macros
* Remove unnecessary PACKAGE_NAME macro
* Hook for forthcoming bsdtar test suite
* Sync version number up with the portable distribution


# 7061a01b 19-Jul-2007 Tim Kientzle <kientzle@FreeBSD.org>

Don't exit immediately on libarchive warnings, just
set the delayed return value and keep going.

Approved by: re (hrs)
MFC after: 7 days


# a38d1d4c 28-May-2007 Tim Kientzle <kientzle@FreeBSD.org>

bsdtar 2.2.3:
* Implement --use-compress-program using new libarchive feature.
* Minor portability improvement by adjusting casts used to
print out uids, gids, and device numbers.

Thanks to: Joerg Sonnenberger for the --use-compress-program implementation.
MFC after: 15 days


# f6df4910 11-Apr-2007 Tim Kientzle <kientzle@FreeBSD.org>

Make it easier to support more platforms.
Thanks to: Joerg Sonnenberger for pointing out the need and the technique.


# 033583fc 23-Mar-2007 Tim Kientzle <kientzle@FreeBSD.org>

Issue a warning if there's a non-zero exit value.


# 45d4d7ac 11-Mar-2007 Tim Kientzle <kientzle@FreeBSD.org>

bsdtar 2.0.23:
* New test scripts exercise some basic functionality
* Most header inclusions are now protected (portability)
* read.c now relies on security checks in libarchive instead
of trying to do its own (optimization)
* -p now enabled by default for root, add --no-same-permissions
to disable it
* Comments, minor style fixes.


# b8c95d3f 02-Apr-2006 Tim Kientzle <kientzle@FreeBSD.org>

If you see a broken symlink, don't try to follow it,
just archive it as a symlink, even if -h was specified.

Thanks to: Jin Guojun
PR: bin/95175
MFC After: 1 week


# 6b422e20 21-Mar-2006 Tim Kientzle <kientzle@FreeBSD.org>

Extended attribute support on write for Linux; FreeBSD hooks are
forthcoming. This commit also has a number of style(9) fixes and
minor corrections so the code works better with the build system being
used for non-FreeBSD builds.

Many thanks to: Jaakko Heinonen, who proposed a mechanism for extended
attribute support and implemented both the machine-independent portion
and the Linux-specific portion.


# e11aae44 07-Mar-2006 Tim Kientzle <kientzle@FreeBSD.org>

Remove configure.ac.in and the 'distfile' target from
the FreeBSD makefile. This is a step towards cleaning
out the non-FreeBSD bits from the FreeBSD source tree.


# cf220b45 08-May-2005 Tim Kientzle <kientzle@FreeBSD.org>

Clarify some error messages.


# 22ede763 23-Apr-2005 Tim Kientzle <kientzle@FreeBSD.org>

bsdtar now uses the "tree" package instead of "fts" for walking
directory heirarchies.


# 6b148928 23-Apr-2005 Tim Kientzle <kientzle@FreeBSD.org>

Correct autoconf/automake invocation to work with devel/gnu-auto* from
ports.

Thanks to: Dag-Erling Sm?rgrav (des@)


# fec57dbc 17-Apr-2005 Tim Kientzle <kientzle@FreeBSD.org>

Update "make distfile" to use newest automake/autoconf from ports.

Thanks to: Juergen Lock


# e90e8e4b 17-Apr-2005 Tim Kientzle <kientzle@FreeBSD.org>

Support path-rewriting options (including --strip-components) for both
extraction and creation. While I'm here, fix a bug reported by Garrett
Wollman: when stripping the leading '/' from the path "/", don't produce
an entry with an empty name; produce "." instead.


# 1ca47929 20-Mar-2005 Tim Kientzle <kientzle@FreeBSD.org>

Deorbit gtar, step 1: Remove WITH_GTAR knob.
"tar" is now always a synonym for "bsdtar".
People who need gtar can access it as "gtar."

Approved by: No objections on arch@


# bab7b083 13-Mar-2005 Tim Kientzle <kientzle@FreeBSD.org>

Re-unbreak the distfile target.

Also, reduce the WARNS level to 5 since different build environments
end up using different Yacc skeletons. The BSD one does not
predeclare yyparse, the FSF one does, so it's not really possible to
consistently enforce both -Wmissing-prototypes and -Wredundant-decls.


# 6f55523d 13-Mar-2005 Tim Kientzle <kientzle@FreeBSD.org>

"make depend" with .y files is trickier than it looks. <sigh>


# d14c1502 13-Mar-2005 Tim Kientzle <kientzle@FreeBSD.org>

Add --newer-ctime, --newer-mtime, --newer-ctime-than, and --newer-mtime-than
switches to support selecting files by time of modification.

Special thanks to: Steven M. Bellovin, Rich $alz, and Jim Berets,
authors of the public-domain getdate.y date-parsing code.


# 62a2ad1b 12-Mar-2005 Tim Kientzle <kientzle@FreeBSD.org>

Add --strip-components option, per bin/77666.

Thanks to: Sangwoo Shim


# e69591dd 21-Dec-2004 Tim Kientzle <kientzle@FreeBSD.org>

Portability: the included fts.c should now
compile on many non-FreeBSD systems, including
Linux, Solaris, Darwin, etc.

Thanks to: many people who pointed out the same portability problem


# 2f841e1a 12-Nov-2004 Ruslan Ermilov <ru@FreeBSD.org>

Use a relative symlinking so that "tar" also works in /stand.


# f52188fc 04-Nov-2004 Tim Kientzle <kientzle@FreeBSD.org>

Correct error handling on failed writes
to the archive.


# b757c825 08-Aug-2004 Tim Kientzle <kientzle@FreeBSD.org>

gtar uses -F for another purpose, so bsdtar no longer treats it as a
synonym for --format. Update the man page to reflect this. While
I'm here, change the man page to document "tar" rather than "bsdtar,"
update some comments about -l compatibility and fix a few grammar nits.


# 8095e9d8 07-Aug-2004 Tim Kientzle <kientzle@FreeBSD.org>

Add --totals option. Unlike gtar, this reports the bytes actually
written to the archive, not the ones written to the compressor.
For uncompressed archives, these numbers are the same, of course.


# 52329060 06-Aug-2004 Tim Kientzle <kientzle@FreeBSD.org>

Add "make distfile" capabilities to bsdtar, including informational
COPYING file and some conditional compilation cleanups.


# 556d6e60 25-Jul-2004 Tim Kientzle <kientzle@FreeBSD.org>

Add a --version option to bsdtar that prints the versions of
both bsdtar and libarchive. Of course, this requires that bsdtar
have a version number. Let's call this 1.00, shall we? ;-)


# 16847ae6 17-Jul-2004 Tim Kientzle <kientzle@FreeBSD.org>

Make bsdtar the default system tar. This makes /usr/bin/tar a symlink
pointing to /usr/bin/bsdtar by default. To make it point to /usr/bin/gtar,
you can define WITH_GTAR.


# 5251608d 03-Jun-2004 Tim Kientzle <kientzle@FreeBSD.org>

Pointy hat: sticky bit 't' or 'T' is shown over IXOTH bit, not IXGRP. <sigh>


# 97c4c530 19-Apr-2004 Tim Kientzle <kientzle@FreeBSD.org>

Allow brave souls to install bsdtar as the
default "tar" command by defining WITH_BSDTAR.

Note: "gtar" and "bsdtar" commands both exist regardless.


# 5316058f 12-Apr-2004 Tim Kientzle <kientzle@FreeBSD.org>

Style fixes

Pointed out by: bde


# 4cbbc3a3 11-Apr-2004 Tim Kientzle <kientzle@FreeBSD.org>

Add DPADD to Makefile (thanks to Andrey for pointing this out).

Generally clean up Makefile, remove dmalloc references from source
(there are better ways to do this than pollute the FreeBSD src tree).


# d7fe3b4f 05-Apr-2004 Tim Kientzle <kientzle@FreeBSD.org>

Initial commit for bsdtar.