summaryrefslogtreecommitdiff
path: root/net-wireless/mousejack
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-08-25 07:36:27 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-08-25 07:36:27 +0100
commit43793fab84041cfc5c60c0151d1591b8a69fb24a (patch)
tree6208a7f4fc744684fce0f55acbb47511acace498 /net-wireless/mousejack
parent28e3d252dc8ac8a5635206dfefe1cfe05058d1db (diff)
gentoo resync : 25.08.2018
Diffstat (limited to 'net-wireless/mousejack')
-rw-r--r--net-wireless/mousejack/Manifest4
-rw-r--r--net-wireless/mousejack/files/mousejack42
-rw-r--r--net-wireless/mousejack/metadata.xml11
-rw-r--r--net-wireless/mousejack/mousejack-0.0_p20160726-r1.ebuild44
4 files changed, 101 insertions, 0 deletions
diff --git a/net-wireless/mousejack/Manifest b/net-wireless/mousejack/Manifest
new file mode 100644
index 000000000000..f3aca9d19521
--- /dev/null
+++ b/net-wireless/mousejack/Manifest
@@ -0,0 +1,4 @@
+AUX mousejack 858 BLAKE2B 5989e4f8c6645bc2feb8fe2ebbb9d2a2b5beba328016aa3c0c53ff20720b8e62cd08f83dc08dc608eb1b8ff27f3a92ea0a547547074bf9cca56276b0e63caad3 SHA512 31c89a7d85ab36a978439ecaaa03dbae1b1e8511d3aa02b1acb521854d81b4e8c012c202792abbf28f25283ec718ad4abd4d14a16ba4c8ead073c054490e9c84
+DIST mousejack-0.0_p20160726.tar.gz 34252 BLAKE2B 7511d29aa94f2fb5590b34d52eaa64150f3931933f043c9028e2d9cae61342a314a369e80e51e1150294afaadca06e58ec71ba4df4150a7a58d9a82d28919a58 SHA512 01fc87a347aea9ccad7611ef494da0521da278b7664e511409f0f822327b02f6fb555c5b5da86aae998b8fd34b7a55260d03594fbd9bb61c3ceca77e7d54958c
+EBUILD mousejack-0.0_p20160726-r1.ebuild 1223 BLAKE2B 368d2988a0de8955e236f6cf7d79b005607df67adb376b9ceb9b55dff5fc9499ba65e8fdd3589fc72b7aaddf2a93e0222f46dd05bd4b6bb19f373bc5a8f15df4 SHA512 d214d836d1b00b8fa464fd0e3f50713a60b2d3799566a3809105485d2f500614442aba9f867f777edea184c9e81cf1b6421dbe79a5a30ed3b28d4d9cbe0a8395
+MISC metadata.xml 360 BLAKE2B ca2e678d3f96cece827270a7c5ee404a5e926c0a231979c4cc4442085fde9af1ce8d28f2a07b5bcf7f475eccb3b772d843ef36c03ae405205e710f5a3a240195 SHA512 ed42ea84e9b7f97be6aafb2cea3495e63abab197759a31795ebab8900f29caf500040b0deaf7997c6f598a8a8db3b2a64925d6df05f9b5b851037bd4e25b0b3a
diff --git a/net-wireless/mousejack/files/mousejack b/net-wireless/mousejack/files/mousejack
new file mode 100644
index 000000000000..666ea47d9c9e
--- /dev/null
+++ b/net-wireless/mousejack/files/mousejack
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+usage() {
+ printf "The following firmware's are supported:\n"
+ printf "Nordic Semiconductor Bootloader\n"
+ printf "CrazyRadio Firmware\n"
+ printf "RFStorm Research Firmware\n"
+ printf "run \"mousejack install\"\n\n"
+ printf "To flash Logitech Unifying Dongle C-U0007\n"
+ printf "run \"mousejack logitech_install\"\n\n"
+}
+
+if [ -z "${1}" ]; then
+ usage
+ exit 1
+fi
+
+#parse args
+while true; do
+ case $1 in
+ -h|--help)
+ usage
+ exit 0
+ ;;
+ install)
+ /usr/share/mousejack/prog/usb-flash.py /usr/share/mousejack/dongle.bin
+ exit $?
+ ;;
+ logitech_install)
+ /usr/share/mousejack/prog/logitech-usb-flash.py /usr/share/mousejack/dongle.formatted.bin /usr/share/mousejack/dongle.formatted.ihx
+ exit $?
+ ;;
+ --)
+ shift
+ break
+ ;;
+ *)
+ break
+ ;;
+ esac
+ shift
+done
diff --git a/net-wireless/mousejack/metadata.xml b/net-wireless/mousejack/metadata.xml
new file mode 100644
index 000000000000..c5c7cc912abc
--- /dev/null
+++ b/net-wireless/mousejack/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zerochaos@gentoo.org</email>
+ <name>Rick Farina</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">BastilleResearch/nrf-research-firmware</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-wireless/mousejack/mousejack-0.0_p20160726-r1.ebuild b/net-wireless/mousejack/mousejack-0.0_p20160726-r1.ebuild
new file mode 100644
index 000000000000..2593ee853819
--- /dev/null
+++ b/net-wireless/mousejack/mousejack-0.0_p20160726-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1
+
+DESCRIPTION="Firmware and research tools for nRF24LU1+ based USB dongles and breakout boards"
+HOMEPAGE="https://www.mousejack.com/"
+COMMIT="02b84d1c4e59c0fb98263c83b2e7c7f9863a3b93"
+SRC_URI="https://github.com/BastilleResearch/nrf-research-firmware/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/nrf-research-firmware-${COMMIT}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-embedded/sdcc[device-lib,mcs51,sdbinutils]"
+RDEPEND="${DEPEND}
+ ${PYTHON_DEPS}
+ dev-python/pyusb[${PYTHON_USEDEP}]"
+
+src_prepare() {
+ mv tools/lib tools/nrf24 || die
+ for file in tools/nrf24-*; do
+ sed -i 's#from lib#from nrf24#' ${file} || die
+ done
+ default
+}
+src_install() {
+ insinto /usr/share/${PN}
+ doins bin/dongle.{bin,formatted.bin,formatted.ihx}
+
+ python_domodule tools/nrf24
+ python_doscript tools/nrf24-*
+
+ python_scriptinto /usr/share/${PN}/prog
+ python_doscript prog/usb-flasher/usb-flash.py
+ python_doscript prog/usb-flasher/logitech-usb-flash.py
+ python_doscript prog/usb-flasher/unifying.py
+
+ dosbin "${FILESDIR}/mousejack"
+}