[Slackbuilds-users] libgaminggear udev patch for non default GROUP

King Beowulf kingbeowulf at gmail.com
Fri Oct 11 04:40:52 UTC 2019


Hello Gerardo

Since you have libgaminggear buildscript with the line

GROUP=${GROUP:-uinput-users}

resulting in some users assuming that they can use a different GROUP.  I
suggest applying the edit from the patch below to adjust 90-uiput.rules
to allow for a different group.

Thanks.

*********************************************************

---
/data/slackware/builds/libraries/libgaminggear/libgaminggear.SlackBuild.old
+++ /data/slackware/builds/libraries/libgaminggear/libgaminggear.SlackBuild
@@ -98,6 +98,10 @@
 # setup udev rules for uinput and uhid modules
 mkdir -p $PKG/lib/udev/rules.d
 install -m 644 $CWD/90-uinput.rules $PKG/lib/udev/rules.d/
+# In case the default group was changed:
+if [ "$GROUP" != "uinput-users" ]; then
+    sed -i "s|uinput-users|$GROUP|g" $PKG/lib/udev/rules.d/90-uinput.rules
+fi

 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc

*********************************************************


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20191010/8505502e/attachment.asc>


More information about the SlackBuilds-users mailing list