diff options
-rw-r--r-- | sys-apps/rtl-entropy/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/rtl-entropy/metadata.xml | 14 | ||||
-rw-r--r-- | sys-apps/rtl-entropy/rtl-entropy-0.1.2_p20180118.ebuild | 35 |
3 files changed, 50 insertions, 0 deletions
diff --git a/sys-apps/rtl-entropy/Manifest b/sys-apps/rtl-entropy/Manifest new file mode 100644 index 000000000000..e0f80564be0a --- /dev/null +++ b/sys-apps/rtl-entropy/Manifest @@ -0,0 +1 @@ +DIST rtl-entropy-0.1.2_p20180118.tar.gz 57495 BLAKE2B f4f1fcaf296594263c70e3221fedd35876d34f4a740332bc95fc3407393db05072507a83cebe5561bfc514d02f2a69f948a09c2e0176acae0a4d262cf478e165 SHA512 b09ccac5594d067c36e44683b1f67dde1255a4ea4e10bbd6b8cdff940158c9bdcf9aa1938a3ecead5a1c254fb641571c2ad6efb04933f9dba08a2f628f3e0ef8 diff --git a/sys-apps/rtl-entropy/metadata.xml b/sys-apps/rtl-entropy/metadata.xml new file mode 100644 index 000000000000..dfd977ac976e --- /dev/null +++ b/sys-apps/rtl-entropy/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>radio@gentoo.org</email> + <name>Radio</name> + </maintainer> +<use> + <flag name="bladerf">Build with Nuand BladeRF support</flag> +</use> + <upstream> + <remote-id type="github">pwarren/rtl-entropy</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-apps/rtl-entropy/rtl-entropy-0.1.2_p20180118.ebuild b/sys-apps/rtl-entropy/rtl-entropy-0.1.2_p20180118.ebuild new file mode 100644 index 000000000000..98a244b359e8 --- /dev/null +++ b/sys-apps/rtl-entropy/rtl-entropy-0.1.2_p20180118.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="An entropy generator using SDR peripherals, including rtl-sdr and BladeRF" +HOMEPAGE="http://rtl-entropy.org/" +COMMIT="9f1768c35f6205a73a657cfc9ac7bd9f9a40936c" +SRC_URI="https://github.com/pwarren/rtl-entropy/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#sadly, rtlsdr support doesn't appear to be optional +IUSE="bladerf" + +RDEPEND="sys-libs/libcap + dev-libs/openssl:0= + bladerf? ( net-wireless/bladerf ) + net-wireless/rtl-sdr" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + if ! use bladerf; then + sed -i 's#libbladeRF.h#libbladeRF-totallynotreal.h#' cmake/Modules/FindLibbladeRF.cmake + fi + #if ! use rtlsdr; then + # sed -i 's#rtl-sdr.h#rtl-sdr-totallynotreal.h#' cmake/Modules/FindLibRTLSDR.cmake + #fi + default +} |