[Lunar-commits] <moonbase> p7zip: Fix for docs only readable by root
Duncan Gibson
engelsman at lunar-linux.org
Tue Feb 10 20:57:59 CET 2009
commit b32b9b363928eca82110a931547e4d5c5d30f49b
Author: Paul Bredbury <brebs at sent.com>
Date: Tue Feb 10 20:57:59 2009 +0100
p7zip: Fix for docs only readable by root
This is weird:
$ ll /usr/share/doc/p7zip
total 44
-rw------- 1 root root 24633 2008-11-30 19:33 ChangeLog
drwx------ 3 root root 4096 2008-11-30 16:12 DOCS
-rw------- 1 root root 8209 2008-11-30 16:12 README
The "find... -exec chmod" commands in p7zip's install.sh appear to have no effect?!
Anyway, this fixes them, with a little bit of other cleanup.
---
archive/p7zip/BUILD | 7 ++++++-
archive/p7zip/DETAILS | 6 +++---
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/archive/p7zip/BUILD b/archive/p7zip/BUILD
index 933b91b..18648e7 100644
--- a/archive/p7zip/BUILD
+++ b/archive/p7zip/BUILD
@@ -2,11 +2,16 @@
sedit 's:\/usr\/local:\/usr:' makefile install.sh &&
+ # Fix doc permissions - "find... -exec chmod" in install.sh has no effect
+ chmod 644 ChangeLog README &&
+ find DOCS -type d -print0 | xargs -0 chmod 755 &&
+ find DOCS -type f -print0 | xargs -0 chmod 644 &&
+
if [ "$USE_MODS" == "y" ]; then
make all3
else
make
- fi
+ fi &&
prepare_install &&
./install.sh
diff --git a/archive/p7zip/DETAILS b/archive/p7zip/DETAILS
index 757cf22..10b0956 100644
--- a/archive/p7zip/DETAILS
+++ b/archive/p7zip/DETAILS
@@ -6,11 +6,11 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/${MODULE}_${VERSION}
SOURCE_VFY=sha1:37223ff1f12dd3ba0d3f95b531bfbd01f974753f
WEB_SITE=http://p7zip.sourceforge.net
ENTERED=20060922
- UPDATED=20081221
- SHORT="A quick port of the command line version of 7zip"
+ UPDATED=20090210
+ SHORT="A quick port of the command-line version of 7zip"
cat << EOF
-p7zip is a quick port of 7z.exe and 7za.exe (command line version
+p7zip is a quick port of 7z.exe and 7za.exe (command-line version
of 7zip, see www.7-zip.org) for Unix. 7-Zip is a file archiver with
highest compression ratio. Since 4.10, p7zip (like 7-zip) supports
little-endian and big-endian machines.
More information about the Lunar-commits
mailing list