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:
Viorel Munteanu 2025-10-13 15:58:17 +03:00
parent 3e4d7a0766
commit 929f6daf5d
No known key found for this signature in database
GPG Key ID: 0CE5A97D9310DAB0

View File

@ -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() {