From 5131278dd08caf3f62ebe4cbbd26ca9a484713f6 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 27 Dec 2021 22:30:12 -0600 Subject: [PATCH] Remove udev rules for migration to its own package --- .SRCINFO | 4 +--- 49-onlykey.rules | 34 ---------------------------------- PKGBUILD | 11 ++++------- onlykey.install | 11 ----------- 4 files changed, 5 insertions(+), 55 deletions(-) delete mode 100644 49-onlykey.rules delete mode 100644 onlykey.install diff --git a/.SRCINFO b/.SRCINFO index 10fec6e..bad2cb1 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,13 +1,11 @@ pkgbase = onlykey pkgdesc = OnlyKey Chrome Desktop App pkgver = 5.3.3 - pkgrel = 1 + pkgrel = 2 url = https://onlykey.io/ arch = x86_64 license = custom source = https://github.com/trustcrypto/OnlyKey-App/releases/download/v5.3.3/OnlyKey_5.3.3_amd64.deb - source = 49-onlykey.rules sha256sums = 10611139e7cb601e49453dd9297aa8be767956c8ff37ebebeae1ac9076008e63 - sha256sums = 6bb0a54748ec6ce1a1186b41f45a6bfc1363998c1a88722a8f1518c3278aabef pkgname = onlykey diff --git a/49-onlykey.rules b/49-onlykey.rules deleted file mode 100644 index 80f1f38..0000000 --- a/49-onlykey.rules +++ /dev/null @@ -1,34 +0,0 @@ -# UDEV Rules for OnlyKey, https://docs.crp.to/linux.html -# -# This file must be placed at: -# -# /etc/udev/rules.d/49-onlykey.rules (preferred location) -# or -# /lib/udev/rules.d/49-onlykey.rules (req'd on some broken systems) -# -# To install, type this command in a terminal: -# sudo cp 49-onlykey.rules /etc/udev/rules.d/49-onlykey.rules -# -# After this file is installed, physically unplug and reconnect OnlyKey. -# -ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1" -ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1" -SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666" -KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666" -# -# If you share your linux system with other users, or just don't like the -# idea of write permission for everybody, you can replace MODE:="0666" with -# OWNER:="yourusername" to create the device owned by you, or with -# GROUP:="somegroupname" and mange access using standard unix groups. -# -# One requirement of TOTP (Time-based One-time Password) is having the correct -# time. If OnlyKey is used on a system where the OnlyKey app is not running it -# will display “NOTSET” instead of the OTP code. Because OnlyKey has no battery -# it requires an app to send it the correct time to be able to generate TOTP -# codes. If you have OnlyKey command-line utility installed, adding the -# following will automatically set the current time on OnlyKey every time you -# plug it: RUN+="/usr/local/bin/onlykey-cli settime" -# -# SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0660", GROUP:="onlykey", RUN+="/usr/local/bin/onlykey-cli settime" -# KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0660", GROUP:="onlykey", RUN+="/usr/local/bin/onlykey-cli settime" -# diff --git a/PKGBUILD b/PKGBUILD index 99e9c38..52544be 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,22 +1,19 @@ # Maintainer: Kiril Vladimiroff +# Contributor: David Thurstenson pkgname=onlykey pkgver=5.3.3 -pkgrel=1 +pkgrel=2 pkgdesc="OnlyKey Chrome Desktop App" arch=('x86_64') url="https://onlykey.io/" license=('custom') -source=("https://github.com/trustcrypto/OnlyKey-App/releases/download/v${pkgver}/OnlyKey_${pkgver}_amd64.deb" - "49-onlykey.rules") -sha256sums=('10611139e7cb601e49453dd9297aa8be767956c8ff37ebebeae1ac9076008e63' - '6bb0a54748ec6ce1a1186b41f45a6bfc1363998c1a88722a8f1518c3278aabef') +source=("https://github.com/trustcrypto/OnlyKey-App/releases/download/v${pkgver}/OnlyKey_${pkgver}_amd64.deb") +sha256sums=('10611139e7cb601e49453dd9297aa8be767956c8ff37ebebeae1ac9076008e63') package() { bsdtar -O -xf "OnlyKey_${pkgver}"*.deb data.tar.xz | bsdtar -C "${pkgdir}" -xJf - find "${pkgdir}" -type d -exec chmod 755 {} + chmod 755 "${pkgdir}"/usr/share/applications/OnlyKey.desktop - - install -Dm 644 49-onlykey.rules "${pkgdir}/etc/udev/rules.d/49-onlykey.rules" } diff --git a/onlykey.install b/onlykey.install deleted file mode 100644 index 64a39eb..0000000 --- a/onlykey.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - udevadm control --reload -} - -post_upgrade() { - udevadm control --reload -} - -post_remove() { - udevadm control --reload -}