From 7be125ee1dbab2ed827a1dc0b9c83e925751f5d7 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 22 Oct 2006 19:02:19 +0200 Subject: [PATCH] tar: updated to 1.16 --- tar/.md5sum | 5 ++--- tar/Pkgfile | 11 +++++------ tar/tar-1.16-rootp.patch | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 9 deletions(-) create mode 100644 tar/tar-1.16-rootp.patch diff --git a/tar/.md5sum b/tar/.md5sum index b3719797..9a505c87 100644 --- a/tar/.md5sum +++ b/tar/.md5sum @@ -1,4 +1,3 @@ -761b3bd89fcd56414c674ecc5f311bc9 tar-1.15.1-rootp.patch -9e3623f7c88d8766878ecb27c980d86a tar-1.15.1-sparse.patch -57da3c38f8e06589699548a34d5a5d07 tar-1.15.1.tar.bz2 +3127a182050481f5dd5108a40228adbc tar-1.16-rootp.patch +d6fe544e834a8f9db6e6c7c2d38ec100 tar-1.16.tar.bz2 3f32d11defc901c8487566a1cddae663 tar.1 diff --git a/tar/Pkgfile b/tar/Pkgfile index f11df955..52a92e7c 100644 --- a/tar/Pkgfile +++ b/tar/Pkgfile @@ -3,20 +3,19 @@ # Maintainer: Per Lidén, core-ports at crux dot nu name=tar -version=1.15.1 -release=3 +version=1.16 +release=1 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 \ - $name-$version-sparse.patch $name-$version-rootp.patch tar.1) + $name-$version-rootp.patch tar.1) build() { cd $name-$version - patch -p1 < ../$name-$version-sparse.patch - patch -p0 < ../$name-$version-rootp.patch + patch -p1 -i $SRC/$name-$version-rootp.patch ./configure --prefix= \ --libexec=/usr/lib/tar \ --disable-nls make make DESTDIR=$PKG install - rm -rf $PKG/{sbin,info} + rm -rf $PKG/{sbin,share} install -D -m 644 ../tar.1 $PKG/usr/man/man1/tar.1 } diff --git a/tar/tar-1.16-rootp.patch b/tar/tar-1.16-rootp.patch new file mode 100644 index 00000000..3d0430fc --- /dev/null +++ b/tar/tar-1.16-rootp.patch @@ -0,0 +1,14 @@ +Don't keep permissions by default if we are root. + +diff -aur tar-1.16.orig/src/extract.c tar-1.16/src/extract.c +--- tar-1.16.orig/src/extract.c 2006-06-24 18:56:56.000000000 +0200 ++++ tar-1.16/src/extract.c 2006-10-22 18:53:38.706626788 +0200 +@@ -112,8 +112,6 @@ + extr_init (void) + { + we_are_root = geteuid () == 0; +- same_permissions_option += we_are_root; +- same_owner_option += we_are_root; + + /* Option -p clears the kernel umask, so it does not affect proper + restoration of file permissions. New intermediate directories will