summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2003-11-14 11:38:04 +0000
committerSeemant Kulleen <seemant@gentoo.org>2003-11-14 11:38:04 +0000
commitc29f900375bf071d1c11a6851136bbe72886594a (patch)
treecbba5518785713b838d1faeeae98f79d96d75934 /app-arch/tar
parentVersion bumped. Marked 0.03 stable and removed canna IUSE flag. (diff)
downloadgentoo-2-c29f900375bf071d1c11a6851136bbe72886594a.tar.gz
gentoo-2-c29f900375bf071d1c11a6851136bbe72886594a.tar.bz2
gentoo-2-c29f900375bf071d1c11a6851136bbe72886594a.zip
moved from sys-apps
Diffstat (limited to 'app-arch/tar')
-rw-r--r--app-arch/tar/ChangeLog100
-rw-r--r--app-arch/tar/Manifest7
-rw-r--r--app-arch/tar/files/digest-tar-1.13.25-r31
-rw-r--r--app-arch/tar/files/tar-1.13.19-r1-gentoo.diff40
-rw-r--r--app-arch/tar/files/tar-1.13.19.patch40
-rw-r--r--app-arch/tar/files/tar-1.13.25-r3.gentoo.diff15
-rw-r--r--app-arch/tar/files/tar.1376
-rw-r--r--app-arch/tar/tar-1.13.25-r3.ebuild70
8 files changed, 649 insertions, 0 deletions
diff --git a/app-arch/tar/ChangeLog b/app-arch/tar/ChangeLog
new file mode 100644
index 000000000000..6c5937e8223b
--- /dev/null
+++ b/app-arch/tar/ChangeLog
@@ -0,0 +1,100 @@
+# ChangeLog for sys-apps/tar
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/ChangeLog,v 1.1 2003/11/14 11:38:01 seemant Exp $
+
+*tar-1.13.25-r3 (13 Nov 2003)
+
+ 13 Nov 2003; Seemant Kulleen <seemant@gentoo.org> tar-1.13.25-r3.ebuild,
+ files/tar-1.13.19-r1-gentoo.diff, files/tar-1.13.19.patch,
+ files/tar-1.13.25-r3.gentoo.diff, files/tar.1:
+ Moved from sys-apps to app-arch
+
+ 02 Nov 2003; Jason Wever <weeve@gentoo.org> tar-1.13.25-r3.ebuild:
+ Added sparc keyword.
+
+ 01 Nov 2003; Seemant Kulleen <seemant@gentoo.org> tar-1.13.25-r1.ebuild,
+ tar-1.13.25-r2.ebuild, tar-1.13.25-r3.ebuild:
+ src_uri fix to add gentoo mirrors first, since the gnu mirrors are still outta
+ whack. Closes bug #32521 by Stony Yakovac <stonyy@tek.com>
+
+ 28 Oct 2003; Chris PeBenito <pebenito@gentoo.org> tar-1.13.25-r3.ebuild:
+ Remove unneeded old API SELinux patch
+
+ 02 Sep 2003; Martin Holzer <mholzer@gentoo.org> tar-1.13.25-r1.ebuild,
+ tar-1.13.25-r2.ebuild, tar-1.13.25-r3.ebuild:
+ Now uses mirror://gnu.
+
+*tar-1.13.25-r3 (23 Mar 2003)
+
+ 20 May 2003; Joshua Kinard <kumba@gentoo.org> tar-1.13.25-r3.ebuild:
+ Added gnuconfig eclass to support linux-mips targets
+
+ 23 Mar 2003; Joshua Brindle <method@gentoo.org> tar-1.13.25-r3.ebuild:
+ added selinux support
+
+ 20 Feb 2003; Zach Welch <zwelch@gentoo.org> tar-1-13-25-r3.ebuild :
+ Added arm to keywords.
+
+ 09 Feb 2003; Guy Martin <gmsoft@gentoo.org> tar-1-13-25-r3.ebuild :
+ Added hppa to keywords.
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*tar-1-13-25-r3 (01 Oct 2002)
+
+ 18 Jan 2003; Jan Seidel <tuxus@gentoo.org> :
+ Added mips to keywords
+
+ 01 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> :
+ Security update. Added patch developed by Redhat to fix directory traversals.
+
+ 09 Dec 2002; Jon Portnoy <avenj@gentoo.org> :
+ Updated ebuild to work with USE="icc", no need to up the revision
+ number.
+
+ 10 Dec 2002; Jon Portnoy <avenj@gentoo.org> :
+ Moved USE="icc" into r4 to prevent blocked deps with icc-7.0.
+
+*tar-1.13.19-r1.ebuild (14 July 2002)
+
+ 16 Aug 2002; Seemant Kulleen <seemant@gentoo.org> tar-1.13.25-r2.ebuild :
+
+ Added gzip, bzip2 and ncompress to DEPEND list. Closes bug #6611 by
+ laurent.mouillart@free.fr (Laurent Mouillart)
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> tar-1.13.19.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> tar-1.13.19-r1.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+*tar-1.13.18-r4.ebuild (14 July 2002)
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> tar-1.13.18-r4.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+*tar-1.13.25-r2 (12 Apr 2002)
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> tar-1.13.25.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> tar-1.13.25-r2.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+ 12 Apr 2002; Spider <spider@gentoo.org> :
+ Updating the tar with a symlink in /etc that allows remote-tar to work properly.
+ Fix a cd to make dodoc and doman work
+ Credit to Daniel Mettler <mettlerd@icu.unizh.ch> for the patch for rmt
+
+
+*tar-1.13.25-r1 (1 Feb 2002)
+
+ 14 Jul 2002; phoen][x <phoenix@gentoo.org> tar-1.13.25-r1.ebuild :
+ Added LICENSE, KEYWORDS, SLOT.
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
+
+ Added initial ChangeLog which should be updated whenever the package is
+ updated in any way. This changelog is targetted to users. This means that the
+ comments should well explained and written in clean English. The details about
+ writing correct changelogs are explained in the skel.ChangeLog file which you
+ can find in the root directory of the portage repository.
diff --git a/app-arch/tar/Manifest b/app-arch/tar/Manifest
new file mode 100644
index 000000000000..e102bc025799
--- /dev/null
+++ b/app-arch/tar/Manifest
@@ -0,0 +1,7 @@
+MD5 2ac24e49838ee230e33a2ed2c4965941 tar-1.13.25-r3.ebuild 1442
+MD5 3998b9dc7cb15fd6eebb3f6739c7983f ChangeLog 3712
+MD5 a1ab9f186c82b2894e285c1945dcbbcc files/tar-1.13.19.patch 706
+MD5 a5f8c5da7a9465ea1978145f3ef0610c files/tar.1 7113
+MD5 4518c28dd014a2efcc10690d53b58ffd files/tar-1.13.25-r3.gentoo.diff 314
+MD5 a1ab9f186c82b2894e285c1945dcbbcc files/tar-1.13.19-r1-gentoo.diff 706
+MD5 ebfd134ad54b3a6a08124bef38ecdad6 files/digest-tar-1.13.25-r3 64
diff --git a/app-arch/tar/files/digest-tar-1.13.25-r3 b/app-arch/tar/files/digest-tar-1.13.25-r3
new file mode 100644
index 000000000000..467f114af098
--- /dev/null
+++ b/app-arch/tar/files/digest-tar-1.13.25-r3
@@ -0,0 +1 @@
+MD5 6ef8c906e81eee441f8335652670ac4a tar-1.13.25.tar.gz 1312227
diff --git a/app-arch/tar/files/tar-1.13.19-r1-gentoo.diff b/app-arch/tar/files/tar-1.13.19-r1-gentoo.diff
new file mode 100644
index 000000000000..26c0d63bedc1
--- /dev/null
+++ b/app-arch/tar/files/tar-1.13.19-r1-gentoo.diff
@@ -0,0 +1,40 @@
+*** misc.c.orig Sat Jan 13 08:59:29 2001
+--- misc.c Mon Jul 9 15:45:09 2001
+***************
+*** 201,217 ****
+ {
+ char const *p = name + FILESYSTEM_PREFIX_LEN (name);
+
+ for (;;)
+ {
+! if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2]))
+ return 1;
+
+ do
+ {
+! if (! *p++)
+ return 0;
+ }
+! while (! ISSLASH (*p));
+ }
+ }
+
+--- 201,218 ----
+ {
+ char const *p = name + FILESYSTEM_PREFIX_LEN (name);
+
++ if(ISSLASH (*p) ) return 1;
+ for (;;)
+ {
+! if (p[0] == '.' && p[1] == '.' && (!p[2] || ISSLASH (p[2])))
+ return 1;
+
+ do
+ {
+! if (! *p)
+ return 0;
+ }
+! while (! ISSLASH (*p++));
+ }
+ }
+
diff --git a/app-arch/tar/files/tar-1.13.19.patch b/app-arch/tar/files/tar-1.13.19.patch
new file mode 100644
index 000000000000..26c0d63bedc1
--- /dev/null
+++ b/app-arch/tar/files/tar-1.13.19.patch
@@ -0,0 +1,40 @@
+*** misc.c.orig Sat Jan 13 08:59:29 2001
+--- misc.c Mon Jul 9 15:45:09 2001
+***************
+*** 201,217 ****
+ {
+ char const *p = name + FILESYSTEM_PREFIX_LEN (name);
+
+ for (;;)
+ {
+! if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2]))
+ return 1;
+
+ do
+ {
+! if (! *p++)
+ return 0;
+ }
+! while (! ISSLASH (*p));
+ }
+ }
+
+--- 201,218 ----
+ {
+ char const *p = name + FILESYSTEM_PREFIX_LEN (name);
+
++ if(ISSLASH (*p) ) return 1;
+ for (;;)
+ {
+! if (p[0] == '.' && p[1] == '.' && (!p[2] || ISSLASH (p[2])))
+ return 1;
+
+ do
+ {
+! if (! *p)
+ return 0;
+ }
+! while (! ISSLASH (*p++));
+ }
+ }
+
diff --git a/app-arch/tar/files/tar-1.13.25-r3.gentoo.diff b/app-arch/tar/files/tar-1.13.25-r3.gentoo.diff
new file mode 100644
index 000000000000..9d4e6b3b47e7
--- /dev/null
+++ b/app-arch/tar/files/tar-1.13.25-r3.gentoo.diff
@@ -0,0 +1,15 @@
+--- tar-1.13.25/src/misc.c.orig Mon Aug 27 00:14:26 2001
++++ tar-1.13.25/src/misc.c Mon May 27 11:29:31 2002
+@@ -214,6 +214,13 @@
+ return 0;
+ }
+ while (! ISSLASH (*p));
++
++ do
++ {
++ if (! *p++)
++ return 0;
++ }
++ while ( ISSLASH (*p));
+ }
+ }
diff --git a/app-arch/tar/files/tar.1 b/app-arch/tar/files/tar.1
new file mode 100644
index 000000000000..f7de1ec5be5e
--- /dev/null
+++ b/app-arch/tar/files/tar.1
@@ -0,0 +1,376 @@
+.\" @(#)tar.1 1.11.1 93/19/22 PJV;
+.TH TAR 1 "22 September 1993"
+.SH NAME
+tar \- The GNU version of the tar archiving utility
+.SH SYNOPSIS
+.B tar
+[
+.B \-
+]
+.B A --catenate --concatenate \||\| c --create \||\| d --diff --compare \||\| r --append \||\| t --list \||\| u --update \||\| x -extract --get
+[
+.B --atime-preserve
+]
+[
+.B -b, --block-size N
+]
+[
+.B -B, --read-full-blocks
+]
+[
+.B -C, --directory DIR
+]
+[
+.B --checkpoint
+]
+[
+.B -f, --file [HOSTNAME:]F
+]
+[
+.B --force-local
+]
+[
+.B -F, --info-script F --new-volume-script F
+]
+[
+.B -G, --incremental
+]
+[
+.B -g, --listed-incremental F
+]
+[
+.B -h, --dereference
+]
+[
+.B -i, --ignore-zeros
+]
+[
+.B -j, --bzip2
+]
+[
+.B --ignore-failed-read
+]
+[
+.B -k, --keep-old-files
+]
+[
+.B -K, --starting-file F
+]
+[
+.B -l, --one-file-system
+]
+[
+.B -L, --tape-length N
+]
+[
+.B -m, --modification-time
+]
+[
+.B -M, --multi-volume
+]
+[
+.B -N, --after-date DATE, --newer DATE
+]
+[
+.B -o, --old-archive, --portability
+]
+[
+.B -O, --to-stdout
+]
+[
+.B -p, --same-permissions, --preserve-permissions
+]
+[
+.B -P, --absolute-names
+]
+[
+.B --preserve
+]
+[
+.B -R, --record-number
+]
+[
+.B --remove-files
+]
+[
+.B -s, --same-order, --preserve-order
+]
+[
+.B --same-owner
+]
+[
+.B --numeric-owner
+]
+[
+.B -S, --sparse
+]
+[
+.B -T, --files-from F
+]
+[
+.B --null
+]
+[
+.B --totals
+]
+[
+.B -v, --verbose
+]
+[
+.B -V, --label NAME
+]
+[
+.B --version
+]
+[
+.B -w, --interactive, --confirmation
+]
+[
+.B -W, --verify
+]
+[
+.B --exclude=FILE
+]
+[
+.B -X, --exclude-from FILE
+]
+[
+.B -Z, --compress, --uncompress
+]
+[
+.B -z, --gzip, --ungzip
+]
+[
+.B --use-compress-program PROG
+]
+[
+.B --block-compress
+]
+[
+.B --rsh-command=CMD
+]
+[
+.B -[0-7][lmh]
+]
+.TP
+.I filename1 [ filename2, ... filenameN ]
+.TP
+.I directory1 [ directory2, ...directoryN ]
+.SH DESCRIPTION
+.LP
+This manual page documents the GNU version of
+.B tar
+, an archiving program designed to store and extract files from
+an archive file known as a
+.IR tarfile.
+A
+.IR tarfile
+may be made on a tape drive, however, it is also common
+to write a
+.IR tarfile
+to a normal file.
+The first argument to
+.B tar
+must be one of the options:
+.BR Acdrtux ,
+followed by any optional functions.
+The final arguments to
+.B tar
+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 -xvvf foo.tar
+extract foo.tar
+.TP
+.B tar -xvvzf foo.tar.gz
+extract gzipped foo.tar.gz
+.TP
+.B tar -cvvf foo.tar foo/
+tar contents of folder foo in foo.tar
+.SH "FUNCTION LETTERS"
+.TP
+.B One of the following options must be used:
+.TP
+.B -A, --catenate, --concatenate
+append tar files to an archive
+.TP
+.B -c, --create
+create a new archive
+.TP
+.B -d, --diff, --compare
+find differences between archive and file system
+.TP
+.B --delete
+delete from the archive (not for use on mag tapes!)
+.TP
+.B -r, --append
+append files to the end of an archive
+.TP
+.B -t, --list
+list the contents of an archive
+.TP
+.B -u, --update
+only append files that are newer than copy in archive
+.TP
+.B -x, --extract, --get
+extract files from an archive
+.SH "OTHER OPTIONS"
+.TP
+.B --atime-preserve
+don't change access times on dumped files
+.TP
+.B -b, --block-size N
+block size of Nx512 bytes (default N=20)
+.TP
+.B -B, --read-full-blocks
+reblock as we read (for reading 4.2BSD pipes)
+.TP
+.B -C, --directory DIR
+change to directory DIR
+.TP
+.B --checkpoint
+print directory names while reading the archive
+.TP
+.B -f, --file [HOSTNAME:]F
+use archive file or device F (default "-", meaning stdin/stdout)
+.TP
+.B --force-local
+archive file is local even if has a colon
+.TP
+.B -F, --info-script F --new-volume-script F
+run script at end of each tape (implies -M)
+.TP
+.B -G, --incremental
+create/list/extract old GNU-format incremental backup
+.TP
+.B -g, --listed-incremental F
+create/list/extract new GNU-format incremental backup
+.TP
+.B -h, --dereference
+don't dump symlinks; dump the files they point to
+.TP
+.B -i, --ignore-zeros
+ignore blocks of zeros in archive (normally mean EOF)
+.TP
+.B -j, --bzip2
+filter archive through bzip2, use to decompress .bz2 files
+.TP
+.B --ignore-failed-read
+don't exit with non-zero status on unreadable files
+.TP
+.B -k, --keep-old-files
+keep existing files; don't overwrite them from archive
+.TP
+.B -K, --starting-file F
+begin at file F in the archive
+.TP
+.B -l, --one-file-system
+stay in local file system when creating an archive
+.TP
+.B -L, --tape-length N
+change tapes after writing N*1024 bytes
+.TP
+.B -m, --modification-time
+don't extract file modified time
+.TP
+.B -M, --multi-volume
+create/list/extract multi-volume archive
+.TP
+.B -N, --after-date DATE, --newer DATE
+only store files newer than DATE
+.TP
+.B -o, --old-archive, --portability
+write a V7 format archive, rather than ANSI format
+.TP
+.B -O, --to-stdout
+extract files to standard output
+.TP
+.B -p, --same-permissions, --preserve-permissions
+extract all protection information
+.TP
+.B -P, --absolute-paths
+don't strip leading `/'s from file names
+.TP
+.B --preserve
+like -p -s
+.TP
+.B -R, --record-number
+show record number within archive with each message
+.TP
+.B --remove-files
+remove files after adding them to the archive
+.TP
+.B -s, --same-order, --preserve-order
+list of names to extract is sorted to match archive
+.TP
+.B --same-owner
+create extracted files with the same ownership
+.TP
+.B --numeric-owner
+always use numbers for user/group names
+.TP
+.B -S, --sparse
+handle sparse files efficiently
+.TP
+.B -T, --files-from F
+get names to extract or create from file F
+.TP
+.B --null
+-T reads null-terminated names, disable -C
+.TP
+.B --totals
+print total bytes written with --create
+.TP
+.B -v, --verbose
+verbosely list files processed
+.TP
+.B -V, --label NAME
+create archive with volume name NAME
+.TP
+.B --version
+print tar program version number
+.TP
+.B -w, --interactive, --confirmation
+ask for confirmation for every action
+.TP
+.B -W, --verify
+attempt to verify the archive after writing it
+.TP
+.B --exclude=FILE
+exclude file FILE
+.TP
+.B -X, --exclude-from FILE
+exclude files listed in FILE
+.TP
+.B -Z, --compress, --uncompress
+filter the archive through compress
+.TP
+.B -z, --gzip, --ungzip
+filter the archive through gzip
+.TP
+.B --use-compress-program PROG
+filter the archive through PROG (which must accept -d)
+.TP
+.B --block-compress
+block the output of compression program for tapes
+.TP
+.B --rsh-command=CMD
+Use remote COMMAND instead of `rsh'. This option exists so that
+people who use something other than the standard `rsh' (e.g., a
+Kerberized `rsh') can access a remote device.
+.TP
+.B -[0-7][lmh]
+specify drive and density
+.SH BUGS
+.LP
+The GNU folks, in general, abhor man pages, and create info documents instead.
+The maintainer of tar falls into this category. This man page is neither
+complete, nor current, and was included in the Debian Linux packaging of tar
+entirely to reduce the frequency with which the lack of a man page gets
+reported as a bug in our defect tracking system.
+
+If you really want to understand tar, then you should run info and read the
+tar info pages, or use the info mode in emacs.
+
diff --git a/app-arch/tar/tar-1.13.25-r3.ebuild b/app-arch/tar/tar-1.13.25-r3.ebuild
new file mode 100644
index 000000000000..ec7c91eac43b
--- /dev/null
+++ b/app-arch/tar/tar-1.13.25-r3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/tar/tar-1.13.25-r3.ebuild,v 1.1 2003/11/14 11:38:01 seemant Exp $
+
+inherit eutils gnuconfig
+
+IUSE="nls static build"
+
+S=${WORKDIR}/${P}
+DESCRIPTION="Use this to try make tarballs :)"
+HOMEPAGE="http://www.gnu.org/software/tar/"
+SRC_URI="mirror://gentoo/${P}.tar.gz
+ mirror://gnu/tar/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 amd64 alpha mips hppa arm ppc ia64 sparc"
+
+DEPEND="sys-apps/gzip
+ sys-apps/bzip2
+ app-arch/ncompress"
+
+RDEPEND="nls? ( >=sys-devel/gettext-0.10.35 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PF}.gentoo.diff
+}
+
+src_compile() {
+
+ # Fix configure scripts to support linux-mips targets
+ gnuconfig_update
+
+ local myconf
+ [ -z "`use nls`" ] && myconf="--disable-nls"
+ econf \
+ --bindir=/bin \
+ --libexecdir=/usr/lib/misc \
+ ${myconf} || die
+
+ if [ -z "`use static`" ]
+ then
+ emake || die
+ else
+ emake LDFLAGS=-static || die
+ fi
+
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ #FHS 2.1 stuff
+ dodir /usr/sbin
+ cd ${D}
+ mv usr/lib/misc/rmt usr/sbin/rmt.gnu
+ dosym rmt.gnu /usr/sbin/rmt
+ # a nasty yet required symlink:
+ dodir /etc
+ dosym /usr/sbin/rmt /etc/rmt
+ cd ${S}
+ if [ -z "`use build`" ]
+ then
+ dodoc AUTHORS ChangeLog* COPYING NEWS README* PORTS THANKS
+ doman ${FILESDIR}/tar.1
+ else
+ rm -rf ${D}/usr/share
+ fi
+}