summaryrefslogtreecommitdiff
path: root/tar
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2006-10-22 19:02:19 +0200
committerTilman Sauerbeck <tilman@code-monkey.de>2006-10-22 19:02:19 +0200
commit7be125ee1dbab2ed827a1dc0b9c83e925751f5d7 (patch)
tree3533e01a090e5366bb8fbe5dada2d71ad36ad276 /tar
parentaba8625cabbcb4669844ed0a83b8b793de66985f (diff)
downloadcore-7be125ee1dbab2ed827a1dc0b9c83e925751f5d7.tar.gz
core-7be125ee1dbab2ed827a1dc0b9c83e925751f5d7.tar.xz
tar: updated to 1.16
Diffstat (limited to 'tar')
-rw-r--r--tar/.md5sum5
-rw-r--r--tar/Pkgfile11
-rw-r--r--tar/tar-1.16-rootp.patch14
3 files changed, 21 insertions, 9 deletions
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

Generated by cgit