Skip to content

Commit

Permalink
net-wireless/rtl-sdr: stable release
Browse files Browse the repository at this point in the history
there really should have been fireworks

Package-Manager: Portage-2.3.43, Repoman-2.3.10
  • Loading branch information
ZeroChaos- committed Jul 24, 2018
1 parent 6aeb447 commit 7aef7c6
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions net-wireless/rtl-sdr/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST rtl-sdr-0.5.3_p20170919.tar.xz 98972 BLAKE2B fb7d977bd05a2c717897ba58a2242698d1a90cf38a7a8340d7ec8c3aefeeff49bfe9612285253b27c6726ae584172e0b26c8f535bc4bec704958c1296e232f04 SHA512 b1b97c720882ccbe8be8e30af28b8d52c5a27507861bdb9e964e153cd8ece9de977abd271b68861c163a7cf239044f28c8d17ccda5ff5acf60f17d839d782a82
DIST rtl-sdr-0.5.4.tar.xz 108708 BLAKE2B 12f5f5a913089ec57327621eddab9b74b07cccceeac9d00ab2cbd413bc29d8444633953319e2887ef5e07a766f38b4ea2f5d3cbf73efd63a1886e30e2bed6968 SHA512 6cf3c62e6a56694f90deed64e2761105fdbeb40de8001a378e687d60cc3718ad64065b5d896b3f4b27ff6a5383173b53df52816e24b31c726485364cfd9c1a43
52 changes: 52 additions & 0 deletions net-wireless/rtl-sdr/rtl-sdr-0.5.4.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit cmake-utils multilib

DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr"

if [[ ${PV} == 9999* ]]; then
inherit git-r3
SRC_URI=""
EGIT_REPO_URI="https://git.osmocom.org/${PN}"
KEYWORDS=""
else
#git clone https://git.osmocom.org/rtl-sdr
#cd rtl-sdr
#git archive --format=tar --prefix=rtl-sdr-${PV}/ master | xz > ../rtl-sdr-${PV}.tar.xz
SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz"
KEYWORDS="~amd64 ~arm ~x86"
fi

LICENSE="GPL-2"
SLOT="0"
IUSE=""

DEPEND="virtual/libusb:1"
RDEPEND="${DEPEND}"

src_unpack() {
if [[ ${PV} == 9999* ]]; then
git-r3_src_unpack
else
default
fi
}

src_configure() {
#the udev rules are 666, we don't want that
mycmakeargs=(
-DINSTALL_UDEV_RULES=OFF
-DDETACH_KERNEL_DRIVER=ON
-DLIB_INSTALL_DIR=/usr/$(get_libdir)
)
cmake-utils_src_configure
}

pkg_postinst() {
elog "Only users in the usb group can capture."
elog "Just run 'gpasswd -a <USER> usb', then have <USER> re-login."
}

0 comments on commit 7aef7c6

Please sign in to comment.