aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-16 15:19:06 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:27:24 +0700
commit48c94da3b7d17ef47ffb7549e009939e0f173c42 (patch)
tree748330f2c4d1ad1185dadcd8c0691cbc56e9e002
parent63be72b3da1f6ef517fb341c958e6d2a24cb826d (diff)
development/mit-scheme: Fixed file ownership.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--development/mit-scheme/mit-scheme.SlackBuild18
1 files changed, 18 insertions, 0 deletions
diff --git a/development/mit-scheme/mit-scheme.SlackBuild b/development/mit-scheme/mit-scheme.SlackBuild
index 9808312aaa9c..44e1068877b1 100644
--- a/development/mit-scheme/mit-scheme.SlackBuild
+++ b/development/mit-scheme/mit-scheme.SlackBuild
@@ -96,6 +96,12 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# take prebuilt info doc rather than build them by ourselves
mkdir -p $PKG/usr/info
tar xvf $CWD/$PRGNAM-$VERSION-doc-info.tar.gz
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cp -a $PRGNAM-$VERSION/doc/*.info $PKG/usr/info
find $PKG/usr/info -type f -exec gzip -9 {} \;
rm -rf $PRGNAM-$VERSION
@@ -103,12 +109,24 @@ rm -rf $PRGNAM-$VERSION
# ditto for html ones
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
tar xvf $CWD/$PRGNAM-$VERSION-doc-html.tar.gz
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cp -a $PRGNAM-$VERSION/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/html
rm -rf $PRGNAM-$VERSION
# ditto for pdf ones
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/pdf
tar xvf $CWD/$PRGNAM-$VERSION-doc-pdf.tar.gz
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cp -a $PRGNAM-$VERSION/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/pdf
rm -rf $PRGNAM-$VERSION