From 2f913f3998c4eb58e78a6dc9ac1bbf6879d7fd4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 14 May 2021 22:23:49 +0200 Subject: [PATCH] wally-cli: don't vendor udev rules So far, the udev rules contained in this package were manually maintained, which is probably the reason that the necessary rules for using the Moonlander keyboard with their training software, Oryx, wasn't present. I've created a new package, wally-udev-rules, which fetches the udev rules from the upstream repo instead. As the build process for wally itself (which should not be confused with wally-cli) is completely undocumented, I've not done this "properly" (which would be packaging wally and having wally-udev be a subpackage of wally, which is then depended upon by wally-cli) for now, but this is already a step in the right direction IMO. Closes: #30879 [via git-merge-pr] --- srcpkgs/wally-cli/INSTALL.msg | 3 --- srcpkgs/wally-cli/files/50-wally.rules | 11 ----------- srcpkgs/wally-cli/template | 8 +++----- 3 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 srcpkgs/wally-cli/INSTALL.msg delete mode 100644 srcpkgs/wally-cli/files/50-wally.rules diff --git a/srcpkgs/wally-cli/INSTALL.msg b/srcpkgs/wally-cli/INSTALL.msg deleted file mode 100644 index 6313b5615ba..00000000000 --- a/srcpkgs/wally-cli/INSTALL.msg +++ /dev/null @@ -1,3 +0,0 @@ -Please add your user to the group 'plugdev' by executing the following: - -usermod -aG plugdev "$USER" diff --git a/srcpkgs/wally-cli/files/50-wally.rules b/srcpkgs/wally-cli/files/50-wally.rules deleted file mode 100644 index 742cde5c1f9..00000000000 --- a/srcpkgs/wally-cli/files/50-wally.rules +++ /dev/null @@ -1,11 +0,0 @@ -# These rules are derived from the instructions at -# https://github.com/zsa/wally/wiki/Linux-install#2-create-a-udev-rule-file - -# Teensy 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" - -# STM32 rules for the Moonlander and Planck EZ -SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666", SYMLINK+="stm32_dfu" \ No newline at end of file diff --git a/srcpkgs/wally-cli/template b/srcpkgs/wally-cli/template index 3c70966e7b6..93c694c2e8f 100644 --- a/srcpkgs/wally-cli/template +++ b/srcpkgs/wally-cli/template @@ -1,23 +1,21 @@ # Template file for 'wally-cli' pkgname=wally-cli version=2.0.0 -revision=1 +revision=2 wrksrc="wally-cli-${version}-linux" build_style=go go_import_path="github.com/zsa/wally-cli" hostmakedepends="pkg-config" makedepends="libusb-devel pkg-config go-bindata" +depends="wally-udev-rules" short_desc="Flashing firmware for ZSA keyboards" maintainer="Wayne Van Son " license="MIT" homepage="https://www.zsa.io/wally/" distfiles="https://github.com/zsa/wally-cli/archive/${version}-linux.tar.gz" -checksum="2641c7deededeeba1aecf6b3ae3e87050a0cfd81c8b41323b2304ebe21e61745" -conf_files="/usr/lib/udev/rules.d/50-wally.rules" -system_groups="plugdev" +checksum=2641c7deededeeba1aecf6b3ae3e87050a0cfd81c8b41323b2304ebe21e61745 post_install() { # vendoring license is obsolete in the next release vlicense "$FILESDIR/LICENSE" - vinstall "$FILESDIR/50-wally.rules" 0644 /usr/lib/udev/rules.d }