* [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/
@ 2022-07-21 22:31 James Le Cuirot
0 siblings, 0 replies; 5+ messages in thread
From: James Le Cuirot @ 2022-07-21 22:31 UTC (permalink / raw
To: gentoo-commits
commit: bc19f3388c1ac31e8fb61962dde3a3efaf2f56d2
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 21 22:31:08 2022 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Jul 21 22:31:08 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc19f338
games-util/game-device-udev-rules: Call udev_reload in pkg_postrm
Closes: https://bugs.gentoo.org/859313
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
.../game-device-udev-rules/game-device-udev-rules-20220311.ebuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild
index c846172a90d0..7954b2916c15 100644
--- a/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild
+++ b/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild
@@ -78,3 +78,7 @@ src_install() {
pkg_postinst() {
udev_reload
}
+
+pkg_postrm() {
+ udev_reload
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/
@ 2022-12-06 9:11 Sam James
0 siblings, 0 replies; 5+ messages in thread
From: Sam James @ 2022-12-06 9:11 UTC (permalink / raw
To: gentoo-commits
commit: 980c4cf6f69ef98d6b2795b3cda4a7cb4ccbf1b7
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sun Dec 4 04:25:46 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 6 09:11:26 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=980c4cf6
games-util/game-device-udev-rules: Apply patsub_replacement defences
Per bug #881383, string replacing forms of parameter expansion must take care
to quote - or appropriately escape - any nested parameter expansions, assuming
that their values are intended to be taken literally (as is almost invariably
the case). This has long been the case, but the introduction of the new
patsub_replacement option in bash >=5.2 has brought the issue to the fore.
In the case of the games-util/game-device-udev-rules package, the improper
quoting is not yet causing any issues. Still, it is better to write the code
properly to begin with, especially considering the demonstrative value of
robust code.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Bug: https://bugs.gentoo.org/881383
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../game-device-udev-rules/game-device-udev-rules-20220311.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild
index 7954b2916c15..8c590397a84e 100644
--- a/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild
+++ b/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild
@@ -51,7 +51,7 @@ src_prepare() {
local SRC DEST EXTRA
for SRC in 60-steam-{input,vr}.rules; do
DEST=${SRC//steam/game}
- EXTRA=${FILESDIR}/${DEST/./-${PV}.}
+ EXTRA=${FILESDIR}/${DEST/./-"${PV}".}
# Make changes in a copy.
cp -v "${SRC}" "${DEST}" || die
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/
@ 2023-06-18 22:19 James Le Cuirot
0 siblings, 0 replies; 5+ messages in thread
From: James Le Cuirot @ 2023-06-18 22:19 UTC (permalink / raw
To: gentoo-commits
commit: dcff230266b80b6c8c1f6b3c88bf30be5b7617c7
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sat Jun 3 15:12:10 2023 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Jun 18 22:18:00 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcff2302
games-util/game-device-udev-rules: version bump, add config check
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/31287
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
games-util/game-device-udev-rules/Manifest | 1 +
.../game-device-udev-rules-20230603.ebuild | 88 ++++++++++++++++++++++
2 files changed, 89 insertions(+)
diff --git a/games-util/game-device-udev-rules/Manifest b/games-util/game-device-udev-rules/Manifest
index 2bd07d900f78..885d347adfb6 100644
--- a/games-util/game-device-udev-rules/Manifest
+++ b/games-util/game-device-udev-rules/Manifest
@@ -1 +1,2 @@
+DIST steam-devices-13443480a64fe8f10676606bd57da6de89f8ccb1.tar.gz 2355 BLAKE2B 646094d6c586e3f43cdc39b6c7c9c06af559b867eda80ad913159b5d216990fd508dab71d2ba5c17286472af7e027b01b316854bf9e3cdc7876ba680ab290a21 SHA512 d10b4a2c8c36a3f080a2a90869281b6cf2cfc1614598b30ec5e12b579271c6c8e47fd9ed86dae1095ddeee33401fb8b92b54a9b60bb9a95e44734f3686f57c83
DIST steam-devices-d87ef558408c5e7a1a793d738db4c9dc2cb5f8fa.tar.gz 2305 BLAKE2B 677cec02dfa1899b9bad9440a5810175b731234db271413c2027a5a1a81dbdaa8c5ccd922478c07304262d5c3bf16891875dcdab08341720b97953035d5ae93d SHA512 54a0a9f293ca03c01c5f3609c08e9e8cc1273a034b1164399623c55ec994414ecacff04d049bc4195da5f0601bb17de52c9e1770a0161caac9bb4b74d921b35b
diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20230603.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20230603.ebuild
new file mode 100644
index 000000000000..1ebbb07982f0
--- /dev/null
+++ b/games-util/game-device-udev-rules/game-device-udev-rules-20230603.ebuild
@@ -0,0 +1,88 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info 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="13443480a64fe8f10676606bd57da6de89f8ccb1"
+MY_P="steam-devices-${STEAM_COMMIT}"
+
+DESCRIPTION="udev rules for various game hardware devices"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Games
+ https://github.com/ValveSoftware/steam-devices/"
+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() {
+ CONFIG_CHECK="~HIDRAW"
+ linux-info_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
+}
+
+pkg_postrm() {
+ udev_reload
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/
@ 2024-08-23 21:35 James Le Cuirot
0 siblings, 0 replies; 5+ messages in thread
From: James Le Cuirot @ 2024-08-23 21:35 UTC (permalink / raw
To: gentoo-commits
commit: e264823e58f44bd667da743cf06d965158886e20
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 23 21:25:20 2024 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Aug 23 21:26:47 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e264823e
games-util/game-device-udev-rules: Drop old 20220311 and 20230603
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
games-util/game-device-udev-rules/Manifest | 2 -
.../game-device-udev-rules-20220311.ebuild | 84 ---------------------
.../game-device-udev-rules-20230603.ebuild | 88 ----------------------
3 files changed, 174 deletions(-)
diff --git a/games-util/game-device-udev-rules/Manifest b/games-util/game-device-udev-rules/Manifest
index 8a482bc1ab97..c9b2a0a59394 100644
--- a/games-util/game-device-udev-rules/Manifest
+++ b/games-util/game-device-udev-rules/Manifest
@@ -1,3 +1 @@
-DIST steam-devices-13443480a64fe8f10676606bd57da6de89f8ccb1.tar.gz 2355 BLAKE2B 646094d6c586e3f43cdc39b6c7c9c06af559b867eda80ad913159b5d216990fd508dab71d2ba5c17286472af7e027b01b316854bf9e3cdc7876ba680ab290a21 SHA512 d10b4a2c8c36a3f080a2a90869281b6cf2cfc1614598b30ec5e12b579271c6c8e47fd9ed86dae1095ddeee33401fb8b92b54a9b60bb9a95e44734f3686f57c83
-DIST steam-devices-d87ef558408c5e7a1a793d738db4c9dc2cb5f8fa.tar.gz 2305 BLAKE2B 677cec02dfa1899b9bad9440a5810175b731234db271413c2027a5a1a81dbdaa8c5ccd922478c07304262d5c3bf16891875dcdab08341720b97953035d5ae93d SHA512 54a0a9f293ca03c01c5f3609c08e9e8cc1273a034b1164399623c55ec994414ecacff04d049bc4195da5f0601bb17de52c9e1770a0161caac9bb4b74d921b35b
DIST steam-devices-e2971e45063f6b327ccedbf18e168bda6749155c.tar.gz 2401 BLAKE2B 0660eec36dbff1d140a991debd2a88c7e2d95abafbf070e8bfb68dbff2fbf005fe2dc59a9a18bb0da3057b2b36db91a4f588d40c6639f5a7a841378354900077 SHA512 6b83e466902eb0baae866da3639724f04f2e1e4d054c97f79f8c750c0836e5c3b8a7e8f6840ec67a22b4bb40f21958de6cb72df2235af8df34f02645d0765c0f
diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild
deleted file mode 100644
index 8c590397a84e..000000000000
--- a/games-util/game-device-udev-rules/game-device-udev-rules-20220311.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-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="d87ef558408c5e7a1a793d738db4c9dc2cb5f8fa"
-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
-}
-
-pkg_postrm() {
- udev_reload
-}
diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20230603.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20230603.ebuild
deleted file mode 100644
index 1ebbb07982f0..000000000000
--- a/games-util/game-device-udev-rules/game-device-udev-rules-20230603.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 2020-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit linux-info 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="13443480a64fe8f10676606bd57da6de89f8ccb1"
-MY_P="steam-devices-${STEAM_COMMIT}"
-
-DESCRIPTION="udev rules for various game hardware devices"
-HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Games
- https://github.com/ValveSoftware/steam-devices/"
-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() {
- CONFIG_CHECK="~HIDRAW"
- linux-info_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
-}
-
-pkg_postrm() {
- udev_reload
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/
@ 2024-08-23 21:35 James Le Cuirot
0 siblings, 0 replies; 5+ messages in thread
From: James Le Cuirot @ 2024-08-23 21:35 UTC (permalink / raw
To: gentoo-commits
commit: b5de09897b5252234a40a215b40c9fdd1b3d8468
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 23 21:24:51 2024 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Fri Aug 23 21:26:44 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5de0989
games-util/game-device-udev-rules: Version bump to 20240523
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
games-util/game-device-udev-rules/Manifest | 1 +
.../game-device-udev-rules-20240523.ebuild | 87 ++++++++++++++++++++++
2 files changed, 88 insertions(+)
diff --git a/games-util/game-device-udev-rules/Manifest b/games-util/game-device-udev-rules/Manifest
index 885d347adfb6..8a482bc1ab97 100644
--- a/games-util/game-device-udev-rules/Manifest
+++ b/games-util/game-device-udev-rules/Manifest
@@ -1,2 +1,3 @@
DIST steam-devices-13443480a64fe8f10676606bd57da6de89f8ccb1.tar.gz 2355 BLAKE2B 646094d6c586e3f43cdc39b6c7c9c06af559b867eda80ad913159b5d216990fd508dab71d2ba5c17286472af7e027b01b316854bf9e3cdc7876ba680ab290a21 SHA512 d10b4a2c8c36a3f080a2a90869281b6cf2cfc1614598b30ec5e12b579271c6c8e47fd9ed86dae1095ddeee33401fb8b92b54a9b60bb9a95e44734f3686f57c83
DIST steam-devices-d87ef558408c5e7a1a793d738db4c9dc2cb5f8fa.tar.gz 2305 BLAKE2B 677cec02dfa1899b9bad9440a5810175b731234db271413c2027a5a1a81dbdaa8c5ccd922478c07304262d5c3bf16891875dcdab08341720b97953035d5ae93d SHA512 54a0a9f293ca03c01c5f3609c08e9e8cc1273a034b1164399623c55ec994414ecacff04d049bc4195da5f0601bb17de52c9e1770a0161caac9bb4b74d921b35b
+DIST steam-devices-e2971e45063f6b327ccedbf18e168bda6749155c.tar.gz 2401 BLAKE2B 0660eec36dbff1d140a991debd2a88c7e2d95abafbf070e8bfb68dbff2fbf005fe2dc59a9a18bb0da3057b2b36db91a4f588d40c6639f5a7a841378354900077 SHA512 6b83e466902eb0baae866da3639724f04f2e1e4d054c97f79f8c750c0836e5c3b8a7e8f6840ec67a22b4bb40f21958de6cb72df2235af8df34f02645d0765c0f
diff --git a/games-util/game-device-udev-rules/game-device-udev-rules-20240523.ebuild b/games-util/game-device-udev-rules/game-device-udev-rules-20240523.ebuild
new file mode 100644
index 000000000000..54ac4c14b4bd
--- /dev/null
+++ b/games-util/game-device-udev-rules/game-device-udev-rules-20240523.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info 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="e2971e45063f6b327ccedbf18e168bda6749155c"
+MY_P="steam-devices-${STEAM_COMMIT}"
+
+DESCRIPTION="udev rules for various game hardware devices"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Games
+ https://github.com/ValveSoftware/steam-devices/"
+SRC_URI="https://github.com/ValveSoftware/steam-devices/archive/${STEAM_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+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
+"
+
+pkg_setup() {
+ CONFIG_CHECK="~HIDRAW"
+ linux-info_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/./-20220311.}
+
+ # 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
+}
+
+pkg_postrm() {
+ udev_reload
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-08-23 21:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-06 9:11 [gentoo-commits] repo/gentoo:master commit in: games-util/game-device-udev-rules/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2024-08-23 21:35 James Le Cuirot
2024-08-23 21:35 James Le Cuirot
2023-06-18 22:19 James Le Cuirot
2022-07-21 22:31 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