system/Solaar: Fix udev rules file and move to correct location.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Erich Ritz 2022-02-25 13:52:42 -06:00 committed by Willy Sudiarto Raharjo
parent b96ed2eca7
commit e4525bada5
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 7 additions and 8 deletions

View file

@ -12,7 +12,7 @@ devices, extra settings (usually not available through the standard
Linux system configuration) are supported.
By default, the udev rule
/etc/udev/rules.d/42-logitech-unifying-receiver.rules
/lib/udev/rules.d/42-logitech-unifying-receiver.rules
allows all members of the plugdev group to have read/write access to the
Unifying Receiver device. Therefore, make sure all desktop users are
part of the plugdev group:

View file

@ -2,7 +2,7 @@
# Slackware build script for Solaar
# Copyright 2019-2020 Erich Ritz, Scottsdale, Arizona, USA
# Copyright 2019-2022 Erich Ritz, Jenks, Oklahoma, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -38,9 +38,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
@ -71,12 +68,14 @@ find -L . \
python3 setup.py install --root=$PKG
mkdir -p $PKG/etc/udev/rules.d
cp -a rules.d/42-logitech-unify-permissions.rules $PKG/etc/udev/rules.d
mkdir -p $PKG/lib/udev/rules.d
mv $PKG/usr/share/solaar/udev-rules.d/42-logitech-unify-permissions.rules $PKG/lib/udev/rules.d
rmdir $PKG/usr/share/solaar/udev-rules.d
sed -i 's/#MODE="0660", GROUP="plugdev"/MODE="0660", GROUP="plugdev"/g' $PKG/lib/udev/rules.d/42-logitech-unify-permissions.rules
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
COPYING COPYRIGHT ChangeLog README.md \
COPYING COPYRIGHT ChangeLog README.md Release_Notes docs \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild