[arch-commits] Commit in dfu-util/trunk (3 files)

Anatol Pomozov anatolik at gemini.archlinux.org
Tue Sep 7 11:30:00 UTC 2021


    Date: Tuesday, September 7, 2021 @ 11:30:00
  Author: anatolik
Revision: 1011910

FS#69382 use upstream udev rules instead of old (and incorrect) Arch-specific udev rules

Also get rid of reloading udev urules in install script to make it consistent with other packages

Modified:
  dfu-util/trunk/PKGBUILD
Deleted:
  dfu-util/trunk/dfu-util.install
  dfu-util/trunk/stm32dfu.udev.rules

---------------------+
 PKGBUILD            |   13 +++++--------
 dfu-util.install    |   11 -----------
 stm32dfu.udev.rules |   10 ----------
 3 files changed, 5 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-07 02:35:30 UTC (rev 1011909)
+++ PKGBUILD	2021-09-07 11:30:00 UTC (rev 1011910)
@@ -4,7 +4,7 @@
 
 pkgname=dfu-util
 pkgver=0.10
-pkgrel=2
+pkgrel=3
 pkgdesc='Tool intended to download and upload firmware using DFU protocol to devices connected over USB'
 url='http://dfu-util.sourceforge.net/'
 license=(GPL2)
@@ -11,11 +11,8 @@
 arch=(x86_64)
 depends=(libusb python)
 optdepends=('python-intelhex: Intel HEX file format support')
-install=dfu-util.install
-source=(stm32dfu.udev.rules
-        http://dfu-util.sourceforge.net/releases/$pkgname-$pkgver.tar.gz)
-sha256sums=('64d4314f354d965e3dc0fd439dc497d5d0a41bf649da1869df40f93718e5a6fe'
-            'a03dc58dfc79c056819c0544b2a5970537566460102b3d82cfb038c60e619b42')
+source=(http://dfu-util.sourceforge.net/releases/$pkgname-$pkgver.tar.gz)
+sha256sums=('a03dc58dfc79c056819c0544b2a5970537566460102b3d82cfb038c60e619b42')
 
 build() {
   cd $pkgname-$pkgver
@@ -27,6 +24,6 @@
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
-  install -Dm755 "$srcdir/$pkgname-$pkgver"/dfuse-pack.py "$pkgdir"/usr/bin/dfuse-pack
-  install -Dm644 "$srcdir"/stm32dfu.udev.rules "$pkgdir"/usr/lib/udev/rules.d/48-stm32dfu.rules
+  install -Dm755 dfuse-pack.py "$pkgdir"/usr/bin/dfuse-pack
+  install -Dm644 doc/60-dfuse.rules "$pkgdir"/usr/lib/udev/rules.d/60-dfuse.rules
 }

Deleted: dfu-util.install
===================================================================
--- dfu-util.install	2021-09-07 02:35:30 UTC (rev 1011909)
+++ dfu-util.install	2021-09-07 11:30:00 UTC (rev 1011910)
@@ -1,11 +0,0 @@
-post_install() {
-  udevadm control --reload-rules
-}
-
-post_upgrade() {
-  udevadm control --reload-rules
-}
-
-post_remove() {
-  udevadm control --reload-rules
-}

Deleted: stm32dfu.udev.rules
===================================================================
--- stm32dfu.udev.rules	2021-09-07 02:35:30 UTC (rev 1011909)
+++ stm32dfu.udev.rules	2021-09-07 11:30:00 UTC (rev 1011910)
@@ -1,10 +0,0 @@
-# stm32 boards, with onboard DFU support
-
-SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", \
-    MODE:="0666", \
-    SYMLINK+="stm32_dfu"
-
-# 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.



More information about the arch-commits mailing list