diff options
Diffstat (limited to 'net-wireless/rfcat/rfcat-0.0.170508.ebuild')
-rw-r--r-- | net-wireless/rfcat/rfcat-0.0.170508.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
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 000000000000..344278dba590 --- /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 +} |