diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-09 23:17:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-09 23:17:55 +0000 |
commit | 8fc08491f26431ec46b36d6ebef9551f3773b96f (patch) | |
tree | d1b5bd96d856b4ddb71d02628504d39fae5c168e /app-misc/wally-cli | |
parent | fd1ea0a53f74daa4fd860ac35a20ba1817fd20fa (diff) |
gentoo auto-resync : 09:12:2023 - 23:17:54
Diffstat (limited to 'app-misc/wally-cli')
-rw-r--r-- | app-misc/wally-cli/Manifest | 3 | ||||
-rw-r--r-- | app-misc/wally-cli/files/50-zsa.rules | 26 | ||||
-rw-r--r-- | app-misc/wally-cli/wally-cli-2.0.1-r1.ebuild (renamed from app-misc/wally-cli/wally-cli-2.0.1.ebuild) | 22 |
3 files changed, 46 insertions, 5 deletions
diff --git a/app-misc/wally-cli/Manifest b/app-misc/wally-cli/Manifest index 995bb74f48c3..c62a74ac9b8e 100644 --- a/app-misc/wally-cli/Manifest +++ b/app-misc/wally-cli/Manifest @@ -1,4 +1,5 @@ +AUX 50-zsa.rules 1431 BLAKE2B c9e0c743a1209d849bdf35b631c30e0d27dde70b42178b12ec52a12ab07c982e05ab74b6bbc0316673f416cc2f5cc77ed9d0f973a49c42a2041e1a42741e445f SHA512 f169836b65e66ac86bd86168d89228031f0901b9d02385d55f5fa16040e58fd113b8a4f46f4742d5ad0409ab0f3b18aabdc7dc7ede8ae2fe033b474ccbc8c157 DIST wally-cli-2.0.1-deps.tar.xz 2545464 BLAKE2B 3a1b41d5386e87db69a6d877fcc471cece97e34f913c3b9a4b87ed252f2f79aa335acacc1ffb0706d8a2596b9775ca9fab2d9fc4da9c11f7b8b933e05cb680cb SHA512 45cb90e614031ba674ea384cc829d748f706839b2d928f2e11e268f5991f7704a48f1333f794f4a140c16256cf29f4ee4da05a7a4e0be9107285d2c86a50ca77 DIST wally-cli-2.0.1.tar.gz 6641 BLAKE2B 876a1e237d08c43b90c89ef596ad9015a6f641d3282296b9e3c846a7bf7fa27988605902deaae9e2c95b9c8bf10a2e2304c3ad5b1812001a45b6ca93eb0210bd SHA512 998035e5d932892245cd6db13682501dc5e65a79b724e9ed66733c955bf6646c46c5cb59214160cd5bc5710949dcd43f054ae72b5adb757aa12e3cece92df4bc -EBUILD wally-cli-2.0.1.ebuild 637 BLAKE2B 52c3e5cc1f9c53de2687c63d346b317bfa34c62d017b01398912560d5e51ba6c5b1d29151e05ef92a4d6132cb21b4fab9b780e87d534b7d9751d543b5a31f905 SHA512 3cc36aa7c76af41d51e789a00356363ec788c8caebfb76f5c1820af318c347f71033b12ee1e1681fb05e05c6640fd0a85cb47d7c1d2260b271927a5b7a8ac55d +EBUILD wally-cli-2.0.1-r1.ebuild 842 BLAKE2B bf1496f80a1350689f8d529ba5f33735a4ce6b3a189700064bbbb1f97c62a7f10a0341776b96246a70172e5520af46f57682813c7777dc177cd0c2d28c70aefa SHA512 c5d886511247e1602307912c79ccde3901558018d2e563e860c23edb36a96bd69c5a94d3daede08b70b1f8ba50a1295e6300f3653cd06b43012313a9f1d07509 MISC metadata.xml 393 BLAKE2B 472029d3b4d772794ceddd9c9b3de2afc30dd292ab5340d660c3b50bf6926c4c9879ec020a2f53653f4d21e48357361ee9aff794e37e1f93e11b8babc2816063 SHA512 bbca30599bfe06b4cd8a586eab794f50779d1e284de685d6940eb45e157d40953014dbd8329b6bdae1e311551481561f9a8c0651d389d922813de35d2adc5f59 diff --git a/app-misc/wally-cli/files/50-zsa.rules b/app-misc/wally-cli/files/50-zsa.rules new file mode 100644 index 000000000000..0dbb2e2be4dd --- /dev/null +++ b/app-misc/wally-cli/files/50-zsa.rules @@ -0,0 +1,26 @@ +# https://github.com/zsa/wally/wiki/Linux-install + +# Rules for Oryx web flashing and live training +KERNEL=="hidraw*", ATTRS{idVendor}=="16c0", MODE="0664", GROUP="plugdev" +KERNEL=="hidraw*", ATTRS{idVendor}=="3297", MODE="0664", GROUP="plugdev" + +# Legacy rules for live training over webusb (Not needed for firmware v21+) + # Rule for all ZSA keyboards + SUBSYSTEM=="usb", ATTR{idVendor}=="3297", GROUP="plugdev" + # Rule for the Moonlander + SUBSYSTEM=="usb", ATTR{idVendor}=="3297", ATTR{idProduct}=="1969", GROUP="plugdev" + # Rule for the Ergodox EZ + SUBSYSTEM=="usb", ATTR{idVendor}=="feed", ATTR{idProduct}=="1307", GROUP="plugdev" + # Rule for the Planck EZ + SUBSYSTEM=="usb", ATTR{idVendor}=="feed", ATTR{idProduct}=="6060", GROUP="plugdev" + +# Wally Flashing rules for the Ergodox EZ +ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1" +ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666" +KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666" + +# Keymapp / Wally Flashing rules for the Moonlander and Planck EZ +SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666", SYMLINK+="stm32_dfu" +# Keymapp Flashing rules for the Voyager +SUBSYSTEMS=="usb", ATTRS{idVendor}=="3297", MODE:="0666", SYMLINK+="ignition_dfu" diff --git a/app-misc/wally-cli/wally-cli-2.0.1.ebuild b/app-misc/wally-cli/wally-cli-2.0.1-r1.ebuild index 7f2b088452d9..0f1aa93539c9 100644 --- a/app-misc/wally-cli/wally-cli-2.0.1.ebuild +++ b/app-misc/wally-cli/wally-cli-2.0.1-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit go-module +inherit go-module udev DESCRIPTION="Flash your ZSA Keyboard the EZ way" HOMEPAGE="https://github.com/zsa/wally-cli" @@ -18,13 +18,27 @@ KEYWORDS="~amd64" DOCS=( README.md license.md ) DEPEND="dev-libs/libusb:1" -RDEPEND="${DEPEND}" +RDEPEND=" + acct-group/plugdev + ${DEPEND} +" src_compile() { - go build + ego build } src_install() { default dobin wally-cli + + udev_dorules "${FILESDIR}"/50-zsa.rules + elog "To use ${PN} as a user, you must be in the plugdev group" +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload } |