public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/files/, games-util/game-device-udev-rules/
@ 2020-10-31 21:57 James Le Cuirot
  0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2020-10-31 21:57 UTC (permalink / raw
  To: gentoo-commits

commit:     d701134d275f0273076a897ad6df9429efc4d3bf
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 31 21:56:53 2020 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Oct 31 21:56:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d701134d

games-util/game-device-udev-rules: New package

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-util/game-device-udev-rules/Manifest         |  1 +
 .../files/60-game-input-20201025.rules             |  3 +
 .../game-device-udev-rules-20201025.ebuild         | 80 ++++++++++++++++++++++
 games-util/game-device-udev-rules/metadata.xml     | 12 ++++
 4 files changed, 96 insertions(+)

diff --git a/games-util/game-device-udev-rules/Manifest b/games-util/game-device-udev-rules/Manifest
new file mode 100644
index 00000000000..bb0a4866ef7
--- /dev/null
+++ b/games-util/game-device-udev-rules/Manifest
@@ -0,0 +1 @@
+DIST steam-devices-46bd9ae69542577c0db44a4bd664585c03eaad9d.tar.gz 2104 BLAKE2B 82a62fbe12ed7474234376d2fc66b99985b828954a1c861db1ba03cb2d10344bdfc2c0c3755278b2a4e0086f5b4ddef211412316d1c7fc68beaffd42f9ace3d2 SHA512 55db08aa8f48d21b67ce7850b80629fd70761104b04e260188ff7e6c7267827e2756b7feed937a647711342616649fe638efe9f8b3a6f898a5c8dd557683d76f

diff --git a/games-util/game-device-udev-rules/files/60-game-input-20201025.rules b/games-util/game-device-udev-rules/files/60-game-input-20201025.rules
new file mode 100644
index 00000000000..04a6ce41f4a
--- /dev/null
+++ b/games-util/game-device-udev-rules/files/60-game-input-20201025.rules
@@ -0,0 +1,3 @@
+
+# Thrustmaster T-Wireless
+KERNEL=="hidraw*", ATTRS{idVendor}=="044f", ATTRS{idProduct}=="d007", TAG+="uaccess"

diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20201025.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20201025.ebuild
new file mode 100644
index 00000000000..79f0a640125
--- /dev/null
+++ b/games-util/game-device-udev-rules/game-device-udev-rules-20201025.ebuild
@@ -0,0 +1,80 @@
+# 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="46bd9ae69542577c0db44a4bd664585c03eaad9d"
+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/metadata.xml b/games-util/game-device-udev-rules/metadata.xml
new file mode 100644
index 00000000000..9a8e14a39d4
--- /dev/null
+++ b/games-util/game-device-udev-rules/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>chewi@gentoo.org</email>
+		<name>James Le Cuirot</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>games@gentoo.org</email>
+		<name>Gentoo Games Project</name>
+	</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/files/, games-util/game-device-udev-rules/
@ 2020-11-21 15:51 James Le Cuirot
  0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2020-11-21 15:51 UTC (permalink / raw
  To: gentoo-commits

commit:     ea225264a51fbe1a4bd3293c92c97301236afea6
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 21 15:45:03 2020 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Nov 21 15:51:38 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea225264

games-util/game-device-udev-rules: Bump to 20201121 with PS5 support

Package-Manager: Portage-3.0.9, Repoman-3.0.1
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-util/game-device-udev-rules/Manifest                              | 2 +-
 .../{60-game-input-20201025.rules => 60-game-input-20201121.rules}      | 0
 ...dev-rules-20201025.ebuild => game-device-udev-rules-20201121.ebuild} | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-util/game-device-udev-rules/Manifest b/games-util/game-device-udev-rules/Manifest
index bb0a4866ef7..0ee19b7cf45 100644
--- a/games-util/game-device-udev-rules/Manifest
+++ b/games-util/game-device-udev-rules/Manifest
@@ -1 +1 @@
-DIST steam-devices-46bd9ae69542577c0db44a4bd664585c03eaad9d.tar.gz 2104 BLAKE2B 82a62fbe12ed7474234376d2fc66b99985b828954a1c861db1ba03cb2d10344bdfc2c0c3755278b2a4e0086f5b4ddef211412316d1c7fc68beaffd42f9ace3d2 SHA512 55db08aa8f48d21b67ce7850b80629fd70761104b04e260188ff7e6c7267827e2756b7feed937a647711342616649fe638efe9f8b3a6f898a5c8dd557683d76f
+DIST steam-devices-442b412ae2c1e20d6aa09f04f0245f9281788a71.tar.gz 2132 BLAKE2B ee8b22d5d29886f4dff126af6f54487212b8758afe4fc4b080ccccccbbc7d7893cee05612386f72cccd7050d415fc07b5fb8c9e4ca19b115304970c4934d1df7 SHA512 efc5359aa9b2015092df1c06079790739d11c955478aa91fc08d077ad51df9cc1be5ec6bc8596a68501fc987ba1993d66af2482a444df42f62b88142d50e660c

diff --git a/games-util/game-device-udev-rules/files/60-game-input-20201025.rules b/games-util/game-device-udev-rules/files/60-game-input-20201121.rules
similarity index 100%
rename from games-util/game-device-udev-rules/files/60-game-input-20201025.rules
rename to games-util/game-device-udev-rules/files/60-game-input-20201121.rules

diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20201025.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20201121.ebuild
similarity index 97%
rename from games-util/game-device-udev-rules/game-device-udev-rules-20201025.ebuild
rename to games-util/game-device-udev-rules/game-device-udev-rules-20201121.ebuild
index 79f0a640125..4b228d828cc 100644
--- a/games-util/game-device-udev-rules/game-device-udev-rules-20201025.ebuild
+++ b/games-util/game-device-udev-rules/game-device-udev-rules-20201121.ebuild
@@ -9,7 +9,7 @@ inherit udev
 # also has its own rules and more may be added later so we version it
 # independently.
 
-STEAM_COMMIT="46bd9ae69542577c0db44a4bd664585c03eaad9d"
+STEAM_COMMIT="442b412ae2c1e20d6aa09f04f0245f9281788a71"
 MY_P="steam-devices-${STEAM_COMMIT}"
 
 DESCRIPTION="udev rules for various game hardware devices"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/files/, games-util/game-device-udev-rules/
@ 2021-03-19 22:53 James Le Cuirot
  0 siblings, 0 replies; 3+ messages in thread
From: James Le Cuirot @ 2021-03-19 22:53 UTC (permalink / raw
  To: gentoo-commits

commit:     62bb5657d102475f934a1d79337406fc24f91452
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 19 22:53:26 2021 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Mar 19 22:53:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62bb5657

games-util/game-device-udev-rules: Bump to 20201228, drop old 20201209

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-util/game-device-udev-rules/Manifest                            | 2 +-
 .../{60-game-input-20201209.rules => 60-game-input-20201228.rules}    | 0
 ...v-rules-20201209.ebuild => game-device-udev-rules-20201228.ebuild} | 4 ++--
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/games-util/game-device-udev-rules/Manifest b/games-util/game-device-udev-rules/Manifest
index 7acd4da6b56..1b546c1d201 100644
--- a/games-util/game-device-udev-rules/Manifest
+++ b/games-util/game-device-udev-rules/Manifest
@@ -1 +1 @@
-DIST steam-devices-3f9f151f8bb3caed0bee9e68d421562166605fd9.tar.gz 2149 BLAKE2B ac5d242649f77e1fce2facde990872abf98d51cfe353f1ff202e577cf01f917d49aaec292d74f495cddb5e6e8e5eceb21526131fbb65178efba80ed211fd9329 SHA512 c2f60a7e3a6ca6a122707914787bf12a11cc2fa4b70195446edf24b6ea2510569dfb12113116169d98438d8be1dedab6f828e3ca28ce52c4673fb693deb9603d
+DIST steam-devices-ebc0f6a9e30bc0db2344df298c061c2c3b01776f.tar.gz 2171 BLAKE2B 01ef2371b13eca38419f90e4d1918370b6f2bdcb40264372e7cc1f8e858d7f5c9149f001c750a53f4c4435cf286fca1ab9f8869e5855eefbdb4d89acc95bb5c2 SHA512 08f2f411e8499469de747145bb159dd97c846a6329cf7aabe3445333fa8c9570c7de52d96c3e63d7e065464b9e4bbe2917a1a4a4f44a19454d3d707d524592f9

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-20201228.rules
similarity index 100%
rename from games-util/game-device-udev-rules/files/60-game-input-20201209.rules
rename to games-util/game-device-udev-rules/files/60-game-input-20201228.rules

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-20201228.ebuild
similarity index 95%
rename from games-util/game-device-udev-rules/game-device-udev-rules-20201209.ebuild
rename to games-util/game-device-udev-rules/game-device-udev-rules-20201228.ebuild
index 986e181fec3..a050aac120d 100644
--- a/games-util/game-device-udev-rules/game-device-udev-rules-20201209.ebuild
+++ b/games-util/game-device-udev-rules/game-device-udev-rules-20201228.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2020-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -9,7 +9,7 @@ inherit udev
 # also has its own rules and more may be added later so we version it
 # independently.
 
-STEAM_COMMIT="3f9f151f8bb3caed0bee9e68d421562166605fd9"
+STEAM_COMMIT="ebc0f6a9e30bc0db2344df298c061c2c3b01776f"
 MY_P="steam-devices-${STEAM_COMMIT}"
 
 DESCRIPTION="udev rules for various game hardware devices"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-19 22:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-21 15:51 [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/files/, games-util/game-device-udev-rules/ James Le Cuirot
  -- strict thread matches above, loose matches on Subject: below --
2021-03-19 22:53 James Le Cuirot
2020-10-31 21:57 James Le Cuirot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox