diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-05-26 08:22:52 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-05-31 10:36:17 +0700 |
commit | 6882781f58d90e09dfe227bef652eaf4da845045 (patch) | |
tree | f6ad768de3cc9dc26ac32eb51fe1bf15fc5e5113 | |
parent | 5a9735ce4699ed3a80d7422da0b01d91c4b6779e (diff) | |
download | slackbuilds-6882781f58d90e09dfe227bef652eaf4da845045.tar.gz |
network/imageshack-uploader: Fix permissions.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/imageshack-uploader/imageshack-uploader.SlackBuild | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/network/imageshack-uploader/imageshack-uploader.SlackBuild b/network/imageshack-uploader/imageshack-uploader.SlackBuild index 6a42a7ab53..186467bd4c 100644 --- a/network/imageshack-uploader/imageshack-uploader.SlackBuild +++ b/network/imageshack-uploader/imageshack-uploader.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=imageshack-uploader VERSION=${VERSION:-2.2.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} ARCH=i486 @@ -38,21 +38,18 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -mkdir $PRGNAM-$VERSION -cd $PRGNAM-$VERSION -ar x $CWD/$PRGNAM-$VERSION.deb +cd $PKG +ar p $CWD/$PRGNAM-$VERSION.deb data.tar.gz | tar xvz +cd $PKG chown -R root:root . +find . -type d -exec chmod 0755 {} \; 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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -tar xvf data.tar.gz -C $PKG + \( -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 {} \; -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # This binary was built against an old version of ffmpeg |