Install this version:
emerge -a =net-wireless/rtl-sdr-blog-1.4.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-wireless/rtl-sdr-blog-1.4.0
Or alternatively:
emerge --autounmask-write -a =net-wireless/rtl-sdr-blog-1.4.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.4.0 | 8 | ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake udev
DESCRIPTION="Modified Osmocom drivers with enhancements for RTL-SDR Blog V3 and V4 units"
HOMEPAGE="https://github.com/rtlsdrblog/rtl-sdr-blog"
SRC_URI="https://github.com/rtlsdrblog/${PN}/archive/refs/tags/V${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-2+ GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="+zerocopy"
DEPEND="virtual/libusb:1"
RDEPEND="
${DEPEND}
acct-group/plugdev
!net-wireless/rtl-sdr
"
PATCHES=(
"${FILESDIR}/${PN}-1.3.6-disable-static.patch"
"${FILESDIR}/${PN}-1.3.6-pkgconfig-libdir.patch"
"${FILESDIR}/${PN}-1.3.6-udev-rules-path.patch"
)
src_prepare() {
# Fix CMake-4 compatibility
sed -e '/cmake_minimum_required/s/3\.7\.2/3.10/' -i CMakeLists.txt || die
# Set proper so file version name
sed -e '/VERSION_INFO_PATCH_VERSION/ s/git/0/g' -i CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DCVF_VERSION="${PV}"
-DDETACH_KERNEL_DRIVER="ON"
-DENABLE_ZEROCOPY="$(usex zerocopy)"
-DINSTALL_UDEV_RULES="ON"
)
cmake_src_configure
}
src_install() {
cmake_src_install
newinitd "${FILESDIR}"/rtl_tcp.initd rtl_tcp
newconfd "${FILESDIR}"/rtl_tcp.confd rtl_tcp
}
pkg_postinst() {
udev_reload
elog "Only users in the usb group can capture."
elog "Just run 'gpasswd -a <USER> plugdev', then have <USER> re-login."
}
pkg_postrm() {
udev_reload
}
Manage flags for this package:
euse -i <flag> -p net-wireless/rtl-sdr-blog |
euse -E <flag> -p net-wireless/rtl-sdr-blog |
euse -D <flag> -p net-wireless/rtl-sdr-blog
virtual/libusb:1
virtual/libusb:1 acct-group/plugdev !net-wireless/rtl-sdr
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | rtl-sdr-blog-1.4.0.gh.tar.gz | 138499 bytes | https://github.com/rtlsdrblog/rtl-sdr-blog/archive/refs/tags/V1.4.0.tar.gz |