From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B6521138334 for ; Wed, 22 Aug 2018 20:47:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1480E09C9; Wed, 22 Aug 2018 20:47:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 799F9E09C9 for ; Wed, 22 Aug 2018 20:47:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B31BD335C95 for ; Wed, 22 Aug 2018 20:47:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC9862BA for ; Wed, 22 Aug 2018 20:47:40 +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: <1534970849.6af528a12f3155385d6d1170da5f2e891e885e6c.zerochaos@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/mousejack/files/, net-wireless/mousejack/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-wireless/mousejack/Manifest net-wireless/mousejack/files/mousejack net-wireless/mousejack/metadata.xml net-wireless/mousejack/mousejack-0.0_p20160726.ebuild X-VCS-Directories: net-wireless/mousejack/ net-wireless/mousejack/files/ X-VCS-Committer: zerochaos X-VCS-Committer-Name: Richard Farina X-VCS-Revision: 6af528a12f3155385d6d1170da5f2e891e885e6c X-VCS-Branch: master Date: Wed, 22 Aug 2018 20:47:40 +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: f6ff911b-8fd1-44bc-8296-7bc88b96b011 X-Archives-Hash: 8b13b5426fe6c6ed623338fe0a881a2d commit: 6af528a12f3155385d6d1170da5f2e891e885e6c Author: Zero_Chaos gentoo org> AuthorDate: Wed Aug 22 20:47:14 2018 +0000 Commit: Richard Farina gentoo org> CommitDate: Wed Aug 22 20:47:29 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6af528a1 net-wireless/mousejack: initial commit Package-Manager: Portage-2.3.48, Repoman-2.3.10 net-wireless/mousejack/Manifest | 1 + net-wireless/mousejack/files/mousejack | 42 +++++++++++++++++++++ net-wireless/mousejack/metadata.xml | 11 ++++++ .../mousejack/mousejack-0.0_p20160726.ebuild | 44 ++++++++++++++++++++++ 4 files changed, 98 insertions(+) diff --git a/net-wireless/mousejack/Manifest b/net-wireless/mousejack/Manifest new file mode 100644 index 00000000000..0eaba0412af --- /dev/null +++ b/net-wireless/mousejack/Manifest @@ -0,0 +1 @@ +DIST mousejack-0.0_p20160726.tar.gz 34252 BLAKE2B 7511d29aa94f2fb5590b34d52eaa64150f3931933f043c9028e2d9cae61342a314a369e80e51e1150294afaadca06e58ec71ba4df4150a7a58d9a82d28919a58 SHA512 01fc87a347aea9ccad7611ef494da0521da278b7664e511409f0f822327b02f6fb555c5b5da86aae998b8fd34b7a55260d03594fbd9bb61c3ceca77e7d54958c diff --git a/net-wireless/mousejack/files/mousejack b/net-wireless/mousejack/files/mousejack new file mode 100644 index 00000000000..b47d365cd7f --- /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-firmware/prog/usb-flash.py /usr/share/mousejack-firmware/dongle.bin + exit $? + ;; + logitech_install) + /usr/share/mousejack-firmware/prog/logitech-usb-flash.py /usr/share/mousejack-firmware/dongle.formatted.bin /usr/share/mousejack-firmware/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 00000000000..c5c7cc912ab --- /dev/null +++ b/net-wireless/mousejack/metadata.xml @@ -0,0 +1,11 @@ + + + + + zerochaos@gentoo.org + Rick Farina + + + BastilleResearch/nrf-research-firmware + + diff --git a/net-wireless/mousejack/mousejack-0.0_p20160726.ebuild b/net-wireless/mousejack/mousejack-0.0_p20160726.ebuild new file mode 100644 index 00000000000..2593ee85381 --- /dev/null +++ b/net-wireless/mousejack/mousejack-0.0_p20160726.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" +}