add 1.1.0 for dfu-programmer
parent
3a452209a4
commit
0d20890d72
@ -0,0 +1,2 @@
|
||||
DIST dfu-programmer-1.0.0.tar.gz 78504 BLAKE2B ae05a92c95a17ee9b5e2266e380c43d0cdadb3be76e481eb5de321116aa1d930c733ad3a086e239b817a475d36185157715e7907d564c2001a9ce25df01d46c6 SHA512 abb73970e10017f111b118c5be0b98a3fe7ef8c95794b5ca701f21b5a40f518f46ff8a392f09e7eea2ad9a4eb6c43ecc9514bee817c01acf0d6135a5f8f9048f
|
||||
DIST dfu-programmer-1.1.0.tar.gz 149164 BLAKE2B dba088ae27872cee07ac2ae1b666edd0db6f1e30efe35842e4f09909102f8ce29a9c04205fe2817dc73b3d90e3054e7e0693c3c1cb1fdaf795c26e84fb723ecc SHA512 9d52b68023c6b38c93a3e8d4a04bcac9e9858f20d810a15bbcc9c37ab117d7799194363813bcc074585c86d7cc7877307e060f3b60655b7632f97421e23db30d
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools udev
|
||||
|
||||
DESCRIPTION="A Device Firmware Update based USB programmer for Atmel chips"
|
||||
HOMEPAGE="
|
||||
https://dfu-programmer.github.io/
|
||||
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"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/plugdev
|
||||
virtual/libusb:1
|
||||
virtual/udev
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
cat <<-EOF > 70-dfu-programmer.rules
|
||||
#
|
||||
# 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' \
|
||||
2ff{a,b,9,7,4,3} >> 70-dfu-programmer.rules
|
||||
|
||||
udev_dorules 70-dfu-programmer.rules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
|
||||
elog "To update device firmware as user you must be in the plugdev group:"
|
||||
elog
|
||||
elog "usermod -aG plugdev <user>"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools udev
|
||||
|
||||
DESCRIPTION="A Device Firmware Update based USB programmer for Atmel chips"
|
||||
HOMEPAGE="
|
||||
https://dfu-programmer.github.io/
|
||||
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"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~arm64"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/plugdev
|
||||
virtual/libusb:1
|
||||
virtual/udev
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
cat <<-EOF > 70-dfu-programmer.rules
|
||||
#
|
||||
# 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' \
|
||||
2ff{a,b,9,7,4,3} >> 70-dfu-programmer.rules
|
||||
|
||||
udev_dorules 70-dfu-programmer.rules
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
|
||||
elog "To update device firmware as user you must be in the plugdev group:"
|
||||
elog
|
||||
elog "usermod -aG plugdev <user>"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>embedded@gentoo.org</email>
|
||||
<name>Embedded Gentoo</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">dfu-programmer</remote-id>
|
||||
<remote-id type="github">dfu-programmer/dfu-programmer</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue