From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C1EDD59CA3 for ; Tue, 15 Mar 2016 16:31:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96F4CE085C; Tue, 15 Mar 2016 16:31:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E736E085C for ; Tue, 15 Mar 2016 16:31:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9E74F340D49 for ; Tue, 15 Mar 2016 16:31:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E2D8854 for ; Tue, 15 Mar 2016 16:31:34 +0000 (UTC) From: "Richard Farina" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Farina" Message-ID: <1458059455.58f96fc4ee39f99c45abd3302b34144d60baf5d4.zerochaos@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/portapack-firmware/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-wireless/portapack-firmware/Manifest net-wireless/portapack-firmware/portapack-firmware-20160222.ebuild X-VCS-Directories: net-wireless/portapack-firmware/ X-VCS-Committer: zerochaos X-VCS-Committer-Name: Richard Farina X-VCS-Revision: 58f96fc4ee39f99c45abd3302b34144d60baf5d4 X-VCS-Branch: master Date: Tue, 15 Mar 2016 16:31:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b2745e5a-cc6b-42a7-a8f4-903c2a8ac056 X-Archives-Hash: 2a05a686409be1cffbd8eb14d3f87481 commit: 58f96fc4ee39f99c45abd3302b34144d60baf5d4 Author: Zero_Chaos gentoo org> AuthorDate: Tue Mar 15 16:30:36 2016 +0000 Commit: Richard Farina gentoo org> CommitDate: Tue Mar 15 16:30:55 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58f96fc4 net-wireless/portapack-firmware: version bump Package-Manager: portage-2.2.27 net-wireless/portapack-firmware/Manifest | 1 + .../portapack-firmware-20160222.ebuild | 50 ++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/net-wireless/portapack-firmware/Manifest b/net-wireless/portapack-firmware/Manifest index e8d1210..d944560 100644 --- a/net-wireless/portapack-firmware/Manifest +++ b/net-wireless/portapack-firmware/Manifest @@ -1 +1,2 @@ DIST portapack-h1-firmware-20150904.tar.bz2 96233 SHA256 25d6f44e6afcf4284316cb04702ea24ab528b33e4c780f9a57f067365f391df2 SHA512 0b7633a422b4311f5c7b66d88498b8f33a8f3bd1e0f23d18b5ba59fc901798b8d3c65b039c98bdaa428692b5ed00b5275de34a30ea72825a766cbb8fe84c2a7b WHIRLPOOL 1a816707cbe3d91d8dff8a51b1838999b2de485c425555183a3caea8f760a059e813ce0d734e7c6e41a599b974ec1702766ca10d5a78caeab11ff90791c1e101 +DIST portapack-h1-firmware-20160222.tar.bz2 117737 SHA256 43b6e8150a8c0b31e40703a05e1462acf6b365ff1814b0111968b2e5fd9a8148 SHA512 c330561126fe5cec53bd85fde6a76bac0f70d20d1fcc7e0ba578e9332bd8f8e5353673a14a084fe44ecef7f91a2829836c24a090c993a74eb065fb1ae65e65c3 WHIRLPOOL a2acc92ba99c1f27e013332103fe896beb8091608bf248c7effdd6e1b2976d7461b68f8e05ca7dd1a493a776ffd9dc77a28a38bfd7cbe741337b39c147c1c724 diff --git a/net-wireless/portapack-firmware/portapack-firmware-20160222.ebuild b/net-wireless/portapack-firmware/portapack-firmware-20160222.ebuild new file mode 100644 index 0000000..79d0b3a --- /dev/null +++ b/net-wireless/portapack-firmware/portapack-firmware-20160222.ebuild @@ -0,0 +1,50 @@ +# 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 +}