aboutsummaryrefslogtreecommitdiff
path: root/system/game-devices-udev
diff options
context:
space:
mode:
authorJeremy Hansen <jebrhansen+SBo@gmail.com>2024-09-07 08:47:18 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-07 09:06:25 +0700
commit0d6c09fba5dbd91d6a49a9e3b714b8d4f228381d (patch)
treef7ba87b2887e69353741a54e268d4ce1abe5300a /system/game-devices-udev
parent5fca999e2ecc00475c1eb19196db34dca38a1dc1 (diff)
system/game-devices-udev: Added (udev rules for game-devices).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/game-devices-udev')
-rw-r--r--system/game-devices-udev/README35
-rw-r--r--system/game-devices-udev/README.devices134
-rw-r--r--system/game-devices-udev/doinst.sh4
-rw-r--r--system/game-devices-udev/game-devices-udev.SlackBuild103
-rw-r--r--system/game-devices-udev/game-devices-udev.info10
-rw-r--r--system/game-devices-udev/slack-desc19
6 files changed, 305 insertions, 0 deletions
diff --git a/system/game-devices-udev/README b/system/game-devices-udev/README
new file mode 100644
index 000000000000..d6dd559b209b
--- /dev/null
+++ b/system/game-devices-udev/README
@@ -0,0 +1,35 @@
+game-devices-udev (udev rules for game-devices)
+
+This package contains udev rules to make supported gamepad and VR
+controllers available with user-grade permissions. A full list of the
+recognized brands and devices (with vendor and product IDs) are
+available in the README.devices file.
+
+All controller rules are installed by default. The following variables
+can be passed with VARIABLE=NO to the SlackBuild script to not install
+that rule.
+
+_8BITDO # Bash doesn't allow variables to start with a number
+ALPHA
+ASTRO
+BETOP
+GOOGLE
+HORI
+HTCVR
+LOGITECH
+MADCATZ
+MIRCOSOFT
+NACON
+NINTENDO
+NVIDIA
+PDP
+PERSONALCOMM
+PIDCODES
+POWERA
+RAZER
+SONY
+SONYVR
+UNINPUT
+VALVE
+VALVEVR
+ZEROPLUS
diff --git a/system/game-devices-udev/README.devices b/system/game-devices-udev/README.devices
new file mode 100644
index 000000000000..2d570d3d13f6
--- /dev/null
+++ b/system/game-devices-udev/README.devices
@@ -0,0 +1,134 @@
+# 8Bitdo (2dc8)
+ * 8Bitdo F30 P1
+ * 8Bitdo F30 P2
+ * 8Bitdo N30
+ * 8Bitdo SF30
+ * 8Bitdo SN30
+ * 8Bitdo F30 Pro
+ * 8Bitdo N30 Pro
+ * 8Bitdo SF30 Pro
+ * 8Bitdo SN30 Pro
+ * 8BitDo SN30 Pro+; Bluetooth; USB
+ * 8Bitdo F30 Arcade
+ * 8Bitdo N30 Arcade
+ * 8Bitdo ZERO
+ * 8Bitdo Retro-Bit xRB8-64
+ * 8BitDo Pro 2; Bluetooth; USB (2dc8:6003)
+ * 8BitDo Pro 2 Wired; USB (2dc8:3106), (2dc8:3010) ([Setup Instructions](8BitDo.md))
+ * 8BitDo Ultimate Wired Controller for Xbox; USB (2dc8:2003)
+
+# Alpha Imaging Technology Corp. (114d)
+ * VR Set (114d:8a12)
+
+# ASTRO Gaming (9886)
+ * ASTRO Gaming C40 Controller; USB (9886:0025)
+
+# Betop (11c0)
+ * Betop PS4 Fun Controller (11c0:4001)
+
+# Google (18d1)
+ * Google Stadia Controller; Bluetooth; USB (18d1:9400)
+
+# Hori (0f0d)
+ * Hori RAP4 (0f0d:008a)
+ * Hori HORIPAD 4 FPS (0f0d:0055)
+ * Hori HORIPAD 4 FPS Plus (0f0d:0066)
+ * Hori HORIPAD S; USB (0f0d:00c1)
+ * Hori Nintendo Switch HORIPAD Wired Controller; USB (0f0d:00c1)
+ * Hori Pokkén Tournament DX Pro Pad for Nintendo Switch; USB (0f0d:0092)
+
+# HTC (0bb4)
+ * Unknown (0bb4:2c87)
+ * Unknown (0bb4:0306)
+ * Unknown (0bb4:0309)
+ * Unknown (0bb4:030a)
+ * Unknown (0bb4:030b)
+ * Unknown (0bb4:030c)
+ * Unknown (0bb4:030e)
+ * HTC VIVE Cosmos; USB (0bb4:030e)(057e:0315)(057e:0323)
+
+# Logitech (046d)
+ * Logitech F310 Gamepad; USB (046d:c216)
+ * Logitech F710 Wireless Gamepad; USB (046d:c21f) #EXPERIMENTAL
+
+# Mad Catz (0738)
+ * Mad Catz Street Fighter V Arcade FightPad PRO (0738:8250)
+ * Mad Catz Street Fighter V Arcade FightStick TE S+ (0738:8384)
+
+# Microsoft (045e)
+ * Microsoft Xbox360 Controller; USB (045e:028e) #EXPERIMENTAL
+ * Microsoft Xbox 360 Wireless Receiver for Windows; USB (045e:0719)
+ * Microsoft Xbox One S Controller; Bluetooth; USB (045e:02ea) #EXPERIMENTAL
+
+# Nacon (146b)
+ * Nacon PS4 Revolution Pro Controller (146b:0d01)
+
+# Nintendo (057e)
+ * Nintendo Switch Pro Controller; Bluetooth; USB (057e:2009)
+ * Nintendo GameCube Controller / Adapter; USB (057e:0337)
+ * Nintendo Switch Joy-Con Charging Grip (057e:200e)
+ * Nintendo Switch Joy-Con (L); Bluetooth (057e:2006)
+ * Nintendo Switch Joy-Con (R); Bluetooth (057e:2007)
+
+# NVIDIA (0955)
+ * NVIDIA Shield Portable (2013 - NVIDIA_Controller_v01.01 - In-Home Streaming only) (0955:7203)
+ * NVIDIA Shield Controller (2017 - NVIDIA_Controller_v01.04); Bluetooth (0955:7214)
+ * NVIDIA Shield Controller (2015 - NVIDIA_Controller_v01.03); USB (0955:7210)
+
+# Performance Designed Products LLC [PDP] (0e6f)
+ * PDP Afterglow Deluxe+ Wired Controller; USB (0e6f:0188)
+ * PDP Nintendo Switch Faceoff Wired Pro Controller; USB (0e6f:0180)
+ * PDP Wired Fight Pad Pro for Nintendo Switch; USB (0e6f:0185)
+
+# Personal Communication Systems, Inc. (0810)
+ * Personal Communication Systems, Inc. Twin USB Gamepad; USB (0810:e301)
+
+# Pid.Codes (1209)
+ * EdgeTX, OpenTX Generic [radio controller] Joystick; USB (1209:4f54)
+
+# PowerA (20d6)
+ * PowerA Wired Controller for Nintendo Switch; USB (20d6:a711)
+ * PowerA Wireless Controller for Nintendo Switch; Bluetooth (NA:NA)
+ * PowerA Zelda Wired Controller for Nintendo Switch; USB (20d6:a713)
+
+# Razer (1532)
+ * Razer Raiju PS4 Controller (1532:1000)
+ * Razer Panthera Arcade Stick (1532:0401)
+ * Razer Raion PS4 Fightpad (1532:1100)
+
+# Sony (054c)
+ * Sony PlayStation Strikepack; USB (054c:05c5)
+ * Sony PlayStation DualShock 3; Bluetooth; USB + Motion Sensors (054c:0268)
+ * Sony PlayStation DualShock 4; Bluetooth; USB (054c:05c4)
+ * Sony PlayStation DualShock 4 Slim; Bluetooth; USB (054c:09cc)
+ * Sony PlayStation DualShock 4 Wireless Adapter; USB (054c:0ba0)
+ * Sony DualSense Wireless-Controller; Bluetooth; USB (054c:0ce6)
+ * Sony DualSense Edge Wireless-Controller; Bluetooth; USB (054c:0df2)
+ * PlayStation VR (054c:09af)
+
+# Valve (28de)
+ * Valve USB devices (28de:*)
+ * Valve Steam Controller (28de:*)
+ * Valve HID devices; Bluetooth; USB (28de:*)
+ * Unknown-VR (28de:1043)
+ * Unknown-VR (28de:1142)
+ * Unknown-VR (28de:2000)
+ * Unknown-VR (28de:2010)
+ * Unknown-VR (28de:2011)
+ * Unknown-VR (28de:2012)
+ * Unknown-VR (28de:2021)
+ * Unknown-VR (28de:2022)
+ * Unknown-VR (28de:2050)
+ * Unknown-VR (28de:2101)
+ * Unknown-VR (28de:2102)
+ * Unknown-VR (28de:2150)
+ * Unknown-VR (28de:2300)
+ * Unknown-VR (28de:2301)
+
+# Zeroplus Technology Corporation (0c12)
+ * Armor PS4 Armor 3 Pad; USB (0c12:0e10)
+ * EMiO PS4 Elite Controller; USB (0c12:1cf6)
+ * Hit Box Arcade HIT BOX PS4/PC version; USB (0c12:0ef6)
+ * Nyko Xbox Controller; USB (0c12:8801)
+ * Unknown-Brand Xbox Controller; USB (0c12:8802)
+ * Unknown-Brand Xbox Controller; USB (0c12:8810)
diff --git a/system/game-devices-udev/doinst.sh b/system/game-devices-udev/doinst.sh
new file mode 100644
index 000000000000..b58a0f112439
--- /dev/null
+++ b/system/game-devices-udev/doinst.sh
@@ -0,0 +1,4 @@
+if [ -x /sbin/udevadm ]; then
+ /sbin/udevadm control --reload-rules
+ /sbin/udevadm trigger
+fi
diff --git a/system/game-devices-udev/game-devices-udev.SlackBuild b/system/game-devices-udev/game-devices-udev.SlackBuild
new file mode 100644
index 000000000000..ed4e60377f60
--- /dev/null
+++ b/system/game-devices-udev/game-devices-udev.SlackBuild
@@ -0,0 +1,103 @@
+#!/bin/bash
+
+# Slackware build script for game-devices-udev
+
+# Copyright 2024 Jeremy Hansen <jebrhansen+SBo@gmail.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=game-devices-udev
+VERSION=${VERSION:-0.23}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+ARCH=noarch
+
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+RULESFOLDER=$PKG/lib/udev/rules.d
+mkdir -p $RULESFOLDER
+
+install_rules()
+{
+ install -m 644 $1 $RULESFOLDER
+}
+
+if [ "${_8BITDO:-YES}" == "YES" ]; then install_rules 71-8bitdo-controllers.rules; fi
+if [ "${ALPHA:-YES}" == "YES" ]; then install_rules 71-alpha_imaging_technology_co-vr.rules; fi
+if [ "${ASTRO:-YES}" == "YES" ]; then install_rules 71-astro_gaming-controllers.rules; fi
+if [ "${BETOP:-YES}" == "YES" ]; then install_rules 71-betop-controllers.rules; fi
+if [ "${GOOGLE:-YES}" == "YES" ]; then install_rules 71-google-controllers.rules; fi
+if [ "${HORI:-YES}" == "YES" ]; then install_rules 71-hori-controllers.rules; fi
+if [ "${HTCVR:-YES}" == "YES" ]; then install_rules 71-htc-vr.rules; fi
+if [ "${LOGITECH:-YES}" == "YES" ]; then install_rules 71-logitech-controllers.rules; fi
+if [ "${MADCATZ:-YES}" == "YES" ]; then install_rules 71-mad_catz-controllers.rules; fi
+if [ "${MIRCOSOFT:-YES}" == "YES" ]; then install_rules 71-microsoft-controllers.rules; fi
+if [ "${NACON:-YES}" == "YES" ]; then install_rules 71-nacon-controllers.rules; fi
+if [ "${NINTENDO:-YES}" == "YES" ]; then install_rules 71-nintendo-controllers.rules; fi
+if [ "${NVIDIA:-YES}" == "YES" ]; then install_rules 71-nvidia-controllers.rules; fi
+if [ "${PDP:-YES}" == "YES" ]; then install_rules 71-pdp-controllers.rules; fi
+if [ "${PERSONALCOMM:-YES}" == "YES" ]; then install_rules 71-personal_communication_systems_inc-controllers.rules; fi
+if [ "${PIDCODES:-YES}" == "YES" ]; then install_rules 71-pid_codes-controllers.rules; fi
+if [ "${POWERA:-YES}" == "YES" ]; then install_rules 71-powera-controllers.rules; fi
+if [ "${RAZER:-YES}" == "YES" ]; then install_rules 71-razer-controllers.rules; fi
+if [ "${SONY:-YES}" == "YES" ]; then install_rules 71-sony-controllers.rules; fi
+if [ "${SONYVR:-YES}" == "YES" ]; then install_rules 71-sony-vr.rules; fi
+if [ "${UNINPUT:-YES}" == "YES" ]; then install_rules 71-uinput-dev-early-creation.rules; fi
+if [ "${VALVE:-YES}" == "YES" ]; then install_rules 71-valve-controllers.rules; fi
+if [ "${VALVEVR:-YES}" == "YES" ]; then install_rules 71-valve-vr.rules; fi
+if [ "${ZEROPLUS:-YES}" == "YES" ]; then install_rules 71-zeroplus_technology_corporation-controllers.rules; fi
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ 8BitDo.md LICENSE README.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat $CWD/README.devices > $PKG/usr/doc/$PRGNAM-$VERSION/README.devices
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/game-devices-udev/game-devices-udev.info b/system/game-devices-udev/game-devices-udev.info
new file mode 100644
index 000000000000..249faba7b698
--- /dev/null
+++ b/system/game-devices-udev/game-devices-udev.info
@@ -0,0 +1,10 @@
+PRGNAM="game-devices-udev"
+VERSION="0.23"
+HOMEPAGE="https://codeberg.org/fabiscafe/game-devices-udev"
+DOWNLOAD="https://github.com/fabiscafe/game-devices-udev/archive/refs/tags/0.23/game-devices-udev-0.23.tar.gz"
+MD5SUM="2ddbb040d82044035c820cac5e071ca0"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Jeremy Hansen"
+EMAIL="jebrhansen+SBo@gmail.com"
diff --git a/system/game-devices-udev/slack-desc b/system/game-devices-udev/slack-desc
new file mode 100644
index 000000000000..d21a5c58827b
--- /dev/null
+++ b/system/game-devices-udev/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+game-devices-udev: game-devices-udev (udev rules for game-devices)
+game-devices-udev:
+game-devices-udev: This package contains udev rules to make supported controllers
+game-devices-udev: available with user-grade permissions.
+game-devices-udev:
+game-devices-udev: HOMEPAGE: https://codeberg.org/fabiscafe/game-devices-udev
+game-devices-udev:
+game-devices-udev:
+game-devices-udev:
+game-devices-udev:
+game-devices-udev: