srsran: import srslte from gentoo and update

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-03-19 21:54:05 -04:00
parent c84237e462
commit 333118c1f3
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
7 changed files with 148 additions and 3 deletions

View file

@ -0,0 +1 @@
DIST srsran-21.10.tar.gz 14603401 BLAKE2B 856889140cd2310f462491aab33c3f400206b7aaf4bc0acb18ab4ba72eae654bcbbf93ae4427a21723e89b50690f4c89a5c00fc3e4a69b28fbe3dad2fe77b5c4 SHA512 f8d52a507dc0d6b18222c55e576fcdf0d1ceb911d8f940bd9f6b3947ea0cf7dfb1146f71171171e3abbcc3a88fd49e636372e09e96a1e45e44d88c63014dc300

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>radio@gentoo.org</email>
<name>Radio</name>
</maintainer>
<use>
<flag name="uhd">support Ettus Research hardware</flag>
<flag name="bladerf">support Nuand BladeRF hardware</flag>
<flag name="soapysdr">use soapysdr to support various hardware</flag>
<flag name="simcard">support hardware sim cards</flag>
<flag name="zeromq">enable zeromq message passing</flag>
</use>
<upstream>
<remote-id type="github">srsLTE/srsLTE</remote-id>
</upstream>
</pkgmetadata>

View file

@ -0,0 +1,63 @@
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Open source SDR 4G/5G software suite from Software Radio Systems"
HOMEPAGE="https://srs.io"
# Possible issues to look into
#https://bugs.gentoo.org/713684
#https://bugs.gentoo.org/731720
#https://bugs.gentoo.org/733662
#https://bugs.gentoo.org/832618
if [ "${PV}" = "9999" ]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/srsran/srsRAN.git"
else
inherit vcs-snapshot
KEYWORDS="~amd64 ~x86"
MY_PV=${PV//./_}
SRC_URI="https://github.com/srsran/srsRAN/archive/refs/tags/release_${MY_PV}.tar.gz -> ${P}.tar.gz"
fi
#https://github.com/srsran/srsRAN/issues/834
#https://github.com/srsran/srsRAN/issues/835
RESTRICT="test"
LICENSE="GPL-3"
SLOT="0"
IUSE="bladerf simcard soapysdr uhd zeromq"
DEPEND="
dev-libs/boost:=
dev-libs/libconfig:=[cxx]
net-misc/lksctp-tools
net-libs/mbedtls:=
sci-libs/fftw:3.0=
bladerf? ( net-wireless/bladerf:= )
simcard? ( sys-apps/pcsc-lite )
soapysdr? ( net-wireless/soapysdr:= )
uhd? ( net-wireless/uhd:= )
zeromq? ( net-libs/zeromq:= )
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
sed -i '/ -Werror"/d' CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
mycmakeargs=(
-DENABLE_UHD="$(usex uhd)"
-DENABLE_BLADERF="$(usex bladerf)"
-DENABLE_SOAPYSDR="$(usex soapysdr)"
-DENABLE_ZEROMQ="$(usex zeromq)"
-DENABLE_HARDSIM="$(usex simcard)"
)
cmake_src_configure
}

View file

@ -0,0 +1,63 @@
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Open source SDR 4G/5G software suite from Software Radio Systems"
HOMEPAGE="https://srs.io"
# Possible issues to look into
#https://bugs.gentoo.org/713684
#https://bugs.gentoo.org/731720
#https://bugs.gentoo.org/733662
#https://bugs.gentoo.org/832618
if [ "${PV}" = "9999" ]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/srsran/srsRAN.git"
else
inherit vcs-snapshot
KEYWORDS="~amd64 ~x86"
MY_PV=${PV//./_}
SRC_URI="https://github.com/srsran/srsRAN/archive/refs/tags/release_${MY_PV}.tar.gz -> ${P}.tar.gz"
fi
#https://github.com/srsran/srsRAN/issues/834
#https://github.com/srsran/srsRAN/issues/835
RESTRICT="test"
LICENSE="GPL-3"
SLOT="0"
IUSE="bladerf simcard soapysdr uhd zeromq"
DEPEND="
dev-libs/boost:=
dev-libs/libconfig:=[cxx]
net-misc/lksctp-tools
net-libs/mbedtls:=
sci-libs/fftw:3.0=
bladerf? ( net-wireless/bladerf:= )
simcard? ( sys-apps/pcsc-lite )
soapysdr? ( net-wireless/soapysdr:= )
uhd? ( net-wireless/uhd:= )
zeromq? ( net-libs/zeromq:= )
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
sed -i '/ -Werror"/d' CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
mycmakeargs=(
-DENABLE_UHD="$(usex uhd)"
-DENABLE_BLADERF="$(usex bladerf)"
-DENABLE_SOAPYSDR="$(usex soapysdr)"
-DENABLE_ZEROMQ="$(usex zeromq)"
-DENABLE_HARDSIM="$(usex simcard)"
)
cmake_src_configure
}

View file

@ -28,7 +28,7 @@ PDEPEND="net-wireless/gnuradio[uhd?]
amd64? (
net-wireless/editcp-bin
net-wireless/mjackit
net-wireless/srslte
net-wireless/srsran
)
app-misc/rtlamr
app-mobilephone/dfu-util

View file

@ -99,12 +99,12 @@ net-wireless/kismetmobiledashboard
net-wireless/multimode
net-wireless/srsran
#below here likely needs cleanup
#### Gentoo (to be cleaned)
net-wireless/lorcon
net-wireless/srslte
net-wireless/gr-scan
net-wireless/limesuite
net-wireless/rfcat

View file

@ -12,7 +12,7 @@ net-wireless/libxtrx soapy
net-wireless/libxtrxll usb3380
net-wireless/lorcon python -ruby
net-wireless/rtl_433 soapysdr
net-wireless/srslte bladerf simcard soapysdr uhd zeromq
net-wireless/srsran bladerf simcard soapysdr uhd zeromq
net-wireless/soapysdr bladerf hackrf rtlsdr plutosdr uhd python
net-wireless/uhd examples
net-wireless/urh audio bladerf hackrf limesdr plutosdr rtlsdr uhd