[Slackbuilds-users] libgaminggear udev patch for non default GROUP
Gerardo Zamudio
gerardo.zamudio at linux.com
Fri Oct 11 14:14:19 UTC 2019
On Thursday, October 10, 2019 11:40:52 PM CDT King Beowulf wrote:
> 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
>
> *********************************************************
Thanks for the suggestion. You are right. I will submit this patch for the
next batch of updates. I will make the README more clear about this, too.
Regards,
Gerardo Zamudio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20191011/6d8de6c8/attachment-0001.asc>
More information about the SlackBuilds-users
mailing list