summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-08-22 09:17:37 +0000
committerRoy Marples <uberlord@gentoo.org>2007-08-22 09:17:37 +0000
commitf16bf8639a9230dfaec5c797e1685a9ed6bd507c (patch)
tree328400acabb0e4bd8c99122f879b9c35c5f4aadb /app-arch/tar
parent Patch to fix a directory traversal vulnerability, #189682 (diff)
downloadgentoo-2-f16bf8639a9230dfaec5c797e1685a9ed6bd507c.tar.gz
gentoo-2-f16bf8639a9230dfaec5c797e1685a9ed6bd507c.tar.bz2
gentoo-2-f16bf8639a9230dfaec5c797e1685a9ed6bd507c.zip
Punt old versions
(Portage version: 2.1.3.6)
Diffstat (limited to 'app-arch/tar')
-rw-r--r--app-arch/tar/files/1.15.1-flex-arg.patch20
-rw-r--r--app-arch/tar/files/append.at34
-rw-r--r--app-arch/tar/files/digest-tar-1.15.1-r13
-rw-r--r--app-arch/tar/files/digest-tar-1.16.13
-rw-r--r--app-arch/tar/files/tar-1.15.1-dont-abort-long-names.patch50
-rw-r--r--app-arch/tar/files/tar-1.15.1-gcc4-test.patch17
-rw-r--r--app-arch/tar/files/tar-1.15.1-less-verbose-newer.patch20
-rw-r--r--app-arch/tar/files/tar-1.15.1-lseek.patch176
-rw-r--r--app-arch/tar/files/tar-CVE-2006-0300.patch121
-rw-r--r--app-arch/tar/files/tar.1-1.15.1637
-rw-r--r--app-arch/tar/tar-1.15.1-r1.ebuild77
-rw-r--r--app-arch/tar/tar-1.16.1.ebuild67
12 files changed, 0 insertions, 1225 deletions
diff --git a/app-arch/tar/files/1.15.1-flex-arg.patch b/app-arch/tar/files/1.15.1-flex-arg.patch
deleted file mode 100644
index 9ccd4a1cd650..000000000000
--- a/app-arch/tar/files/1.15.1-flex-arg.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Index: src/tar.c
-===================================================================
-RCS file: /cvsroot/tar/tar/src/tar.c,v
-retrieving revision 1.109
-retrieving revision 1.110
-diff -u -r1.109 -r1.110
---- src/tar.c 22 Dec 2004 10:53:48 -0000 1.109
-+++ src/tar.c 5 Jan 2005 17:30:36 -0000 1.110
-@@ -617,9 +617,9 @@
-
- switch (key)
- {
-- case 1:
-+ case ARGP_KEY_ARG:
- /* File name or non-parsed option, because of ARGP_IN_ORDER */
-- name_add (optarg);
-+ name_add (arg);
- args->input_files++;
- break;
-
diff --git a/app-arch/tar/files/append.at b/app-arch/tar/files/append.at
deleted file mode 100644
index 289d48acde92..000000000000
--- a/app-arch/tar/files/append.at
+++ /dev/null
@@ -1,34 +0,0 @@
-# Process this file with autom4te to create testsuite. -*- Autotest -*-
-
-# Test suite for GNU tar.
-# Copyright (C) 2004 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-AT_SETUP([append])
-AT_KEYWORDS([append])
-
-AT_TAR_CHECK([touch file1
- touch file2
- tar cf archive file1
- tar rf archive file2
- tar tf archive],
- [0],
-[file1
-file2
-])
-
-AT_CLEANUP
diff --git a/app-arch/tar/files/digest-tar-1.15.1-r1 b/app-arch/tar/files/digest-tar-1.15.1-r1
deleted file mode 100644
index e268145cd501..000000000000
--- a/app-arch/tar/files/digest-tar-1.15.1-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 57da3c38f8e06589699548a34d5a5d07 tar-1.15.1.tar.bz2 1611489
-RMD160 8de6b53b67294a942faec7638fb2cb2b4cccdac1 tar-1.15.1.tar.bz2 1611489
-SHA256 cc9a67d0bcdd6fd9f454893537799f98a4fd96e49e693e5b75b0604b9e3d2267 tar-1.15.1.tar.bz2 1611489
diff --git a/app-arch/tar/files/digest-tar-1.16.1 b/app-arch/tar/files/digest-tar-1.16.1
deleted file mode 100644
index 86b5028fb589..000000000000
--- a/app-arch/tar/files/digest-tar-1.16.1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 d51593461c5ef1f7e37134f22338bb9e tar-1.16.1.tar.bz2 1793624
-RMD160 27134a0c5512f37a8e063843ba6175a39e2da21b tar-1.16.1.tar.bz2 1793624
-SHA256 5c843004934142cc85decf4ae0f5f8b8b568834d3e23f1568193b3836422d2bb tar-1.16.1.tar.bz2 1793624
diff --git a/app-arch/tar/files/tar-1.15.1-dont-abort-long-names.patch b/app-arch/tar/files/tar-1.15.1-dont-abort-long-names.patch
deleted file mode 100644
index 9277aa55581b..000000000000
--- a/app-arch/tar/files/tar-1.15.1-dont-abort-long-names.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-Add a workaround for invalid aborts until the next tar release
-which has this fixed properly. Thanks to Jim Faulkner for
-reporting and tracking this down !
-
-http://lists.gnu.org/archive/html/bug-tar/2005-04/msg00012.html
-http://bugs.gentoo.org/show_bug.cgi?id=87540
-
-Benno Schulenberg says to update tests too:
-http://bugs.gentoo.org/show_bug.cgi?id=90742
-
-Index: src/buffer.c
-===================================================================
-RCS file: /cvsroot/tar/tar/src/buffer.c,v
-retrieving revision 1.81
-retrieving revision 1.82
-diff -u -r1.81 -r1.82
---- src/buffer.c 4 Apr 2005 18:21:55 -0000 1.81
-+++ src/buffer.c 7 Apr 2005 17:26:11 -0000 1.82
-@@ -653,8 +653,8 @@
- record_start++;
-
- if (strlen (real_s_name) > NAME_FIELD_SIZE)
-- FATAL_ERROR ((0, 0,
-- _("%s: file name too long to be stored in a GNU multivolume header"),
-+ WARN ((0, 0,
-+ _("%s: file name too long to be stored in a GNU multivolume header, truncated"),
- quotearg_colon (real_s_name)));
-
- memset (record_start, 0, BLOCKSIZE);
---- tests/multiv03.at
-+++ tests/multiv03.at
-@@ -33,8 +33,7 @@
- BFILE=`awk 'BEGIN { for (i = 0; i < 101; i++) printf "b"; exit; }'`
-
- cat > ../experr <<EOF
--tar: $BFILE: file name too long to be stored in a GNU multivolume header
--tar: Error is not recoverable: exiting now
-+tar: $BFILE: file name too long to be stored in a GNU multivolume header, truncated
- EOF
-
- cat > ../expout <<EOF
-@@ -52,7 +51,7 @@
- genfile --length 15360 > $BFILE
- tar -M -L 10 -c -f arch.1 -f arch.2 $BFILE
- ],
--[2],
-+[0],
- [expout],
- [experr],
- [],[],[gnu, oldgnu])
diff --git a/app-arch/tar/files/tar-1.15.1-gcc4-test.patch b/app-arch/tar/files/tar-1.15.1-gcc4-test.patch
deleted file mode 100644
index 576c548ee8d0..000000000000
--- a/app-arch/tar/files/tar-1.15.1-gcc4-test.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Taken from fedora to fix tests with gcc4
-
-http://bugs.gentoo.org/show_bug.cgi?id=88214
-
---- tar-1.15.1/tests/genfile.c
-+++ tar-1.15.1/tests/genfile.c
-@@ -60,8 +60,8 @@
- /* Block buffer for sparse file */
- char *buffer;
-
--static const char *argp_program_version = "genfile (" PACKAGE ") " VERSION;
--static const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
-+const char *argp_program_version = "genfile (" PACKAGE ") " VERSION;
-+const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
- static char doc[] = N_("genfile generates data files for GNU paxutils test suite");
-
- static struct argp_option options[] = {
diff --git a/app-arch/tar/files/tar-1.15.1-less-verbose-newer.patch b/app-arch/tar/files/tar-1.15.1-less-verbose-newer.patch
deleted file mode 100644
index 34777aebdcc5..000000000000
--- a/app-arch/tar/files/tar-1.15.1-less-verbose-newer.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-http://bugs.gentoo.org/show_bug.cgi?id=86467
-http://lists.gnu.org/archive/html/bug-tar/2005-03/msg00001.html
-
-Index: src/create.c
-===================================================================
-RCS file: /cvsroot/tar/tar/src/create.c,v
-retrieving revision 1.92
-retrieving revision 1.93
-diff -u -p -r1.92 -r1.93
---- src/create.c 15 Feb 2005 15:24:35 -0000 1.92
-+++ src/create.c 3 Mar 2005 23:13:14 -0000 1.93
-@@ -1397,7 +1397,7 @@ dump_file0 (struct tar_stat_info *st, ch
- && OLDER_STAT_TIME (st->stat, m)
- && (!after_date_option || OLDER_STAT_TIME (st->stat, c)))
- {
-- if (!incremental_option)
-+ if (!incremental_option && verbose_option)
- WARN ((0, 0, _("%s: file is unchanged; not dumped"),
- quotearg_colon (p)));
- return;
diff --git a/app-arch/tar/files/tar-1.15.1-lseek.patch b/app-arch/tar/files/tar-1.15.1-lseek.patch
deleted file mode 100644
index f4eeb6d7441e..000000000000
--- a/app-arch/tar/files/tar-1.15.1-lseek.patch
+++ /dev/null
@@ -1,176 +0,0 @@
-revision 1.12
-date: 2005/03/03 23:13:30; author: gray; state: Exp; lines: +1 -1
-(sparse_scan_file): Bugfix. offset had incorrect type.
-
-revision 1.11
-date: 2005/02/02 11:01:49; author: gray; state: Exp; lines: +59 -14
-Extract sparse files even if the output fd is not seekable.
-
-Index: src/sparse.c
-===================================================================
-RCS file: /cvsroot/tar/tar/src/sparse.c,v
-retrieving revision 1.10
-retrieving revision 1.12
-diff -u -p -r1.10 -r1.12
---- src/sparse.c 6 Sep 2004 14:28:56 -0000 1.10
-+++ src/sparse.c 3 Mar 2005 23:13:30 -0000 1.12
-@@ -46,6 +46,9 @@ struct tar_sparse_optab
- struct tar_sparse_file
- {
- int fd; /* File descriptor */
-+ bool seekable; /* Is fd seekable? */
-+ size_t offset; /* Current offset in fd if seekable==false.
-+ Otherwise unused */
- size_t dumped_size; /* Number of bytes actually written
- to the archive */
- struct tar_stat_info *stat_info; /* Information about the file */
-@@ -54,6 +57,39 @@ struct tar_sparse_file
- reqiure */
- };
-
-+/* Dump zeros to file->fd until offset is reached. It is used instead of
-+ lseek if the output file is not seekable */
-+static long
-+dump_zeros (struct tar_sparse_file *file, off_t offset)
-+{
-+ char buf[BLOCKSIZE];
-+
-+ if (offset - file->offset < 0)
-+ {
-+ errno = EINVAL;
-+ return -1;
-+ }
-+
-+ memset (buf, 0, sizeof buf);
-+ while (file->offset < offset)
-+ {
-+ size_t size = offset - file->offset;
-+ size_t wrbytes;
-+
-+ if (size > sizeof buf)
-+ size = sizeof buf;
-+ wrbytes = write (file->fd, buf, size);
-+ if (wrbytes <= 0)
-+ {
-+ if (wrbytes == 0)
-+ errno = EINVAL;
-+ return -1;
-+ }
-+ file->offset += wrbytes;
-+ }
-+ return file->offset;
-+}
-+
- static bool
- tar_sparse_member_p (struct tar_sparse_file *file)
- {
-@@ -130,9 +166,16 @@ tar_sparse_fixup_header (struct tar_spar
-
-
- static bool
--lseek_or_error (struct tar_sparse_file *file, off_t offset, int whence)
-+lseek_or_error (struct tar_sparse_file *file, off_t offset)
- {
-- if (lseek (file->fd, offset, whence) < 0)
-+ off_t off;
-+
-+ if (file->seekable)
-+ off = lseek (file->fd, offset, SEEK_SET);
-+ else
-+ off = dump_zeros (file, offset);
-+
-+ if (off < 0)
- {
- seek_diag_details (file->stat_info->orig_file_name, offset);
- return false;
-@@ -182,10 +225,10 @@ sparse_scan_file (struct tar_sparse_file
- {
- static char buffer[BLOCKSIZE];
- size_t count;
-- size_t offset = 0;
-+ off_t offset = 0;
- struct sp_array sp = {0, 0};
-
-- if (!lseek_or_error (file, 0, SEEK_SET))
-+ if (!lseek_or_error (file, 0))
- return false;
- clear_block (buffer);
-
-@@ -269,8 +312,7 @@ sparse_dump_region (struct tar_sparse_fi
- union block *blk;
- off_t bytes_left = file->stat_info->sparse_map[i].numbytes;
-
-- if (!lseek_or_error (file, file->stat_info->sparse_map[i].offset,
-- SEEK_SET))
-+ if (!lseek_or_error (file, file->stat_info->sparse_map[i].offset))
- return false;
-
- while (bytes_left > 0)
-@@ -304,8 +346,7 @@ sparse_extract_region (struct tar_sparse
- {
- size_t write_size;
-
-- if (!lseek_or_error (file, file->stat_info->sparse_map[i].offset,
-- SEEK_SET))
-+ if (!lseek_or_error (file, file->stat_info->sparse_map[i].offset))
- return false;
-
- write_size = file->stat_info->sparse_map[i].numbytes;
-@@ -313,7 +354,7 @@ sparse_extract_region (struct tar_sparse
- if (write_size == 0)
- {
- /* Last block of the file is a hole */
-- if (sys_truncate (file->fd))
-+ if (file->seekable && sys_truncate (file->fd))
- truncate_warn (file->stat_info->orig_file_name);
- }
- else while (write_size > 0)
-@@ -330,6 +371,7 @@ sparse_extract_region (struct tar_sparse
- count = full_write (file->fd, blk->buffer, wrbytes);
- write_size -= count;
- file->dumped_size += count;
-+ file->offset += count;
- if (count != wrbytes)
- {
- write_error_details (file->stat_info->orig_file_name,
-@@ -351,7 +393,9 @@ sparse_dump_file (int fd, struct tar_sta
-
- file.stat_info = st;
- file.fd = fd;
--
-+ file.seekable = true; /* File *must* be seekable for dump to work */
-+ file.offset = 0;
-+
- if (!sparse_select_optab (&file)
- || !tar_sparse_init (&file))
- return dump_status_not_implemented;
-@@ -414,7 +458,9 @@ sparse_extract_file (int fd, struct tar_
-
- file.stat_info = st;
- file.fd = fd;
--
-+ file.seekable = lseek (fd, 0, SEEK_SET) == 0;
-+ file.offset = 0;
-+
- if (!sparse_select_optab (&file)
- || !tar_sparse_init (&file))
- return dump_status_not_implemented;
-@@ -450,7 +496,7 @@ static char diff_buffer[BLOCKSIZE];
- static bool
- check_sparse_region (struct tar_sparse_file *file, off_t beg, off_t end)
- {
-- if (!lseek_or_error (file, beg, SEEK_SET))
-+ if (!lseek_or_error (file, beg))
- return false;
-
- while (beg < end)
-@@ -486,8 +532,7 @@ check_data_region (struct tar_sparse_fil
- {
- size_t size_left;
-
-- if (!lseek_or_error (file, file->stat_info->sparse_map[i].offset,
-- SEEK_SET))
-+ if (!lseek_or_error (file, file->stat_info->sparse_map[i].offset))
- return false;
- size_left = file->stat_info->sparse_map[i].numbytes;
- while (size_left > 0)
diff --git a/app-arch/tar/files/tar-CVE-2006-0300.patch b/app-arch/tar/files/tar-CVE-2006-0300.patch
deleted file mode 100644
index 679f81898540..000000000000
--- a/app-arch/tar/files/tar-CVE-2006-0300.patch
+++ /dev/null
@@ -1,121 +0,0 @@
---- src/xheader.c.orig 2004-09-06 06:31:14.000000000 -0500
-+++ src/xheader.c 2006-02-08 16:59:46.000000000 -0500
-@@ -783,6 +783,32 @@ code_num (uintmax_t value, char const *k
- xheader_print (xhdr, keyword, sbuf);
- }
-
-+static bool
-+decode_num (uintmax_t *num, char const *arg, uintmax_t maxval,
-+ char const *keyword)
-+{
-+ uintmax_t u;
-+ char *arg_lim;
-+
-+ if (! (ISDIGIT (*arg)
-+ && (errno = 0, u = strtoumax (arg, &arg_lim, 10), !*arg_lim)))
-+ {
-+ ERROR ((0, 0, _("Malformed extended header: invalid %s=%s"),
-+ keyword, arg));
-+ return false;
-+ }
-+
-+ if (! (u <= maxval && errno != ERANGE))
-+ {
-+ ERROR ((0, 0, _("Extended header %s=%s is out of range"),
-+ keyword, arg));
-+ return false;
-+ }
-+
-+ *num = u;
-+ return true;
-+}
-+
- static void
- dummy_coder (struct tar_stat_info const *st __attribute__ ((unused)),
- char const *keyword __attribute__ ((unused)),
-@@ -821,7 +847,7 @@ static void
- gid_decoder (struct tar_stat_info *st, char const *arg)
- {
- uintmax_t u;
-- if (xstrtoumax (arg, NULL, 10, &u, "") == LONGINT_OK)
-+ if (decode_num (&u, arg, TYPE_MAXIMUM (gid_t), "gid"))
- st->stat.st_gid = u;
- }
-
-@@ -903,7 +929,7 @@ static void
- size_decoder (struct tar_stat_info *st, char const *arg)
- {
- uintmax_t u;
-- if (xstrtoumax (arg, NULL, 10, &u, "") == LONGINT_OK)
-+ if (decode_num (&u, arg, TYPE_MAXIMUM (off_t), "size"))
- st->archive_file_size = st->stat.st_size = u;
- }
-
-@@ -918,7 +944,7 @@ static void
- uid_decoder (struct tar_stat_info *st, char const *arg)
- {
- uintmax_t u;
-- if (xstrtoumax (arg, NULL, 10, &u, "") == LONGINT_OK)
-+ if (decode_num (&u, arg, TYPE_MAXIMUM (uid_t), "uid"))
- st->stat.st_uid = u;
- }
-
-@@ -946,7 +972,7 @@ static void
- sparse_size_decoder (struct tar_stat_info *st, char const *arg)
- {
- uintmax_t u;
-- if (xstrtoumax (arg, NULL, 10, &u, "") == LONGINT_OK)
-+ if (decode_num (&u, arg, TYPE_MAXIMUM (off_t), "GNU.sparse.size"))
- st->stat.st_size = u;
- }
-
-@@ -962,10 +988,10 @@ static void
- sparse_numblocks_decoder (struct tar_stat_info *st, char const *arg)
- {
- uintmax_t u;
-- if (xstrtoumax (arg, NULL, 10, &u, "") == LONGINT_OK)
-+ if (decode_num (&u, arg, SIZE_MAX, "GNU.sparse.numblocks"))
- {
- st->sparse_map_size = u;
-- st->sparse_map = calloc(st->sparse_map_size, sizeof(st->sparse_map[0]));
-+ st->sparse_map = xcalloc (u, sizeof st->sparse_map[0]);
- st->sparse_map_avail = 0;
- }
- }
-@@ -982,8 +1008,14 @@ static void
- sparse_offset_decoder (struct tar_stat_info *st, char const *arg)
- {
- uintmax_t u;
-- if (xstrtoumax (arg, NULL, 10, &u, "") == LONGINT_OK)
-+ if (decode_num (&u, arg, TYPE_MAXIMUM (off_t), "GNU.sparse.offset"))
-+ {
-+ if (st->sparse_map_avail < st->sparse_map_size)
- st->sparse_map[st->sparse_map_avail].offset = u;
-+ else
-+ ERROR ((0, 0, _("Malformed extended header: excess %s=%s"),
-+ "GNU.sparse.offset", arg));
-+ }
- }
-
- static void
-@@ -998,15 +1030,13 @@ static void
- sparse_numbytes_decoder (struct tar_stat_info *st, char const *arg)
- {
- uintmax_t u;
-- if (xstrtoumax (arg, NULL, 10, &u, "") == LONGINT_OK)
-+ if (decode_num (&u, arg, SIZE_MAX, "GNU.sparse.numbytes"))
- {
- if (st->sparse_map_avail == st->sparse_map_size)
-- {
-- st->sparse_map_size *= 2;
-- st->sparse_map = xrealloc (st->sparse_map,
-- st->sparse_map_size
-- * sizeof st->sparse_map[0]);
-- }
-+ st->sparse_map = x2nrealloc (st->sparse_map,
-+ &st->sparse_map_size,
-+ sizeof st->sparse_map[0]);
-+
- st->sparse_map[st->sparse_map_avail++].numbytes = u;
- }
- }
diff --git a/app-arch/tar/files/tar.1-1.15.1 b/app-arch/tar/files/tar.1-1.15.1
deleted file mode 100644
index d79cad400d4d..000000000000
--- a/app-arch/tar/files/tar.1-1.15.1
+++ /dev/null
@@ -1,637 +0,0 @@
-.TH TAR 1 "Oct 2004" "GNU" "tar"
-.SH NAME
-tar \- The GNU version of the tar archiving utility
-.SH SYNOPSIS
-.B tar
-.I <operation> [options]
-
-.I Operations:
-.nf
-.B [-]A --catenate --concatenate
-.B [-]c --create
-.B [-]d --diff --compare
-.B [-]r --append
-.B [-]t --list
-.B [-]u --update
-.B [-]x --extract --get
-.B --delete
-.fi
-
-.I Common Options:
-.nf
-.BR -C ", " --directory " DIR"
-.BR -f ", " --file " F"
-.BR -j ", " --bzip2
-.BR -p ", " --preserve-permissions
-.BR -v ", " --verbose
-.BR -z ", " --gzip
-.fi
-
-.I All Options:
-.br
-[
-.BR --atime-preserve
-]
-[
-.BR -b ", " --blocking-factor " N"
-]
-[
-.BR -B ", " --read-full-records
-]
-[
-.BR --backup " BACKUP-TYPE"
-]
-[
-.BR --block-compress
-]
-[
-.BR -C ", " --directory " DIR"
-]
-[
-.BR --check-links
-]
-[
-.BR --checkpoint
-]
-[
-.BR -f ", " --file " [HOSTNAME:]F"
-]
-[
-.BR -F ", " --info-script " F, " --new-volume-script " F"
-]
-[
-.BR --force-local
-]
-[
-.BR --format " FORMAT"
-]
-[
-.BR -g ", " --listed-incremental " F"
-]
-[
-.BR -G ", " --incremental
-]
-[
-.BR --group " GROUP"
-]
-[
-.BR -h ", " --dereference
-]
-[
-.BR --help
-]
-[
-.BR -i ", " --ignore-zeros
-]
-[
-.BR --ignore-case
-]
-[
-.BR --ignore-failed-read
-]
-[
-.BR --index-file " FILE"
-]
-[
-.BR -j ", " --bzip2
-]
-[
-.BR -k ", " --keep-old-files
-]
-[
-.BR -K ", " --starting-file " FILE"
-]
-[
-.BR --keep-newer-files
-]
-[
-.BR -l ", " --one-file-system
-]
-[
-.BR -L ", " --tape-length " N"
-]
-[
-.BR -m ", " --touch ", " --modification-time
-]
-[
-.BR -M ", " --multi-volume
-]
-[
-.BR --mode " PERMISSIONS"
-]
-[
-.BR -N ", " --after-date " DATE, " --newer " DATE"
-]
-[
-.BR --newer-mtime " DATE"
-]
-[
-.BR --no-anchored
-]
-[
-.BR --no-ignore-case
-]
-[
-.BR --no-recursion
-]
-[
-.BR --no-same-permissions
-]
-[
-.BR --no-wildcards
-]
-[
-.BR --no-wildcards-match-slash
-]
-[
-.BR --null
-]
-[
-.BR --numeric-owner
-]
-[
-.BR -o ", " --old-archive ", " --portability ", " --no-same-owner
-]
-[
-.BR -O ", " --to-stdout
-]
-[
-.BR --occurrence " NUM"
-]
-[
-.BR --overwrite
-]
-[
-.BR --overwrite-dir
-]
-[
-.BR --owner " USER"
-]
-[
-.BR -p ", " --same-permissions ", " --preserve-permissions
-]
-[
-.BR -P ", " --absolute-names
-]
-[
-.BR --pax-option " KEYWORD-LIST"
-]
-[
-.BR --posix
-]
-[
-.BR --preserve
-]
-[
-.BR -R ", " --block-number
-]
-[
-.BR --record-size " SIZE"
-]
-[
-.BR --recursion
-]
-[
-.BR --recursive-unlink
-]
-[
-.BR --remove-files
-]
-[
-.BR --rmt-command " CMD"
-]
-[
-.BR --rsh-command " CMD"
-]
-[
-.BR -s ", " --same-order ", " --preserve-order
-]
-[
-.BR -S ", " --sparse
-]
-[
-.BR --same-owner
-]
-[
-.BR --show-defaults
-]
-[
-.BR --show-omitted-dirs
-]
-[
-.BR --strip-components " NUMBER, " --strip-path " NUMBER (1)"
-]
-[
-.BR --suffix " SUFFIX"
-]
-[
-.BR -T ", " --files-from " FILE"
-]
-[
-.BR --totals
-]
-[
-.BR -U ", " --unlink-first
-]
-[
-.BR --use-compress-program " PROG"
-]
-[
-.BR --utc
-]
-[
-.BR -v ", " --verbose
-]
-[
-.BR -V ", " --label " NAME"
-]
-[
-.BR --version
-]
-[
-.BR --volno-file " FILE"
-]
-[
-.BR -w ", " --interactive ", " --confirmation
-]
-[
-.BR -W ", " --verify
-]
-[
-.BR --wildcards
-]
-[
-.BR --wildcards-match-slash
-]
-[
-.BR --exclude " PATTERN"
-]
-[
-.BR -X ", " --exclude-from " FILE"
-]
-[
-.BR -Z ", " --compress ", " --uncompress
-]
-[
-.BR -z ", " --gzip ", " --gunzip ", " --ungzip
-]
-[
-.BR -[0-7][lmh]
-]
-
-(1) tar-1.14 uses --strip-path, tar-1.14.90+ uses --strip-components
-.SH DESCRIPTION
-This manual page documents the GNU version of \fBtar\fR, an archiving
-program designed to store and extract files from an archive file known
-as a \fItarfile\fR. A \fItarfile\fR may be made on a tape drive,
-however, it is also common to write a \fItarfile\fR to a normal file.
-The first argument to \fBtar\fR must be one of the options \fBAcdrtux\fR,
-followed by any optional functions. The final arguments to \fBtar\fR
-are the names of the files or directories which should be archived. The
-use of a directory name always implies that the subdirectories below
-should be included in the archive.
-.SH EXAMPLES
-.TP
-.B tar -xvf foo.tar
-verbosely extract foo.tar
-.TP
-.B tar -xzf foo.tar.gz
-extract gzipped foo.tar.gz
-.TP
-.B tar -cjf foo.tar.bz2 bar/
-create bzipped tar archive of the directory bar called foo.tar.bz2
-.TP
-.B tar -xjf foo.tar.bz2 -C bar/
-extract bzipped foo.tar.bz2 after changing directory to bar
-.TP
-.B tar -xzf foo.tar.gz blah.txt
-extract the file blah.txt from foo.tar.gz
-.SH "FUNCTION LETTERS"
-.TP
-.B One of the following options must be used:
-.TP
-.BR -A ", " --catenate ", " --concatenate
-append tar files to an archive
-.TP
-.BR -c ", " --create
-create a new archive
-.TP
-.BR -d ", " --diff ", " --compare
-find differences between archive and file system
-.TP
-.BR -r ", " --append
-append files to the end of an archive
-.TP
-.BR -t ", " --list
-list the contents of an archive
-.TP
-.BR -u ", " --update
-only append files that are newer than the existing in archive
-.TP
-.BR -x ", " --extract ", " --get
-extract files from an archive
-.TP
-.BR --delete
-delete from the archive (not for use on mag tapes!)
-.SH "COMMON OPTIONS"
-.TP
-.BR -C ", " --directory " DIR"
-change to directory DIR
-.TP
-.BR -f ", " --file " [HOSTNAME:]F"
-use archive file or device F (default "-", meaning stdin/stdout)
-.TP
-.BR -j ", " --bzip2
-filter archive through bzip2, use to decompress .bz2 files
-.TP
-.BR -p ", " --preserve-permissions
-extract all protection information
-.TP
-.BR -v ", " --verbose
-verbosely list files processed
-.TP
-.BR -z ", " --gzip ", " --ungzip
-filter the archive through gzip
-.SH "ALL OPTIONS"
-.TP
-.BR --atime-preserve
-don't change access times on dumped files
-.TP
-.BR -b ", " --blocking-factor " N"
-block size of Nx512 bytes (default N=20)
-.TP
-.BR -B ", " --read-full-blocks
-reblock as we read (for reading 4.2BSD pipes)
-.TP
-.BR --backup " BACKUP-TYPE"
-backup files instead of deleting them using BACKUP-TYPE simple or
-numbered
-.TP
-.BR --block-compress
-block the output of compression program for tapes
-.TP
-.BR -C ", " --directory " DIR"
-change to directory DIR
-.TP
-.BR --check-links
-warn if number of hard links to the file on the filesystem mismatch the
-number of links recorded in the archive
-.TP
-.BR --checkpoint
-print directory names while reading the archive
-.TP
-.BR -f ", " --file " [HOSTNAME:]F"
-use archive file or device F (default "-", meaning stdin/stdout)
-.TP
-.BR -F ", " --info-script " FILE, " --new-volume-script " FILE"
-run script at end of each tape (implies \fI--multi-volume\fR)
-.TP
-.BR --force-local
-archive file is local even if has a colon
-.TP
-.BR --format " FORMAT"
-selects output archive format
-.nf
-\fIv7\fR - Unix V7
-\fIoldgnu\fR - GNU tar <=1.12
-\fIgnu\fR - GNU tar 1.13
-\fIustar\fR - POSIX.1-1988
-\fIposix\fR - POSIX.1-2001
-.fi
-.TP
-.BR -g ", " --listed-incremental " F"
-create/list/extract new GNU-format incremental backup
-.TP
-.BR -G ", " --incremental
-create/list/extract old GNU-format incremental backup
-.TP
-.BR -h ", " --dereference
-don't dump symlinks; dump the files they point to
-.TP
-.BR --help
-like this manpage, but not as cool
-.TP
-.BR -i ", " --ignore-zeros
-ignore blocks of zeros in archive (normally mean EOF)
-.TP
-.BR --ignore-case
-ignore case when excluding files
-.TP
-.BR --ignore-failed-read
-don't exit with non-zero status on unreadable files
-.TP
-.BR --index-file " FILE"
-send verbose output to FILE instead of stdout
-.TP
-.BR -j ", " --bzip2
-filter archive through bzip2, use to decompress .bz2 files
-.TP
-.BR -k ", " --keep-old-files
-keep existing files; don't overwrite them from archive
-.TP
-.BR -K ", " --starting-file " FILE"
-begin at file F in the archive
-.TP
-.BR --keep-newer-files
-do not overwrite files which are newer than the archive
-.TP
-.BR -l ", " --one-file-system
-stay in local file system when creating an archive
-.TP
-.BR -L ", " --tape-length " N"
-change tapes after writing N*1024 bytes
-.TP
-.BR -m ", " --touch ", " --modification-time
-don't extract file modified time
-.TP
-.BR -M ", " --multi-volume
-create/list/extract multi-volume archive
-.TP
-.BR --mode " PERMISSIONS"
-apply PERMISSIONS while adding files (see \fBchmod\fR(1))
-.TP
-.BR -N ", " --after-date " DATE, " --newer " DATE"
-only store files that were modified or had status updates (permissions,
-ACLs, extended attributes,...) since DATE
-.TP
-.BR --newer-mtime " DATE"
-like \fI--newer\fR, but only store files that were modified since DATE
-.TP
-.BR --no-anchored
-match any subsequenceof the name's components with \fI--exclude\fR
-.TP
-.BR --no-ignore-case
-use case-sensitive matching with \fI--exclude\fR
-.TP
-.BR --no-recursion
-don't recurse into directories
-.TP
-.BR --no-same-permissions
-apply user's umask when extracting files instead of recorded permissions
-.TP
-.BR --no-wildcards
-don't use wildcards with \fI--exclude\fR
-.TP
-.BR --no-wildcards-match-slash
-wildcards do not match slashes (/) with \fI--exclude\fR
-.TP
-.BR --null
-\fI--files-from\fR reads null-terminated names, disable \fI--directory\fR
-.TP
-.BR --numeric-owner
-always use numbers for user/group names
-.TP
-.BR -o ", " --old-archive ", " --portability
-like \fI--format=v7\fR; \fI-o\fR exhibits this behavior when creating an
-archive (deprecated behavior)
-.TP
-.BR -o ", " --no-same-owner
-do not attempt to restore ownership when extracting; \fI-o\fR exhibits
-this behavior when extracting an archive
-.TP
-.BR -O ", " --to-stdout
-extract files to standard output
-.TP
-.BR --occurrence " NUM"
-process only NUM occurrences of each named file; used with
-\fI--delete\fR, \fI--diff\fR, \fI--extract\fR, or \fI--list\fR
-.TP
-.BR --overwrite
-overwrite existing files and directory metadata when extracting
-.TP
-.BR --overwrite-dir
-overwrite directory metadata when extracting
-.TP
-.BR --owner " USER"
-change owner of extraced files to USER
-.TP
-.BR -p ", " --same-permissions ", " --preserve-permissions
-extract all protection information
-.TP
-.BR -P ", " --absolute-names
-don't strip leading `/'s from file names
-.TP
-.BR --pax-option " KEYWORD-LIST"
-used only with POSIX.1-2001 archives to modify the way \fBtar\fR handles
-extended header keywords
-.TP
-.BR --posix
-like \fI--format=posix\fR
-.TP
-.BR --preserve
-like \fI--preserve-permissions\fR \fI--same-order\fR
-.TP
-.BR -R ", " --record-number
-show record number within archive with each message
-.TP
-.BR --record-size " SIZE"
-use SIZE bytes per record when accessing archives
-.TP
-.BR --recursion
-recurse into directories
-.TP
-.BR --recursive-unlink
-remove existing directories before extracting directories of the same name
-.TP
-.BR --remove-files
-remove files after adding them to the archive
-.TP
-.BR --rmt-command " CMD"
-use CMD instead of the default /usr/sbin/rmt
-.TP
-.BR --rsh-command " CMD"
-use remote CMD instead of \fBrsh\fR(1)
-.TP
-.BR -s ", " --same-order ", " --preserve-order
-list of names to extract is sorted to match archive
-.TP
-.BR -S ", " --sparse
-handle sparse files efficiently
-.TP
-.BR --same-owner
-create extracted files with the same ownership
-.TP
-.BR --show-defaults
-display the default options used by \fBtar\fR
-.TP
-.BR --show-omitted-dirs
-print directories \fBtar\fR skips while operating on an archive
-.TP
-.BR --strip-components " NUMBER, " --strip-path " NUMBER"
-strip NUMBER of leading components from file names before extraction
-
-(1) tar-1.14 uses --strip-path, tar-1.14.90+ uses --strip-components
-.TP
-.BR --suffix " SUFFIX"
-use SUFFIX instead of default '~' when backing up files
-.TP
-.BR -T ", " --files-from " FILE"
-get names to extract or create from file FILE
-.TP
-.BR --totals
-print total bytes written with --create
-.TP
-.BR -U ", " --unlink-first
-remove existing files before extracting files of the same name
-.TP
-.BR --use-compress-program " PROG"
-access the archive through PROG which is generally a compression program
-.TP
-.BR --utc
-display file modification dates in UTC
-.TP
-.BR -v ", " --verbose
-verbosely list files processed
-.TP
-.BR -V ", " --label " NAME"
-create archive with volume name NAME
-.TP
-.BR --version
-print \fBtar\fR program version number
-.TP
-.BR --volno-file " FILE"
-keep track of which volume of a multi-volume archive its working in
-FILE; used with \fI--multi-volume\fR
-.TP
-.BR -w ", " --interactive ", " --confirmation
-ask for confirmation for every action
-.TP
-.BR -W ", " --verify
-attempt to verify the archive after writing it
-.TP
-.BR --wildcards
-use wildcards with \fI--exclude\fR
-.TP
-.BR --wildcards-match-slash
-wildcards match slashes (/) with \fI--exclude\fR
-.TP
-.BR --exclude " PATTERN"
-exclude files based upon PATTERN
-.TP
-.BR -X ", " --exclude-from " FILE"
-exclude files listed in FILE
-.TP
-.BR -Z ", " --compress ", " --uncompress
-filter the archive through compress
-.TP
-.BR -z ", " --gzip ", " --gunzip ", " --ungzip
-filter the archive through gzip
-.TP
-.BR --use-compress-program " PROG"
-filter the archive through PROG (which must accept -d)
-.TP
-.BR -[0-7][lmh]
-specify drive and density
-.SH BUGS
-The GNU folks, in general, abhor man pages, and create info documents instead.
-The maintainer of \fBtar\fR falls into this category. Thus this man page may
-not be complete, nor current, and was included in the Gentoo portage tree
-because man is a great tool :). This man page was first taken from Debian
-Linux and has since been loving updated here.
-.SH "REPORTING BUGS"
-Please report bugs via http://bugs.gentoo.org/
-.SH "AUTHORS"
-.nf
-Debian Linux http://www.debian.org/
-Mike Frysinger <vapier@gentoo.org>
-.fi
diff --git a/app-arch/tar/tar-1.15.1-r1.ebuild b/app-arch/tar/tar-1.15.1-r1.ebuild
deleted file mode 100644
index 15b0dd5e0b47..000000000000
--- a/app-arch/tar/tar-1.15.1-r1.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.15.1-r1.ebuild,v 1.12 2007/07/07 12:26:40 ulm Exp $
-
-inherit flag-o-matic eutils
-
-DESCRIPTION="Use this to make tarballs :)"
-HOMEPAGE="http://www.gnu.org/software/tar/"
-SRC_URI="http://ftp.gnu.org/gnu/tar/${P}.tar.bz2
- http://alpha.gnu.org/gnu/tar/${P}.tar.bz2
- mirror://gnu/tar/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
-IUSE="nls static build bzip2"
-
-RDEPEND="app-arch/gzip
- bzip2? ( app-arch/bzip2 )"
-DEPEND="${RDEPEND}
- nls? ( >=sys-devel/gettext-0.10.35 )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PV}-flex-arg.patch
- epatch "${FILESDIR}"/${P}-gcc4-test.patch #88214
- epatch "${FILESDIR}"/${P}-dont-abort-long-names.patch #87540
- epatch "${FILESDIR}"/${P}-less-verbose-newer.patch #86467
- epatch "${FILESDIR}"/${P}-lseek.patch
- epatch "${FILESDIR}"/${PN}-CVE-2006-0300.patch
-
- cp "${FILESDIR}"/append.at tests/
-
- if ! use userland_GNU ; then
- sed -i \
- -e 's:/backup\.sh:/gbackup.sh:' \
- scripts/{backup,dump-remind,restore}.in \
- || die "sed non-GNU"
- fi
-}
-
-src_compile() {
- local myconf
- use static && append-ldflags -static
- use userland_GNU || myconf="--program-prefix=g"
- # Work around bug in sandbox #67051
- gl_cv_func_chown_follows_symlink=yes \
- econf \
- --enable-backup-scripts \
- --bindir=/bin \
- --libexecdir=/usr/sbin \
- $(use_enable nls) \
- ${myconf} || die
- emake || die "emake failed"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
- # a nasty yet required symlink
- local p=""
- use userland_GNU || p=g
- dodir /etc
- dosym /usr/sbin/${p}rmt /etc/${p}rmt
- if use build ; then
- rm -r "${D}"/usr
- else
- dodir /usr/bin
- dosym /bin/${p}tar /usr/bin/${p}tar
- dodoc AUTHORS ChangeLog* NEWS README* PORTS THANKS
- newman "${FILESDIR}"/tar.1-${PV} ${p}tar.1
- mv "${D}"/usr/sbin/${p}backup{,-tar}
- mv "${D}"/usr/sbin/${p}restore{,-tar}
- fi
-
- rm -f ${D}/usr/$(get_libdir)/charset.alias
-}
diff --git a/app-arch/tar/tar-1.16.1.ebuild b/app-arch/tar/tar-1.16.1.ebuild
deleted file mode 100644
index 5be7d08d4024..000000000000
--- a/app-arch/tar/tar-1.16.1.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.16.1.ebuild,v 1.13 2007/05/16 10:38:28 yoswink Exp $
-
-inherit flag-o-matic eutils
-
-DESCRIPTION="Use this to make tarballs :)"
-HOMEPAGE="http://www.gnu.org/software/tar/"
-SRC_URI="http://ftp.gnu.org/gnu/tar/${P}.tar.bz2
- ftp://alpha.gnu.org/gnu/tar/${P}.tar.bz2
- mirror://gnu/tar/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-IUSE="nls static"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- nls? ( >=sys-devel/gettext-0.10.35 )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- if ! use userland_GNU ; then
- sed -i \
- -e 's:/backup\.sh:/gbackup.sh:' \
- scripts/{backup,dump-remind,restore}.in \
- || die "sed non-GNU"
- fi
-}
-
-src_compile() {
- local myconf
- use static && append-ldflags -static
- use userland_GNU || myconf="--program-prefix=g"
- # Work around bug in sandbox #67051
- gl_cv_func_chown_follows_symlink=yes \
- econf \
- --enable-backup-scripts \
- --bindir=/bin \
- --libexecdir=/usr/sbin \
- $(use_enable nls) \
- ${myconf} || die
- emake || die "emake failed"
-}
-
-src_install() {
- local p=""
- use userland_GNU || p=g
-
- emake DESTDIR="${D}" install || die "make install failed"
-
- if [[ -z ${p} ]] ; then
- # a nasty yet required piece of baggage
- exeinto /etc
- doexe "${FILESDIR}"/rmt || die
- fi
-
- dodoc AUTHORS ChangeLog* NEWS README* PORTS THANKS
- newman "${FILESDIR}"/tar.1 ${p}tar.1
- mv "${D}"/usr/sbin/${p}backup{,-tar}
- mv "${D}"/usr/sbin/${p}restore{,-tar}
-
- rm -f "${D}"/usr/$(get_libdir)/charset.alias
-}