summaryrefslogtreecommitdiffstats
path: root/system/vlock
diff options
context:
space:
mode:
author B. Watson2021-08-10 00:02:53 +0200
committer Willy Sudiarto Raharjo2021-10-12 19:51:32 +0200
commit2b2f6ed58edcf050f5396abb47ba7c09e76216a2 (patch)
tree7829df86aa0da65fdf3efb94d172978c6f22a48c /system/vlock
parent8f3702bc5b5103c449e8d30fcc8855694c534ec8 (diff)
downloadslackbuilds-2b2f6ed58edcf050f5396abb47ba7c09e76216a2.tar.gz
system/vlock: Remove template comment.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/vlock')
-rw-r--r--system/vlock/README19
-rw-r--r--system/vlock/vlock.SlackBuild10
2 files changed, 12 insertions, 17 deletions
diff --git a/system/vlock/README b/system/vlock/README
index ed377a4e41..80863aaaf5 100644
--- a/system/vlock/README
+++ b/system/vlock/README
@@ -1,16 +1,17 @@
vlock is a program to lock one or more sessions on the Linux console.
-This is especially useful for Linux machines which have multiple users with
-access to the console. One user may lock his or her session(s) while still
-allowing other users to use the system on other virtual consoles.
+This is especially useful for Linux machines which have multiple users
+with access to the console. One user may lock his or her session(s)
+while still allowing other users to use the system on other virtual
+consoles.
-If desired, the entire console may be locked and virtual console switching
-disabled.
+If desired, the entire console may be locked and virtual console
+switching disabled.
There's also a screensaver, based on libcaca.
-vlock has two particular options that this SlackBuild reserves to the wheel
-group:
+vlock has two particular options that this SlackBuild reserves to the
+wheel group:
-n,--new
@@ -24,7 +25,7 @@ and
kernels) while consoles are locked. This option only works if
the -a, --all option given.
-If you would like to set an alternative group, you may pass the VLOCK_GROUP
-variable to the SlackBuild like this:
+If you would like to set an alternative group, you may pass the
+VLOCK_GROUP variable to the SlackBuild like this:
VLOCK_GROUP=users ./vlock.SlackBuild
diff --git a/system/vlock/vlock.SlackBuild b/system/vlock/vlock.SlackBuild
index 7bd943a050..2032d4994a 100644
--- a/system/vlock/vlock.SlackBuild
+++ b/system/vlock/vlock.SlackBuild
@@ -54,9 +54,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -91,11 +88,8 @@ rm -rf $PRGNAM-$PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$PRGNAM-$VERSION
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 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# recent libcaca in -current no longer has the compatibility symlink
# cucul.h => caca.h, so: