commit: 234bb7d9af746ae9e68243289d343aa37e7fb2e0 Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org> AuthorDate: Mon May 8 16:03:47 2017 +0000 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> CommitDate: Mon May 8 16:03:47 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=234bb7d9
net-wireless/rfcat: tagged release Package-Manager: Portage-2.3.5, Repoman-2.3.2 net-wireless/rfcat/Manifest | 5 +++ net-wireless/rfcat/rfcat-0.0.170508.ebuild | 50 ++++++++++++++++++++++++++++++ net-wireless/rfcat/rfcat-9999.ebuild | 40 +++++++++++++++++++----- 3 files changed, 88 insertions(+), 7 deletions(-) diff --git a/net-wireless/rfcat/Manifest b/net-wireless/rfcat/Manifest new file mode 100644 index 00000000000..f77455932ea --- /dev/null +++ b/net-wireless/rfcat/Manifest @@ -0,0 +1,5 @@ +DIST RfCatChronosCCBootloader-170313.hex 49806 SHA256 51ba21414fd834c8c55326eba0cbc3299e84e02c6a91ccf81e250a9858da23ff SHA512 3319de119c76d1373251cea98d847d210082edfce6ec116da1e06e4e48ae9a6780bff7bdd2d231667bebc4cfefe770cccb86db14aba45df27e040cc48e23ce35 WHIRLPOOL f86656766d24ecc36f017830e98fb0dfb4a8595eaf09298de53d15e2de0e7facd0a0cb172d3daa41a881d5ad8f099a32e89c4e1044270896ddea986bdd217b1d +DIST RfCatDonsCCBootloader-170313.hex 49664 SHA256 261074b79ab7149535637486db5b170e9fc80532967438ff14288606c9456000 SHA512 c3fe9a14135a24a44d8c9d193278850a1ba41085f4225397fe21f47e9a874bf1cdaec080acb57d3b086ce05132711df8e6e4cb63b7eacf7d2c24fcafe4dff1f2 WHIRLPOOL 81db6785efa5afe65faac23fe7b8d4461079c299f76b2977658bb10fd27a9adfdd065076a0e83631c869687f0f4d600ea88aaed77afbce343d19989c5effe5ca +DIST RfCatYS1CCBootloader-170313.hex 50208 SHA256 5cec659ebb0a5b01ce6cea0caa1d9572e020371763574e0054805451c352a95a SHA512 6b51aed7ca3ae916137056df711c0f8f76de7f30dec48227da226a7c8814fdded5a1d544f746c74423f69289bae90276b425f7b44a7ad4af5dd96994efc385e2 WHIRLPOOL dec33db6015e0d4c4a0ff667949a2df87abea20e0d8ee2a485e6caa82f4a6fbbad24cc5031db825b31a256cb3daa63b295c0a63c0292102b6991152dcf95d3dc +DIST immeSniff-170508.hex 38770 SHA256 2f9cadf812fbecbeecf17f06367588710a88d1b7145615f53ba0820ac3ea2ed0 SHA512 3f06693fc893071adfb75e510da4d5c47752480896e449f893141b4db43dc7fb859dc25ab368d742ae612ebda085f199bcd8e18c9f5fa6f58c6b6204defc7b5f WHIRLPOOL 2c9526524183243a10d7432c9fcb46cb0806a789623d000633ae312f688b976099bdffcc7d30de484756bd082675f70d81adeed275b1a214ba7a5e436912d067 +DIST rfcat_170508.tgz 462440 SHA256 9fbb09480000b7232d86b6681869aa23f6e1ed7968dff0e3f2bd7f1b9c94b6ef SHA512 79f960ee6b8c2d66cb17ca69216041bb9679b0d38579feb3ab59bbb6e41337b29c4ad30a6d03b2de4c58eeeff5f22fe26412a670da5278e81a47a2ec3d699f60 WHIRLPOOL e5800479b80622e6c4f3f02ae09cbc5fd7e106b9adf9e36d88807d094ae3452e4f99bb31e15e9cb4b120e4e8c3f9ae6971d92d36373941c511dbad22b0ea1d61 diff --git a/net-wireless/rfcat/rfcat-0.0.170508.ebuild b/net-wireless/rfcat/rfcat-0.0.170508.ebuild new file mode 100644 index 00000000000..344278dba59 --- /dev/null +++ b/net-wireless/rfcat/rfcat-0.0.170508.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +inherit distutils-r1 + +DESCRIPTION="The swiss army knife of subGHz" +HOMEPAGE="https://bitbucket.org/atlas0fd00m/rfcat/" + +if [ "${PV}" = "9999" ]; then + EHG_REPO_URI="https://bitbucket.org/atlas0fd00m/rfcat" + inherit mercurial + KEYWORDS="" +else + DATE="170508" + FIRMWARE_DATE="170313" + SRC_URI="https://bitbucket.org/atlas0fd00m/rfcat/downloads/rfcat_${DATE}.tgz \ + https://bitbucket.org/atlas0fd00m/rfcat/downloads/immeSniff-${DATE}.hex \ + https://bitbucket.org/atlas0fd00m/rfcat/downloads/RfCatChronosCCBootloader-${FIRMWARE_DATE}.hex \ + https://bitbucket.org/atlas0fd00m/rfcat/downloads/RfCatDonsCCBootloader-${FIRMWARE_DATE}.hex \ + https://bitbucket.org/atlas0fd00m/rfcat/downloads/RfCatYS1CCBootloader-${FIRMWARE_DATE}.hex" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}_${DATE}" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="" + +#DEPEND="dev-embedded/sdcc" +#RDEPEND="${DEPEND}" + +src_install() { + distutils-r1_src_install + + if [ "${PV}" != "9999" ]; then + insinto /usr/share/rfcat + doins "${DISTDIR}"/*.hex + fi +} + +pkg_postinst() { + if [ "${PV}" = "9999" ]; then + ewarn "Right now, this only installs the rfcat host tools, nothing related to firmware" + else + einfo "Pre-compiled firmwares from upstream are installed in /usr/share/rfcat" + fi +} diff --git a/net-wireless/rfcat/rfcat-9999.ebuild b/net-wireless/rfcat/rfcat-9999.ebuild index 581a99cf43b..344278dba59 100644 --- a/net-wireless/rfcat/rfcat-9999.ebuild +++ b/net-wireless/rfcat/rfcat-9999.ebuild @@ -1,24 +1,50 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 PYTHON_COMPAT=( python2_7 ) -inherit mercurial distutils-r1 +inherit distutils-r1 DESCRIPTION="The swiss army knife of subGHz" HOMEPAGE="https://bitbucket.org/atlas0fd00m/rfcat/" -#SRC_URI="" -EHG_REPO_URI="https://bitbucket.org/atlas0fd00m/rfcat" + +if [ "${PV}" = "9999" ]; then + EHG_REPO_URI="https://bitbucket.org/atlas0fd00m/rfcat" + inherit mercurial + KEYWORDS="" +else + DATE="170508" + FIRMWARE_DATE="170313" + SRC_URI="https://bitbucket.org/atlas0fd00m/rfcat/downloads/rfcat_${DATE}.tgz \ + https://bitbucket.org/atlas0fd00m/rfcat/downloads/immeSniff-${DATE}.hex \ + https://bitbucket.org/atlas0fd00m/rfcat/downloads/RfCatChronosCCBootloader-${FIRMWARE_DATE}.hex \ + https://bitbucket.org/atlas0fd00m/rfcat/downloads/RfCatDonsCCBootloader-${FIRMWARE_DATE}.hex \ + https://bitbucket.org/atlas0fd00m/rfcat/downloads/RfCatYS1CCBootloader-${FIRMWARE_DATE}.hex" + KEYWORDS="~amd64 ~x86" + S="${WORKDIR}/${PN}_${DATE}" +fi LICENSE="BSD" SLOT="0" -KEYWORDS="" IUSE="" #DEPEND="dev-embedded/sdcc" #RDEPEND="${DEPEND}" +src_install() { + distutils-r1_src_install + + if [ "${PV}" != "9999" ]; then + insinto /usr/share/rfcat + doins "${DISTDIR}"/*.hex + fi +} + pkg_postinst() { - ewarn "Right now, this only installs the rfcat host tools, nothing related to firmware" + if [ "${PV}" = "9999" ]; then + ewarn "Right now, this only installs the rfcat host tools, nothing related to firmware" + else + einfo "Pre-compiled firmwares from upstream are installed in /usr/share/rfcat" + fi }