net-wireless/portapack-firmware: appears compatible with dfu-util 0.9 so updating deps

Package-Manager: portage-2.3.0
This commit is contained in:
Zero_Chaos
2016-08-26 17:38:09 -04:00
parent 8bb6c7ba81
commit a114c8c64a
3 changed files with 1 additions and 52 deletions

View File

@@ -1,2 +1 @@
DIST portapack-h1-firmware-20160222.tar.bz2 117737 SHA256 43b6e8150a8c0b31e40703a05e1462acf6b365ff1814b0111968b2e5fd9a8148 SHA512 c330561126fe5cec53bd85fde6a76bac0f70d20d1fcc7e0ba578e9332bd8f8e5353673a14a084fe44ecef7f91a2829836c24a090c993a74eb065fb1ae65e65c3 WHIRLPOOL a2acc92ba99c1f27e013332103fe896beb8091608bf248c7effdd6e1b2976d7461b68f8e05ca7dd1a493a776ffd9dc77a28a38bfd7cbe741337b39c147c1c724
DIST portapack-h1-firmware-20160728.tar.bz2 149696 SHA256 47561cf5a97798921cb5587d2a3976c1136617fff4831e9488440abbc449c5a5 SHA512 ab29fe8c06d9fe40d763f12a3a3381b3338e783cfa7345e947ee50662ab938771da9470df25cd1c24c3f55680b35b213026099b11bbb241bec143dbd153536f3 WHIRLPOOL baa2e546f6c68e7c2d0efabc6b203353374c9a83d7da36f740cd53c554c05ec9aa9c05a021aa96b5714b9fd97b74ea392dd5afe909849b5d4daa275942887dc3

View File

@@ -14,7 +14,7 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
PDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
=app-mobilephone/dfu-util-0.7"
>=app-mobilephone/dfu-util-0.7"
S="${WORKDIR}"

View File

@@ -1,50 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="Firmware and scripts for controlling the Portapack from Sharebrained"
HOMEPAGE="https://github.com/sharebrained/portapack-hackrf/releases"
SRC_URI="https://github.com/sharebrained/portapack-hackrf/releases/download/${PV}/portapack-h1-firmware-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
PDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
=app-mobilephone/dfu-util-0.7"
S="${WORKDIR}"
src_install() {
insinto /usr/share/hackrf
newins portapack-h1-firmware.bin portapack-h1-firmware-${PV}.bin
ln -s portapack-h1-firmware-${PV}.bin "${ED}/usr/share/hackrf/portapack-h1-firmware.bin"
cat << EOF > switch_to_portapack
#!/bin/sh
printf "Hold down the HackRF's DFU button (the button closest to the antenna jack)\n"
printf "then plug the HackRF into a USB port on your computer.\n"
printf "After the HackRF is plugged in, you may release the DFU button.\n"
printf "Press any key to continue or ^c to abort\n"
read
dfu-util --device 1fc9:000c --download /usr/share/hackrf/hackrf_one_usb_ram.dfu --reset
sleep 2s
hackrf_spiflash -w /usr/share/hackrf/portapack-h1-firmware.bin
EOF
dobin switch_to_portapack
cat << EOF > switch_to_hackrf
#!/bin/sh
printf "Hold down the HackRF's DFU button (the button closest to the antenna jack)\n"
printf "then plug the HackRF into a USB port on your computer.\n"
printf "After the HackRF is plugged in, you may release the DFU button.\n"
printf "Press any key to continue or ^c to abort\n"
read
dfu-util --device 1fc9:000c --download /usr/share/hackrf/hackrf_one_usb_ram.dfu --reset
sleep 2s
hackrf_spiflash -w /usr/share/hackrf/hackrf_one_usb_rom_to_ram.bin
EOF
dobin switch_to_hackrf
}