2019-02-24 16:18:45 +01:00
|
|
|
# $NetBSD: Makefile,v 1.95 2019/02/24 15:18:45 wiz Exp $
|
1999-09-18 16:49:08 +02:00
|
|
|
|
Update gtar to 1.28. Add a Makefile.common and use it.
Use official man page, now that there is one.
version 1.28, 2014-07-28
* New checkpoint action: totals
The --checkpoint-action=totals option instructs tar to output the
total number of bytes transferred at each checkpoint.
* Extended checkpoint format specification.
New conversion specifiers are implemented. Some of them take
optional arguments, supplied in curly braces between the percent
sign and the specifier letter.
%d - Number of seconds since tar started.
%{r,w,d}T - I/O totals; optional arguments supply prefixes
to be used before number of bytes read, written and
deleted, correspondingly.
%{FMT}t - Current local time using FMT as strftime(3) format.
If {FMT} is omitted, use %c.
%{N}* - Pad output with spaces to the Nth column, or to the
current screen width, if {N} is not given.
%c - A shortcut for "%{%Y-%m-%d %H:%M:%S}t: %ds, %{read,wrote}T%*\r"
* New option --one-top-level
The option --one-top-level tells tar to extract all files into a
subdirectory named by the base name of the archive (minus standard
compression suffixes recognizable by --auto-compress). When used with
an argument, as in --one-top-level=DIR, the files are extracted into the
supplied DIRectory. This ensures that no archive members are
extracted outside of the specified directory, even if the archive is
crafted so as to put them elsewhere.
* New option --sort
The --sort=ORDER option instructs tar to sort directory entries
according to ORDER. It takes effect when creating archives.
Available ORDERs are: none (the default), name and inode. The
latter may be absent, if the underlying system does not provide
the necessary information.
Using --sort=name ensures the member ordering in the created archive
is uniform and reproducible. Using --sort=inode reduces the number
of disk seeks made when creating the archive and thus can considerably
speed up archivation.
* New exclusion options
--exclude-ignore=FILE Before dumping a directory check if it
contains FILE, and if so read exclude
patterns for this directory from FILE.
--exclude-ignore-recursive=FILE
Same as above, but the exclusion patterns
read from FILE remain in effect for any
subdirectory, recursively.
--exclude-vcs-ignores Read exclude tags from VCS ignore files,
where such files exist. Supported VCS's
are: CVS, Git, Bazaar, Mercurial.
* Tar refuses to read input from and write output to a tty device.
* Manpages
This release includes official tar(1) and rmt(8) manpages.
Distribution maintainers are kindly asked to use these instead of the
home-made pages they have been providing so far.
2014-08-17 18:28:18 +02:00
|
|
|
.include "../../archivers/gtar/Makefile.common"
|
|
|
|
|
2011-05-11 09:49:58 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/tar/gtar-base/}
|
2001-02-16 14:15:24 +01:00
|
|
|
COMMENT= The GNU tape archiver with remote magnetic tape support
|
Update to 1.22:
version 1.22 - Sergey Poznyakoff, 2009-03-05
* Support for xz compression
Tar uses xz for compression if one of the following conditions is met:
1. The option --xz or -J (see below) is used.
2. The xz binary is set as compressor using --use-compress-program option.
3. The file name of the archive being created ends in `.xz' and
auto-compress option (-a) is used.
Xz is used for decompression if one of the following conditions is met:
1. The option --xz or -J is used.
2. The xz binary is set as compressor using --use-compress-program option.
3. The file is recognized as xz compressed stream data.
* Short option -J reassigned as a short equivalent of --xz
* New option -I
The -I option is assigned as a short equivalent for
--use-compress-program.
* The --no-recursive option works in incremental mode.
version 1.21 - Sergey Poznyakoff, 2008-12-27
* New short option -J
A shortcut for --lzma.
* New option --lzop
* New option --no-auto-compress
Cancels the effect of previous --auto-compress (-a) option.
* New option --no-null
Cancels the effect of previous --null option.
* Compressed format recognition
If tar is unable to determine archive compression format, it falls
back to using archive suffix to determine it.
* VCS support.
Using --exclude-vcs handles also files used internally by Bazaar,
Mercurial and Darcs.
* Transformation scope flags
Name transformation expressions understand additional flags that
control type of archive members affected by them. The flags are:
- r
Apply transformation to regular archive members.
- s
Apply transformation to symbolic link targets.
- h
Apply transformation to hard link targets.
Corresponding upper-case letters negate the meaning, so that
`H' means ``do not apply transformation to hard link targets.''
The scope flags are listed in the third part of an `s' expression,
e.g.:
tar --transform 's|^|/usr/local/|S'
Default is `rsh', which means that transformations are applied to
both regular archive members and to the targets of symbolic and hard
links. If several transform expressions are used, the default flags
can be changed using `flags=' statement before the expressions, e.g.:
tar --transform 'flags=S;s|^|/usr/local/|S'
* Bugfixes
** The --null option disabled handling of tar options in list files. This
is fixed.
** Fixed record size autodetection. If detected record size differs from
the expected value (either default, or set on the command line), tar
always prints a warning if verbosity level is set to 1 or greater,
i.e. if either -t or -v option is given.
2009-08-16 15:53:32 +02:00
|
|
|
LICENSE= gnu-gpl-v3
|
1999-09-18 16:49:08 +02:00
|
|
|
|
2006-03-20 05:15:42 +01:00
|
|
|
CONFLICTS= gcpio-[0-9]*
|
|
|
|
|
2011-05-11 09:49:58 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2006-04-13 20:23:29 +02:00
|
|
|
USE_TOOLS+= msgfmt
|
2011-05-11 09:49:58 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2012-12-31 01:25:56 +01:00
|
|
|
INSTALLATION_DIRS= ${PKGMANDIR}/man1
|
|
|
|
INSTALLATION_DIRS+= ${PKGGNUDIR}bin ${PKGGNUDIR}libexec
|
|
|
|
INSTALLATION_DIRS+= ${PKGGNUDIR}${PKGMANDIR}/man1
|
2002-11-30 12:16:17 +01:00
|
|
|
|
1999-09-18 16:49:08 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2012-05-30 00:52:04 +02:00
|
|
|
CONFIGURE_ARGS+= --program-prefix=g
|
2004-04-05 20:38:43 +02:00
|
|
|
|
Update gtar packages to 1.14:
XXX: man page not updated (didn't find new version of suse
gtar man page which we're using in the package)
version 1.14 - Sergey Poznyakoff, 2004-05-11
* Added support for POSIX.1-2001 and ustar archive formats.
* New option --format allows to select the output archive format
* The default output format can be selected at configuration time
by presetting the environment variable DEFAULT_ARCHIVE_FORMAT.
Allowed values are GNU, V7, OLDGNU and POSIX.
* New option --strip-path allows to cut off a given number of
path elements from the name of the file being extracted.
* New options --index-file, --no-overwrite-dir. The --overwrite-dir
option is now the default; use --no-overwrite-dir if you prefer
the previous default behavior.
* The semantics of -o option is changed. When extracting, it
does the same as --no-same-owner GNU tar option. This is compatible
with UNIX98 tar. Otherwise, its effect is the same as that of
--old-archive option. This latter is deprecated and will be removed
in future.
* New option --check-links prints a message if not all links are dumped
for a file being archived. This corresponds to the UNIX98 -l option.
The current semantics of the -l option is retained for compatibility
with previous releases, however such usage is strongly deprecated as
the option will change to its UNIX98 semantics in the future releases.
* New option --occurrence[=N] can be used in conjunction with one of
the subcommands --delete, --diff, --extract or --list when a list of
files is given either on the command line or via -T option. This
option instructs tar to process only the Nth occurrence of each named
file. N defaults to 1, so `tar -x -f archive --occurrence filename'
extracts the first occurrence of `filename' from `archive'
and terminates without scanning to the end of the archive.
* New option --pax-option allows to control the handling of POSIX
keywords in `pax' extended headers. It is equivalent to `pax'
-o option.
* --incremental and --listed-incremental options work correctly on
individual files, as well as on directories.
* New scripts: backup (replaces old level-0 and level-1) and restore.
The scripts are compiled and installed if --enable-backup-scripts
option is given to configure.
* By default tar searches "rmt" utility in "$prefix/libexec/rmt",
which is consistent with the location where the version of "rmt"
included in the package is installed. Previous versions of tar
used "/etc/rmt". To install "rmt" to its traditional location,
run configure with option --libexecdir=/etc. Otherwise, if you
already have rmt installed and wish to use it, instead of the
shipped in version, set the variable DEFAULT_RMT_COMMAND to
the full path name of the utility, e.g. ./configure
DEFAULT_RMT_COMMAND=/etc/rmt.
Notice also that the full path name of the "rmt" utility to
use can be set at runtime, by giving option --rmt-command to
tar.
* Removed obsolete command line options:
** --absolute-paths superseded by --absolute-names
** --block-compress is not needed any longer
** --block-size superseded by --blocking-factor
** --modification-time superseded by --touch
** --read-full-blocks superseded by --read-full-records
** --record-number superseded by --block-number
** --version-control superseded by --backup
* New message translations fi (Finnish), gl (Galician), hr (Croatian),
hu (Hungarian), ms (Malaysian), nb (Norwegian), ro (Romanian), sk
(Slovak), zh_CN (Chinese simplified), zh_TW (Chinese traditional).
The code 'no' for Norwegian (Bokmål) has been withdrawn; use 'nb' instead.
2004-09-27 18:12:04 +02:00
|
|
|
# lie to configure about gettext -- it does not need GNU gettext
|
|
|
|
CONFIGURE_ENV+= gt_cv_func_gnugettext2_libintl=yes
|
2010-12-15 21:37:38 +01:00
|
|
|
# allow configure to run as root
|
|
|
|
CONFIGURE_ENV+= FORCE_UNSAFE_CONFIGURE=1
|
|
|
|
|
2014-07-18 13:12:41 +02:00
|
|
|
.if ${OS_VARIANT} == "SCOOSR5"
|
|
|
|
# SCO OpenServer 5.0.7/3.2 has strtoimax in inttypes.h, but not in library.
|
|
|
|
CONFIGURE_ENV+= gl_cv_have_raw_decl_strtoimax=no
|
|
|
|
CONFIGURE_ENV+= ac_cv_have_decl_strtoimax=no
|
|
|
|
LDFLAGS.SCO_SV+= -lsocket
|
|
|
|
.endif
|
|
|
|
|
2019-02-24 16:18:45 +01:00
|
|
|
PLIST_VARS+= rmt
|
2002-12-22 02:34:38 +01:00
|
|
|
|
2004-06-03 01:20:55 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2005-01-16 05:44:50 +01:00
|
|
|
# don't include rmt if gtar won't build it
|
2015-04-23 11:15:19 +02:00
|
|
|
.if ${OPSYS} != "Interix" && ${OPSYS} != "Darwin" && ${OS_VARIANT} != "SCOOSR5" && ${OPSYS} != "AIX"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.rmt= yes
|
2005-01-16 05:44:50 +01:00
|
|
|
.endif
|
|
|
|
|
2008-05-18 03:48:09 +02:00
|
|
|
# XXX see similar hack in coreutils.
|
|
|
|
.if ${OPSYS} != "Linux"
|
|
|
|
CONFIGURE_ENV+= gt_cv_func_gnugettext3_libintl=yes
|
|
|
|
.endif
|
|
|
|
|
2016-02-25 10:28:36 +01:00
|
|
|
CPPFLAGS.MirBSD+= -Dstrtoimax=strtoll -Dstrtoumax=strtoull
|
2014-03-18 19:11:26 +01:00
|
|
|
|
2019-01-17 17:43:36 +01:00
|
|
|
# From sigwait(3):
|
|
|
|
CFLAGS.OpenBSD+= -pthread
|
|
|
|
LDFLAGS.OpenBSD+= -pthread
|
|
|
|
|
2015-05-03 16:32:11 +02:00
|
|
|
#bug 20453 in bug-gzip list, passed onto gnulib
|
2016-02-25 10:28:36 +01:00
|
|
|
CONFIGURE_ENV.AIX+= ac_cv_header_wctype_h=no
|
2015-05-03 16:32:11 +02:00
|
|
|
|
2013-11-01 13:47:39 +01:00
|
|
|
SYMLINKS= bin/gtar ${PKGGNUDIR}bin/tar \
|
|
|
|
${PKGMANDIR}/man1/gtar.1 ${PKGGNUDIR}${PKGMANDIR}/man1/tar.1
|
|
|
|
|
|
|
|
.if defined(PLIST.rmt) && ${PLIST.rmt} == "yes"
|
|
|
|
SYMLINKS+= libexec/grmt ${PKGGNUDIR}libexec/rmt
|
|
|
|
.endif
|
2012-06-01 18:43:14 +02:00
|
|
|
|
1999-09-18 16:49:08 +02:00
|
|
|
post-install:
|
Update gtar to 1.28. Add a Makefile.common and use it.
Use official man page, now that there is one.
version 1.28, 2014-07-28
* New checkpoint action: totals
The --checkpoint-action=totals option instructs tar to output the
total number of bytes transferred at each checkpoint.
* Extended checkpoint format specification.
New conversion specifiers are implemented. Some of them take
optional arguments, supplied in curly braces between the percent
sign and the specifier letter.
%d - Number of seconds since tar started.
%{r,w,d}T - I/O totals; optional arguments supply prefixes
to be used before number of bytes read, written and
deleted, correspondingly.
%{FMT}t - Current local time using FMT as strftime(3) format.
If {FMT} is omitted, use %c.
%{N}* - Pad output with spaces to the Nth column, or to the
current screen width, if {N} is not given.
%c - A shortcut for "%{%Y-%m-%d %H:%M:%S}t: %ds, %{read,wrote}T%*\r"
* New option --one-top-level
The option --one-top-level tells tar to extract all files into a
subdirectory named by the base name of the archive (minus standard
compression suffixes recognizable by --auto-compress). When used with
an argument, as in --one-top-level=DIR, the files are extracted into the
supplied DIRectory. This ensures that no archive members are
extracted outside of the specified directory, even if the archive is
crafted so as to put them elsewhere.
* New option --sort
The --sort=ORDER option instructs tar to sort directory entries
according to ORDER. It takes effect when creating archives.
Available ORDERs are: none (the default), name and inode. The
latter may be absent, if the underlying system does not provide
the necessary information.
Using --sort=name ensures the member ordering in the created archive
is uniform and reproducible. Using --sort=inode reduces the number
of disk seeks made when creating the archive and thus can considerably
speed up archivation.
* New exclusion options
--exclude-ignore=FILE Before dumping a directory check if it
contains FILE, and if so read exclude
patterns for this directory from FILE.
--exclude-ignore-recursive=FILE
Same as above, but the exclusion patterns
read from FILE remain in effect for any
subdirectory, recursively.
--exclude-vcs-ignores Read exclude tags from VCS ignore files,
where such files exist. Supported VCS's
are: CVS, Git, Bazaar, Mercurial.
* Tar refuses to read input from and write output to a tty device.
* Manpages
This release includes official tar(1) and rmt(8) manpages.
Distribution maintainers are kindly asked to use these instead of the
home-made pages they have been providing so far.
2014-08-17 18:28:18 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/tar.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gtar.1
|
2012-06-01 18:43:14 +02:00
|
|
|
.for o n in ${SYMLINKS}
|
|
|
|
${LN} -sf ${PREFIX}/${o} ${DESTDIR}${PREFIX}/${n}
|
|
|
|
.endfor
|
2005-01-16 05:44:50 +01:00
|
|
|
|
2004-10-03 00:40:24 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
1999-09-18 16:49:08 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|