From 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 20 Mar 2021 14:27:17 +0000 Subject: gentoo resync : 20.03.2021 --- games-util/game-device-udev-rules/Manifest | 6 +- .../files/60-game-input-20201209.rules | 6 -- .../files/60-game-input-20201228.rules | 6 ++ .../game-device-udev-rules-20201209.ebuild | 80 ---------------------- .../game-device-udev-rules-20201228.ebuild | 80 ++++++++++++++++++++++ 5 files changed, 89 insertions(+), 89 deletions(-) delete mode 100644 games-util/game-device-udev-rules/files/60-game-input-20201209.rules create mode 100644 games-util/game-device-udev-rules/files/60-game-input-20201228.rules delete mode 100644 games-util/game-device-udev-rules/game-device-udev-rules-20201209.ebuild create mode 100644 games-util/game-device-udev-rules/game-device-udev-rules-20201228.ebuild (limited to 'games-util/game-device-udev-rules') diff --git a/games-util/game-device-udev-rules/Manifest b/games-util/game-device-udev-rules/Manifest index f2549244df6b..6143a64350b2 100644 --- a/games-util/game-device-udev-rules/Manifest +++ b/games-util/game-device-udev-rules/Manifest @@ -1,4 +1,4 @@ -AUX 60-game-input-20201209.rules 225 BLAKE2B 049966d6eb8e061bec5b18b3361957ceb29d23782a0cf361bebec618d1a4b4d2924782abb601cc4bdd15ff959346c42a33ff40da17feef02acf284294bbcbdc2 SHA512 1fd23d370d17f7c98445671c1d0138db7e69b405e8c630e54a094da021fb5fb716966d1da1f22043f9dfadc42e89efc3147c9bbc04c4100383de7ca2887a0700 -DIST steam-devices-3f9f151f8bb3caed0bee9e68d421562166605fd9.tar.gz 2149 BLAKE2B ac5d242649f77e1fce2facde990872abf98d51cfe353f1ff202e577cf01f917d49aaec292d74f495cddb5e6e8e5eceb21526131fbb65178efba80ed211fd9329 SHA512 c2f60a7e3a6ca6a122707914787bf12a11cc2fa4b70195446edf24b6ea2510569dfb12113116169d98438d8be1dedab6f828e3ca28ce52c4673fb693deb9603d -EBUILD game-device-udev-rules-20201209.ebuild 1889 BLAKE2B bb957f1de11580a1df75ea85047f673caf6538d6fce901bf97f33743d17fb00378a6432f0f422cb8d6c1859947052d2bdf3b97110773625de836e39f35d19590 SHA512 31a88f327a5f2681db84035ad1cf69cac381029c102e35801218c6ebce50a31fcf77d9cdbcb4b4f36a4b5b98cd65841cbb2c0008156a3016a5a28a15efbc77ae +AUX 60-game-input-20201228.rules 225 BLAKE2B 049966d6eb8e061bec5b18b3361957ceb29d23782a0cf361bebec618d1a4b4d2924782abb601cc4bdd15ff959346c42a33ff40da17feef02acf284294bbcbdc2 SHA512 1fd23d370d17f7c98445671c1d0138db7e69b405e8c630e54a094da021fb5fb716966d1da1f22043f9dfadc42e89efc3147c9bbc04c4100383de7ca2887a0700 +DIST steam-devices-ebc0f6a9e30bc0db2344df298c061c2c3b01776f.tar.gz 2171 BLAKE2B 01ef2371b13eca38419f90e4d1918370b6f2bdcb40264372e7cc1f8e858d7f5c9149f001c750a53f4c4435cf286fca1ab9f8869e5855eefbdb4d89acc95bb5c2 SHA512 08f2f411e8499469de747145bb159dd97c846a6329cf7aabe3445333fa8c9570c7de52d96c3e63d7e065464b9e4bbe2917a1a4a4f44a19454d3d707d524592f9 +EBUILD game-device-udev-rules-20201228.ebuild 1894 BLAKE2B 8b269fb019ddef18b114c55a45bbe97a6a6a8a512ed7ee2515c6c462ba28e5460d6e6fcecb6d1b6b335877f84b2d74e317a850860ec212fccf6a84474c2cd6c3 SHA512 a74a49d3cdb993b00c9be369726c3edfd0ddf50fc99749ef5f0bb03e37e5e06c010b987579cbc3c6815384483a3835ffabac409d2827c9ab4c769ab2ca198c8e MISC metadata.xml 361 BLAKE2B e0daf215fc923f490f00c8170de858eddc62c908c9ff5f79323a69a465dc0dd6671127244ce8285a49dd3892a5e56f62bc4254bc927537198eb04efc4f88a325 SHA512 86e237b8c6a70569154bcc2cc7b3992da0982b8dbf5d9ad56e4fe11c304457e8b82205001deba4b5d9344b598453c719e78b38959816343f4365cb1d447a53d6 diff --git a/games-util/game-device-udev-rules/files/60-game-input-20201209.rules b/games-util/game-device-udev-rules/files/60-game-input-20201209.rules deleted file mode 100644 index be2c499891a7..000000000000 --- a/games-util/game-device-udev-rules/files/60-game-input-20201209.rules +++ /dev/null @@ -1,6 +0,0 @@ - -# Thrustmaster T-Wireless -KERNEL=="hidraw*", ATTRS{idVendor}=="044f", ATTRS{idProduct}=="d007", TAG+="uaccess" - -# Google Stadia Controller -KERNEL=="hidraw*", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9400", TAG+="uaccess" diff --git a/games-util/game-device-udev-rules/files/60-game-input-20201228.rules b/games-util/game-device-udev-rules/files/60-game-input-20201228.rules new file mode 100644 index 000000000000..be2c499891a7 --- /dev/null +++ b/games-util/game-device-udev-rules/files/60-game-input-20201228.rules @@ -0,0 +1,6 @@ + +# Thrustmaster T-Wireless +KERNEL=="hidraw*", ATTRS{idVendor}=="044f", ATTRS{idProduct}=="d007", TAG+="uaccess" + +# Google Stadia Controller +KERNEL=="hidraw*", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9400", TAG+="uaccess" diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20201209.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20201209.ebuild deleted file mode 100644 index 986e181fec3d..000000000000 --- a/games-util/game-device-udev-rules/game-device-udev-rules-20201209.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit udev - -# Although this is mainly a tweaked version of Steam's udev rules, it -# also has its own rules and more may be added later so we version it -# independently. - -STEAM_COMMIT="3f9f151f8bb3caed0bee9e68d421562166605fd9" -MY_P="steam-devices-${STEAM_COMMIT}" - -DESCRIPTION="udev rules for various game hardware devices" -HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Games" -SRC_URI="https://github.com/ValveSoftware/steam-devices/archive/${STEAM_COMMIT}.tar.gz -> ${MY_P}.tar.gz" -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="+acl elogind systemd" -REQUIRED_USE="acl? ( || ( elogind systemd ) )" - -RDEPEND=" - acl? ( - elogind? ( sys-auth/elogind[acl] ) - systemd? ( sys-apps/systemd[acl] ) - ) - !acl? ( - acct-group/input - ) - virtual/udev -" - -S="${WORKDIR}/${MY_P}" - -pkg_setup() { - if ! use acl; then - elog "Users of game hardware devices must be added to the input group." - - if use elogind || use systemd; then - ewarn "It is highly recommended that you enable USE=acl on this package instead" - ewarn "when using elogind or systemd as this is more secure and just works." - fi - fi -} - -src_prepare() { - default - - local SRC DEST EXTRA - for SRC in 60-steam-{input,vr}.rules; do - DEST=${SRC//steam/game} - EXTRA=${FILESDIR}/${DEST/./-${PV}.} - - # Make changes in a copy. - cp -v "${SRC}" "${DEST}" || die - - # Append our additional rules. - if [[ -f ${EXTRA} ]]; then - cat "${EXTRA}" >> "${DEST}" || die - fi - - # Clear any existing mode settings. - sed -i 's/, *MODE="[0-9]*"//' "${DEST}" || die - - if ! use acl; then - # Replace uaccess tag with our group+mode if not using ACL. - sed -i 's/, *TAG+="uaccess"/, GROUP="input", MODE="0660"/' "${DEST}" || die - fi - done -} - -src_install() { - udev_dorules 60-game-{input,vr}.rules -} - -pkg_postinst() { - udev_reload -} diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20201228.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20201228.ebuild new file mode 100644 index 000000000000..a050aac120d1 --- /dev/null +++ b/games-util/game-device-udev-rules/game-device-udev-rules-20201228.ebuild @@ -0,0 +1,80 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit udev + +# Although this is mainly a tweaked version of Steam's udev rules, it +# also has its own rules and more may be added later so we version it +# independently. + +STEAM_COMMIT="ebc0f6a9e30bc0db2344df298c061c2c3b01776f" +MY_P="steam-devices-${STEAM_COMMIT}" + +DESCRIPTION="udev rules for various game hardware devices" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Games" +SRC_URI="https://github.com/ValveSoftware/steam-devices/archive/${STEAM_COMMIT}.tar.gz -> ${MY_P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+acl elogind systemd" +REQUIRED_USE="acl? ( || ( elogind systemd ) )" + +RDEPEND=" + acl? ( + elogind? ( sys-auth/elogind[acl] ) + systemd? ( sys-apps/systemd[acl] ) + ) + !acl? ( + acct-group/input + ) + virtual/udev +" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + if ! use acl; then + elog "Users of game hardware devices must be added to the input group." + + if use elogind || use systemd; then + ewarn "It is highly recommended that you enable USE=acl on this package instead" + ewarn "when using elogind or systemd as this is more secure and just works." + fi + fi +} + +src_prepare() { + default + + local SRC DEST EXTRA + for SRC in 60-steam-{input,vr}.rules; do + DEST=${SRC//steam/game} + EXTRA=${FILESDIR}/${DEST/./-${PV}.} + + # Make changes in a copy. + cp -v "${SRC}" "${DEST}" || die + + # Append our additional rules. + if [[ -f ${EXTRA} ]]; then + cat "${EXTRA}" >> "${DEST}" || die + fi + + # Clear any existing mode settings. + sed -i 's/, *MODE="[0-9]*"//' "${DEST}" || die + + if ! use acl; then + # Replace uaccess tag with our group+mode if not using ACL. + sed -i 's/, *TAG+="uaccess"/, GROUP="input", MODE="0660"/' "${DEST}" || die + fi + done +} + +src_install() { + udev_dorules 60-game-{input,vr}.rules +} + +pkg_postinst() { + udev_reload +} -- cgit v1.2.3