Commit graph

58 commits

Author SHA1 Message Date
joerg
562418d4d3 Honour MANINSTALL 2012-03-04 19:50:21 +00:00
joerg
c0c745fb34 Apply patches from PR 34941 to match prototype and implementatio w.r.t
static.
2010-03-21 16:35:01 +00:00
obache
4136a5d21b Add Haiku support. patch taken from Haiku support for libarchive. 2010-01-30 08:46:20 +00:00
joerg
1f07e7d3f8 getline -> get_line 2009-08-06 13:54:03 +00:00
joerg
eac752d014 Don't depend on presence of u_int32_t, just use uint32_t. 2008-10-26 12:48:48 +00:00
dbj
43c8f0b2ee re-add support for --program-prefix and NBPAX_PROGRAM_PREFIX pkgsrc var
PR pkg/37989
2008-07-20 23:31:50 +00:00
martin
d86d72404e Drop clauses 3 and 4 from TNF licenses 2008-04-29 05:46:08 +00:00
jlam
84fa8ca684 + Remove pkgtools/pax and pkgtools/tnftp as they are no longer different
from archivers/pax and net/tnftp, respectively.  In the past, the
  pkgtools version of these packages installed into ${PKG_TOOLS_BIN},
  but this was changed in:

	pkgtools/pax/Makefile:1.15
	pkgtools/tnftp/Makefile:1.3

+ Get rid of archivers/pax/Makefile.common and net/tnftp/Makefile.common
  by merging them into their respective Makefiles.  The Makefile.common
  files existed solely for inclusion by the pkgtools versions of these
  packages, but with the removal of those packages, these files are
  now unnecessary.

+ Add full DESTDIR support to archivers/pax and net/tnftp.

+ Modify the bootstrap to build archivers/pax and net/tnftp instead of
  the pkgtools versions of these packages.
2008-03-06 04:45:58 +00:00
joerg
e9ce48a411 Merge a fix from NetBSD's src/bin/pax by tls:
Teach set_ftime about symbolic links, because it has to know: on some
Linux systems, when we build as a tool we think we have lutimes but it
doesn't work on some filesystems at runtime.  A bit ugly but effective
and without use of AC_TRY_RUN in the tool build.  Tidier (than mine)
set_ftime reorganization from christos.

Bump version to 20080110.
2008-02-07 22:27:53 +00:00
joerg
393d7edbe4 Revert pax large file support as it breaks bootstrap on various
platforms. Bump revision.
2007-11-11 16:51:27 +00:00
grant
6b3ffaad2b enable large filefile support, if applicable.
fixes tar/pax with >2gb files on 32bit Solaris.

