From 48c94da3b7d17ef47ffb7549e009939e0f173c42 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Sat, 16 Jan 2016 15:19:06 +0000 Subject: development/mit-scheme: Fixed file ownership. Signed-off-by: David Spencer --- development/mit-scheme/mit-scheme.SlackBuild | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'development') diff --git a/development/mit-scheme/mit-scheme.SlackBuild b/development/mit-scheme/mit-scheme.SlackBuild index 9808312aaa..44e1068877 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 -- cgit v1.2.3