From 926b93d445e92be03e62efcd742b2ac88f0d96ed Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Mon, 25 Nov 2013 12:23:31 +0100 Subject: various: Replace chmod command with find command from template. Signed-off-by: Heinz Wiesinger --- audio/aacgain/aacgain.SlackBuild | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'audio/aacgain/aacgain.SlackBuild') diff --git a/audio/aacgain/aacgain.SlackBuild b/audio/aacgain/aacgain.SlackBuild index 3764fb457d..ebcaebb60c 100644 --- a/audio/aacgain/aacgain.SlackBuild +++ b/audio/aacgain/aacgain.SlackBuild @@ -69,7 +69,11 @@ mkdir -p mp3gain cd mp3gain unzip $CWD/mp3gain-1_5_2-src.zip chown -R root:root . - chmod -R u+w,go+r-w,a-s . + 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 {} \; cd - #unpack faad2 @@ -78,7 +82,11 @@ tar xvf $CWD/faad2-2.7.tar.bz2 mv faad2-2.7 faad2 cd faad2 chown -R root:root . - chmod -R u+w,go+r-w,a-s . + 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 {} \; cd - #unpack mp4v2 @@ -87,7 +95,11 @@ tar xvf $CWD/mp4v2-trunk-r355.tar.bz2 mv mp4v2-trunk-r355 mp4v2 cd mp4v2 chown -R root:root . - chmod -R u+w,go+r-w,a-s . + 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 {} \; cd - #unpack aacgain @@ -95,7 +107,11 @@ rm -rf $PRGNAM tar xvf $CWD/${PRGNAM}_1_9.tar.bz2 cd $PRGNAM chown -R root:root . -chmod -R u+w,go+r-w,a-s . +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 {} \; # The new patch program forces us to change a little how patches are applied cd ../mp3gain -- cgit v1.2.3-80-g2a13