bump PKGREVISION.
2007-10-27 11:19:04 +00:00
joerg
70e41a9263 Fix build on NetBSD. Add QNX support based on patch from Sean Boudreau. 2007-09-06 20:10:22 +00:00
joerg
1b6ca55b58 Sync config.{guess,sub} with mk/gnu-configure. 2007-03-12 00:48:28 +00:00
rillig
48d928e216 Removed extra parentheses around simple return statements, to align with
the current NetBSD version.
2007-03-08 17:18:18 +00:00
rillig
c4ffd9c017 Merged the change from NetBSD's 1.51 to 1.52:
EROFS is not a critical error in a "mkdir -p".
2007-03-08 17:11:46 +00:00
obache
fb3b243239 Define `ISTAPE' even if tape unsupported platform.
Fix build problem on such platforms like Interix.
2006-09-03 12:13:13 +00:00
christos
c53c81e372 hack for solaris automounter. 2006-02-02 19:28:25 +00:00
minskim
3f8fb63c0c Update pax to 20051108. The previous version failed to handle the -X
option, which is used in print/teTeX3-texmf.  The only difference from
the pax in src is that tar does not support the --chroot option if
fchroot(2) is not available.


Major changes and bug fixes since 20040802:

PR/18759: FUKAUMI Naoki: pax/tar dot-dot handling broken
PR/18840: Frederick Bruckman:  Fix for PR/18663 incomplete pax symlink handling
This patch makes ``--insecure'' do something. Now if ``--insecure''
is not set (the default) we do a realpath(3) in all the pathnames
that we are trying to create and if either realpath fails, or the
path is outside our working directory, we print a warning and die.
This maybe too strict and might fail on valid archives that create
symlinks and directories in the wrong order.

PR/31923: Sergey Svishchev: pax-as-tar ignores -k, overwrites existing files
Fix from Onno van der Linden

PR/30132: Juan RP: tar --chroot refuses to extract files.
fchroot() changes the effective path, so we need to call updatepath().

Apply user supplied patterns first before applying actions for -A. This way pax
behavior WRT to patterns lines up with the example in the documentation
and how other implementations do it as well since -A is a non-standard
option/behavior. Fixes items noted in PR#23776

Add an option --chroot to tar.  Causes it to chroot(".") before doing
an extract.  With -h this will cause existing absolute symlinks to be treated
as relative to the current directory.
Helps sysinst handle existing symlinks in the target system.
Remove 'L' from the usage (got spilt into 'h' and 'H' many moons ago)
Add 'S' to usage, and put into correct place in options list.

PR/27213: Greg A. Woods: pax doesn't honour SIGPIPE when listing
But always exit, not just on SIGPIPE.

Properly handle "cpio" archives where the last hardlink includes the
data of a file. This fixes PR bin/26514.

PR/20228: Simon Burge: pax has problems reading a particular cpio archive
The problem here is that the archive is too short (< 512 bytes). The
buffer routines, try to read at least 512 bytes, even when we try to determine
what format file we have, which is wrong.

Don't leave arcn->org_name pointing to ftent->fts_path, if we being cpio
then ftent is freed just below.  Take a copy of the name and point org_name
at the copy.
Should fix PR/30627 (the fix in the PR will break pax and tar!)

PR/30167: J.T. Conklin: NetBSD tar does not support GNU tar --no-recursion flag

Fix from PR#29290. Properly terminate the cpio_longopts struct so an unknown
option doesn't run off the end and core dump

Fix broken cpio(1) option handling:
- "cpio -i -t" should list the contents of a file, not extract it.
- Don't extract a file when only option "-d" is given.
Patch supplied by Paul Ripke in PR bin/26513.

PR/27212: Greg A. Woods: Accept "-C <dirname>" inside filelists in addition
to "-C\n<dirname>".
But we are not making it the default output option as the patch suggests.

PR/19490: Julio Merino: Teach tar about --sparse, -S option.
Do it for cpio too.

PR/27208: Greg A. Woods: pax must call options() before using syswarn()
or tty_warn()

PR/20071: Perry Metzger: --extract handling is broken. This patch fixes
Perry's example.
2005-12-01 03:00:01 +00:00
grant
495ab8cee9 update config.{sub,guess} for various bootstrap tools. fixes build on
newer platforms such as DragonFly.

fixes PR pkg/28579 from Todd Willey.
2004-12-12 00:46:28 +00:00
jlam
683567c435 Fix the version number of the package in the configure script, and modify
the Makefiles so that they can be built by really basic make programs.
2004-08-21 06:33:39 +00:00
jlam
6985e27f27 Check for a few more system headers after the update to pax-20040804. 2004-08-21 05:06:41 +00:00
jlam
3f57bcbb36 Mirror change in archivers/mtree by <heinz> on 2004/04/16:
Introduce HAVE_FILE_FLAGS if the system declares UF_SETTABLE and SF_SETTABLE
in addition to member 'st_flags' of struct stat. Use HAVE_FILE_FLAGS instead
of HAVE_STRUCT_STAT_ST_FLAGS.
This avoids confusion on UnixWare which has 'st_flags' but does _not_ support
file flags.
2004-08-21 04:20:50 +00:00
jlam
ff44898db4 Update archivers/pax to 20040802 (latest version on src HEAD). Changes
from previous include:

  - include a pax2nbcompat script to ease importing from src HEAD
    into pkgsrc.

  * for copy mode, show more meaningful information on SIGINFO.
2004-08-21 03:28:49 +00:00
jlam
169328c7d5 Check for all system headers needed in the sources. 2004-08-13 14:52:11 +00:00
grant
c8c0ca8a03 sync with src:
Salvage the `create parent directories and try again' path which is
removed by the previous commit.
2004-07-03 02:50:21 +00:00
grant
e24d57c28d sync with src:
break out of the loop and avoid the infinite loop if attempts to
create, unlink and create all fail.
2004-06-26 13:30:59 +00:00
grant
663b3eaa47 sync with src:
don't attempt to remove the current directory.
2004-06-26 12:42:02 +00:00
grant
fd78a9be8e sync pax with src/ from 20040620, includes many bug fixes including
properly handling broken archives.
2004-06-20 10:11:02 +00:00
heinz
376f91082d pax does not support tape drives on Unixware at the moment. 2004-04-12 12:34:16 +00:00
tv
fbac3615a8 Wrap physical mt operations in SUPPORT_TAPE, and define that if either of
<sys/mtio.h> or <sys/tape.h> is available.
2004-03-11 20:10:29 +00:00
grant
268cdc4a22 regen without insane line wrapping. 2003-12-20 04:47:19 +00:00
grant
798a3fb1b6 sync with -current:
Don't emit any warnings when tar is trying to figure out if the file is
really tar format.  valid CPIO files should not trigger a warning from tar.c
2003-12-20 04:46:27 +00:00
grant
7f81d2f7df sync with -current:
Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. confirmed to the board by Keith Muller.
2003-12-20 04:45:04 +00:00
erh
8e083a76f8 Update pax to work on AIX. Use tape.h with appropriate fixups since
there's no mtio.h
2003-12-05 16:35:54 +00:00
erh
4f33af102c Fix a call to ftree_add. s/NULL/0/ 2003-12-05 16:34:32 +00:00
grant
20360d359c sync with NetBSD-current's pax-20030923. 2003-09-23 14:37:41 +00:00
grant
e564a5265b don't use VAR+=, it doesn't work with all make(1)s. 2003-09-15 05:33:41 +00:00
grant
8ac42db09b bump version to 20030915 after latest changes. 2003-09-15 04:39:14 +00:00
grant
4b107be2da define _PATH_DEFTAPE in nbcompat.h to avoid redefining it when paths.h
is included.
2003-09-14 14:24:12 +00:00
grant
6a2c9d8555 libnbcompat tests for pwd.h, so no need to test for it here. 2003-09-06 05:53:03 +00:00
grant
a4dfb4c8f9 (my) linux defines DEFTAPE, not _PATH_DEFTAPE, so use that or
"/dev/tape" if DEFTAPE is undefined.
2003-09-06 05:10:17 +00:00
jlam
80e302b380 Update archivers/pax to 20030905. Changes from previous version include
syncing with -current, making this build using libnbcompat-20030829, and
cleaning up the configure script and Makefile.
2003-09-05 18:40:47 +00:00
grant
d09d5f0f4e allow this to build again after the recent lot of libnbcompat
changes (full sync with -current coming soon).
2003-09-05 05:48:56 +00:00
grant
fd5abef87c also install man page source, bump to 20030731. 2003-07-31 09:34:13 +00:00
wiz
de9333152e Bump date for -O change. 2003-07-09 14:42:43 +00:00
jschauma
95397dc7b6 Synch with latest changes by simonb@ in basesrc and as a result, bump
the version to todays date:
Add support for gnutar's -O "extract to stdout" option.
2003-07-08 18:40:28 +00:00
grant
78c00e091c install into into bin, not sbin 2003-06-30 14:58:31 +00:00
grant
633bd0944f install catman pages, like bootstrap-pkgsrc does.
bump to 20030630.
2003-06-30 11:47:27 +00:00
grant
db72255379 sync with -current:
----------------------------
revision 1.18
date: 2003/06/24 16:23:31;  author: christos;  state: Exp;  lines: +44 -9
Revert previous change, and fix the -T problem differently: When the options
of the second argument are exhausted, call the appropriate getopt() routine
to process the rest of the arguments instead of finishing option processing.
Fixes:
        tar cf - -T foo
2003-06-30 11:45:40 +00:00
jschauma
0e81cc9882 Make pax compile on Irix by including pwcache.h, which now includes
forward declarations of the uid_from_user functions.
2003-06-24 14:09:21 +00:00