mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
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:
parent
b96ed2eca7
commit
e4525bada5
2 changed files with 7 additions and 8 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue