mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
dev-embedded/dfu-programmer: fix udev rule
Fix udev rule. Add bash completions. Closes: https://bugs.gentoo.org/674634 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
parent
3e4d7a0766
commit
929f6daf5d
@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools udev
|
||||
inherit autotools bash-completion-r1 udev
|
||||
|
||||
DESCRIPTION="A Device Firmware Update based USB programmer for Atmel chips"
|
||||
HOMEPAGE="
|
||||
@ -11,7 +11,6 @@ HOMEPAGE="
|
||||
https://sourceforge.net/projects/dfu-programmer/
|
||||
https://github.com/dfu-programmer/dfu-programmer
|
||||
"
|
||||
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
@ -40,10 +39,11 @@ src_install() {
|
||||
# do not edit this file, it will be overwritten on update
|
||||
#
|
||||
EOF
|
||||
printf 'SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="%s", MODE="660", GROUP="plugdev", SYMLINK+="dfu-%%n"\n' \
|
||||
printf 'SUBSYSTEM=="usb", ACTION!="remove", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="%s", MODE="660", GROUP="plugdev", SYMLINK+="dfu-%%n"\n' \
|
||||
2ff{a,b,9,7,4,3} >> 70-dfu-programmer.rules
|
||||
|
||||
udev_dorules 70-dfu-programmer.rules
|
||||
newbashcomp dfu_programmer dfu-programmer
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user