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 --- .../nvidia-legacy96-driver.SlackBuild | 24 ++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'system/nvidia-legacy96-driver') diff --git a/system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild b/system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild index a5d72654d0..a3a5cd1642 100644 --- a/system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild +++ b/system/nvidia-legacy96-driver/nvidia-legacy96-driver.SlackBuild @@ -81,7 +81,11 @@ rm -rf $SRCNAM sh $CWD/$SRCNAM.run --extract-only cd $SRCNAM 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 {} \; mkdir -p $PKG/usr/{bin,share,lib$LIBDIRSUFFIX,sbin} $PKG/usr/include/GL \ $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/{drivers,extensions} \ @@ -146,7 +150,11 @@ cd - # Compiling nvidia-installer from source cd $TMP/nvidia-installer-1.0.7 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 {} \; CFLAGS="$SLKCFLAGS" \ LDFLAGS="-lz" \ @@ -159,7 +167,11 @@ cd - # Compiling nvidia-settings from source cd $TMP/nvidia-settings-1.0 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 {} \; # Fix missing include necessary for newer version of libXxf86vm patch -p1 -i $CWD/NvCtrlAttributesVidMode.diff @@ -187,7 +199,11 @@ cd ../ # Compiling nvidia-xconfig from source cd $TMP/nvidia-xconfig-1.0 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 {} \; NV_CFLAGS="$SLKCFLAGS" \ make -- cgit v1.2.3