From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C82ED158011 for ; Mon, 30 May 2022 03:09:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDB81E0823; Mon, 30 May 2022 03:09:19 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A11D6E0823 for ; Mon, 30 May 2022 03:09:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AE0E5341144 for ; Mon, 30 May 2022 03:09:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 005AD3C7 for ; Mon, 30 May 2022 03:09:16 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1653880136.3c4d6cf2d04e66e62a6914e7515fa2641ca4fddb.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/xpadneo/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-util/xpadneo/Manifest games-util/xpadneo/xpadneo-0.9.3.ebuild X-VCS-Directories: games-util/xpadneo/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 3c4d6cf2d04e66e62a6914e7515fa2641ca4fddb X-VCS-Branch: master Date: Mon, 30 May 2022 03:09:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9f705363-0014-453d-8bbf-9dad27798887 X-Archives-Hash: bd0ff9294bcf26b5097e28cdd1f13412 commit: 3c4d6cf2d04e66e62a6914e7515fa2641ca4fddb Author: Ionen Wolkens gentoo org> AuthorDate: Mon May 30 03:07:42 2022 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Mon May 30 03:08:56 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c4d6cf2 games-util/xpadneo: add 0.9.3 Signed-off-by: Ionen Wolkens gentoo.org> games-util/xpadneo/Manifest | 1 + games-util/xpadneo/xpadneo-0.9.3.ebuild | 74 +++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/games-util/xpadneo/Manifest b/games-util/xpadneo/Manifest index 4f6a7bd9839e..875c4aa114a4 100644 --- a/games-util/xpadneo/Manifest +++ b/games-util/xpadneo/Manifest @@ -1,2 +1,3 @@ DIST xpadneo-0.9.1.tar.gz 1353080 BLAKE2B fc2207e005cae629da50048330cbaa7d27183b0bbb083d35c3c144e91470273b8c7006c4b62d10b947dbe4fd003ca39623630923e477aa4eff3c243405d876bd SHA512 51063d104f165018b8430e26d2ab5a622c214efaaba3f7706cc99892b2054f57667b419672de5c2696189d389401b07024658c36a88343d980de9802789bcb10 DIST xpadneo-0.9.2.tar.gz 1342249 BLAKE2B de8ed5314d84cb8d4b90c893938f36cc680617ace10eba5d1a86b5acb66747a9c9214896c8375136681c40b988501d9426e1b18eb4ff01d565219c2d7c10c37f SHA512 84470e37e9e44e84a85a91a0df1bca24e109cf2209ae1b131530539202d00242997f1f069989df79a6345387de62c4651c70c641b533deab8ad9a9246841d12d +DIST xpadneo-0.9.3.tar.gz 1342315 BLAKE2B 040f16e949a301926cc8e4c38212a658ffbc52832e1cd310ce5ae8bc568e2fd0fadad630771812f8b7ff76eaf5ad0f7ea8f158673a834aa1bd4d9407674acea7 SHA512 dd95e4bdbead8c8d93eca7d574989261e12bce232c1845e9bf11b5acdf3b9e47d62afb90f5a4208c788cf02ccaa73e99dc505f35679631119ba014a1f7796562 diff --git a/games-util/xpadneo/xpadneo-0.9.3.ebuild b/games-util/xpadneo/xpadneo-0.9.3.ebuild new file mode 100644 index 000000000000..b193e5517951 --- /dev/null +++ b/games-util/xpadneo/xpadneo-0.9.3.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# pkgcheck note: toolchain-funcs is not unused +inherit linux-mod toolchain-funcs udev + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/atar-axis/xpadneo.git" + EGIT_MIN_CLONE_TYPE="single" +else + SRC_URI="https://github.com/atar-axis/xpadneo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Advanced Linux Driver for Xbox One Wireless Controller" +HOMEPAGE="https://atar-axis.github.io/xpadneo/" + +LICENSE="GPL-3" +SLOT="0" + +S="${WORKDIR}/${P}/hid-${PN}" +MODULE_NAMES="hid-${PN}(kernel/drivers/hid::src)" +BUILD_PARAMS='V=1 LD="$(tc-getLD)" KERNEL_SOURCE_DIR="${KV_OUT_DIR}"' +BUILD_TARGETS="modules" + +CONFIG_CHECK="INPUT_FF_MEMLESS" + +src_install() { + linux-mod_src_install + + insinto /etc/modprobe.d + doins etc-modprobe.d/${PN}.conf + + udev_dorules etc-udev-rules.d/60-${PN}.rules + + dodoc -r ../docs/{[^i]*.md,descriptors,reports} ../NEWS.md +} + +pkg_postinst() { + linux-mod_pkg_postinst + udev_reload + + local disable_ertm=/sys/module/bluetooth/parameters/disable_ertm + if kernel_is -ge 5 12; then + if [[ $(<${disable_ertm}) == Y ]]; then + elog "Warning: bluetooth ERTM (Enhanced ReTransmission Mode) is disabled." + elog "This is no longer recommended with kernel >=5.12 to use ${PN}." + elog "Can remove ${EROOT}/etc/modprobe.d/no-ertm.conf if it exists, and run:" + elog " echo N > ${disable_ertm}" + elog "After changing, may need to re-pair the gamepad with bluetooth." + fi + elif [[ $(<${disable_ertm}) == N ]]; then + elog "Warning: bluetooth ERTM (Enhanced ReTransmission Mode) is enabled." + elog "While keeping enabled is recommended for rumble usage stability, it can" + elog "cause connection issues without a fix included in kernel >=5.12" + elog "If needed, this mode can be disabled by running:" + elog " echo Y > ${disable_ertm}" + elog " echo 'options bluetooth disable_ertm=y' > ${EROOT}/etc/modprobe.d/no-ertm.conf" + elog "After changing, may need to re-pair the gamepad with bluetooth." + fi + + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog "To pair the gamepad and view module options, see documentation in:" + elog " ${EROOT}/usr/share/doc/${PF}/" + fi +} + +pkg_postrm() { + linux-mod_pkg_postrm + udev_reload +}