Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/portapack-havoc/
Date: Fri, 17 Aug 2018 20:18:13
Message-Id: 1534537044.3297657be06567733f245e48fed7fccb6164c224.zerochaos@gentoo
1 commit: 3297657be06567733f245e48fed7fccb6164c224
2 Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 17 20:17:06 2018 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 17 20:17:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3297657b
7
8 net-wireless/portapack-havoc: initial commit
9
10 Package-Manager: Portage-2.3.46, Repoman-2.3.10
11
12 net-wireless/portapack-havoc/Manifest | 1 +
13 net-wireless/portapack-havoc/metadata.xml | 11 ++++++
14 .../portapack-havoc-0.0_p20180612.ebuild | 46 ++++++++++++++++++++++
15 3 files changed, 58 insertions(+)
16
17 diff --git a/net-wireless/portapack-havoc/Manifest b/net-wireless/portapack-havoc/Manifest
18 new file mode 100644
19 index 00000000000..4e4cc5ad637
20 --- /dev/null
21 +++ b/net-wireless/portapack-havoc/Manifest
22 @@ -0,0 +1 @@
23 +DIST portapack-havoc-0.0_p20180612.tar.gz 74244267 BLAKE2B 7a6b632cd3766681e691cb0e8405e9493d4d4b46008c9905192f492715238378713da6a305383855b50935f5ffa943e5134677ab1580275a645b46e0e025c561 SHA512 b8ea6a4aa6682793a69cefb2815fcaf51a5f6f253bea2c34e00d76fba15f9d700f45f1a36c1ac7e1d7c640ac19ee64dc835c76c3d9964d73d18443299a2d6fdd
24
25 diff --git a/net-wireless/portapack-havoc/metadata.xml b/net-wireless/portapack-havoc/metadata.xml
26 new file mode 100644
27 index 00000000000..379b11c6216
28 --- /dev/null
29 +++ b/net-wireless/portapack-havoc/metadata.xml
30 @@ -0,0 +1,11 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>zerochaos@g.o</email>
36 + <name>Rick Farina</name>
37 + </maintainer>
38 + <upstream>
39 + <remote-id type="github">furrtek/portapack-havoc</remote-id>
40 + </upstream>
41 +</pkgmetadata>
42
43 diff --git a/net-wireless/portapack-havoc/portapack-havoc-0.0_p20180612.ebuild b/net-wireless/portapack-havoc/portapack-havoc-0.0_p20180612.ebuild
44 new file mode 100644
45 index 00000000000..59b7f30080d
46 --- /dev/null
47 +++ b/net-wireless/portapack-havoc/portapack-havoc-0.0_p20180612.ebuild
48 @@ -0,0 +1,46 @@
49 +# Copyright 1999-2018 Gentoo Foundation
50 +# Distributed under the terms of the GNU General Public License v2
51 +
52 +EAPI=6
53 +
54 +DESCRIPTION="Custom firmware for the HackRF SDR + PortaPack H1 addon"
55 +HOMEPAGE="https://github.com/furrtek/portapack-havoc/wiki"
56 +COMMIT="609235b19f55d0bf278c0e7c4b9f9b6b15136247"
57 +SRC_URI="https://github.com/furrtek/portapack-havoc/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
58 +S="${WORKDIR}/${PN}-${COMMIT}"
59 +
60 +LICENSE="GPL-2"
61 +SLOT="0"
62 +IUSE=""
63 +
64 +KEYWORDS="~amd64 ~x86"
65 +
66 +PDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
67 + >=app-mobilephone/dfu-util-0.7"
68 +
69 +src_configure() {
70 + true
71 +}
72 +
73 +src_compile() {
74 + true
75 +}
76 +
77 +src_install() {
78 + insinto /usr/share/hackrf
79 + newins firmware/portapack-h1-havoc.bin portapack-h1-havoc-${PV}.bin
80 + ln -s portapack-h1-havoc-${PV}.bin "${ED}/usr/share/hackrf/portapack-h1-havoc.bin"
81 +
82 + cat << EOF > switch_to_havoc
83 +#!/bin/sh
84 +printf "Hold down the HackRF's DFU button (the button closest to the antenna jack)\n"
85 +printf "then plug the HackRF into a USB port on your computer.\n"
86 +printf "After the HackRF is plugged in, you may release the DFU button.\n"
87 +printf "Press any key to continue or ^c to abort\n"
88 +read
89 +dfu-util --device 1fc9:000c --download /usr/share/hackrf/hackrf_one_usb_ram.dfu --reset
90 +sleep 2s
91 +hackrf_spiflash -w /usr/share/hackrf/portapack-h1-havoc.bin
92 +EOF
93 + dobin switch_to_havoc
94 +}