tar: updated to 1.16
This commit is contained in:
parent
aba8625cab
commit
7be125ee1d
@ -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
|
||||
|
11
tar/Pkgfile
11
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
|
||||
}
|
||||
|
14
tar/tar-1.16-rootp.patch
Normal file
14
tar/tar-1.16-rootp.patch
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user