diff options
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/Manifest.gz | bin | 15727 -> 15717 bytes | |||
-rw-r--r-- | net-wireless/gnuradio/Manifest | 9 | ||||
-rw-r--r-- | net-wireless/gnuradio/files/gnuradio-3.8.2.0-3967.patch | 58 | ||||
-rw-r--r-- | net-wireless/gnuradio/gnuradio-3.8.1.0-r1.ebuild | 223 | ||||
-rw-r--r-- | net-wireless/gnuradio/gnuradio-3.8.1.0-r2.ebuild | 228 | ||||
-rw-r--r-- | net-wireless/gnuradio/gnuradio-3.8.2.0.ebuild | 20 | ||||
-rw-r--r-- | net-wireless/gnuradio/gnuradio-9999.ebuild | 1 | ||||
-rw-r--r-- | net-wireless/gqrx/Manifest | 6 | ||||
-rw-r--r-- | net-wireless/gqrx/gqrx-2.12.1-r1.ebuild | 65 | ||||
-rw-r--r-- | net-wireless/gqrx/gqrx-2.14.3.ebuild (renamed from net-wireless/gqrx/gqrx-2.14.2.ebuild) | 0 | ||||
-rw-r--r-- | net-wireless/unifi/Manifest | 2 | ||||
-rw-r--r-- | net-wireless/unifi/unifi-6.0.43.ebuild | 68 |
12 files changed, 143 insertions, 537 deletions
diff --git a/net-wireless/Manifest.gz b/net-wireless/Manifest.gz Binary files differindex b3d757102d8b..9a888d72ab11 100644 --- a/net-wireless/Manifest.gz +++ b/net-wireless/Manifest.gz diff --git a/net-wireless/gnuradio/Manifest b/net-wireless/gnuradio/Manifest index 89930f748d59..6b6f3ddc9926 100644 --- a/net-wireless/gnuradio/Manifest +++ b/net-wireless/gnuradio/Manifest @@ -1,12 +1,9 @@ +AUX gnuradio-3.8.2.0-3967.patch 1903 BLAKE2B 7024ab52326b9ff6aa12a924ec527d3c28c4decba669255f7bb099fdb3e21132beb3626af3599e7647e1aa9fbd413fd4391b22bc9c9698fd2727551cc0739497 SHA512 9ea85fc17ae2910c268955097b9e36bd530fce1092451231df6b124f39440b2d03739d98132403d1dccf942346f0cf4a286988d10709d0c64e1fa225daf80a97 AUX gnuradio-3.8.2.0-lamda-gr-qtgui.patch 11510 BLAKE2B 17154b93d39517cdd0b6607988c60fbc2274644b3b1f0f88fb36f4cb38820365a7c9b1a52ba17f96725d3a1f6596662ebe837f6837a7a67c7d6e8b4b01d2d7ff SHA512 2e2420b65188b88c3b9759cc2feb89c28c9c1cc151ff8555df7cac095f8619445f4594f60fafea6340ae8e3892fe509f66b3f7c8d4bae8bbfd2085ff74f3005c AUX gnuradio-3.8.2.0-lamda-gr-uhd.patch 3748 BLAKE2B bfda3afe8dcc5b872a86379d6d3aaad53e57ed10aa394f7b36abbe27e69886fe876f5cb9ba03489f5cb4e0362e782f01bacf9956b3709f21ef0c7841ee2b2e04 SHA512 ea69d44b66b2962327141173d4b66add7885f3ece2302fceb3e5cf294f9502b0e6ac34dd28b9b7ff1b3faa024552be70334629c28e596fc4c621f89fec1c4ab5 AUX gnuradio-3.8.2.0-lamda-most-components.patch 14122 BLAKE2B 30e63140ced2fdfd9712051ae6d758f2de57511bfdea972364c37d70c1eaf6e41921ad4e14e8f005be53016d8613e1c524b529c7b0e2476afc103edb49cfd946 SHA512 86f5f3ed6856fd183e71af1e6a94bc7e4310842f48a1ae7ed85b79d7a1ff86ebe84027bf24c3dc14a47c28335cc5edc321a7fce1ce24bcb26c0d7432e7aab4f7 AUX gnuradio-3.8.2.0-lamda-set-msg-handlers.patch 14027 BLAKE2B 5a4a248264df514991343c4eb134c3f3fca2c2e11a5b4eeb63eaa1d0d16a45d87b9a9edebbe30dafeec6488926a7be7ab44d8c15b3c5529000fb488dc7b2dff4 SHA512 6d62d0fc8c06d0df6c046fc69c0280ba1dd2a2f409694c48af67cc6ee72b82d492ef86d10f6d44e4a053f54da187a5dcdc370a82358f2a8595bd37dd8d15eb02 -DIST 0002-boost_qualify_placeholders_with_their_full_namespace.patch.bz2 6933 BLAKE2B 021574de46f582f668788d35bb0f2fb7a47a03ae9d8009adaf3d53946bdf7fc61301a985a7eb0c6cde37fef36dceae86d71d287a8beb61d793b6309064e4e09d SHA512 f42f997a92592d3caf7e29e50bfb5733ab94988743eb3231c78b31272c5cde840f5abd984e1c6b1f928828a6be84eb5d17c3455207509f48652ed160a4f6c7ae -DIST gnuradio-3.8.1.0.tar.xz 2436488 BLAKE2B f3919b458987c9dc72be2d9400473d64cc95870f4bf3a31b74c2ee9df8f291b6ca8e44d57269ad0af5e2fd0a22f777999986685f53665057f9a54478fa840479 SHA512 81e68db79b0927830a86d21f851f183becfad3e9b8b9b8379698c0d96d3f906b9b1b9292198829ce3d3c73fc29547e42a2532db62218d0b534bf02bf7a02fdde DIST gnuradio-3.8.2.0.tar.xz 2438736 BLAKE2B 93eabff578cd6b3b6587a6aa083095c787323ebf87a447d61999813e7e5e48b414d080a4fc02d01dabaa9378d42e3a210451a9109fc202991ebda8d1c9669676 SHA512 33930f62762cd9e3d1038b4a903f01e7ab33129732d207c126a89c1f1e719e9d656a94cdcbf3f6010f8476fedacee639c8a12444c41cdd56ad9fbace7863a170 -EBUILD gnuradio-3.8.1.0-r1.ebuild 6001 BLAKE2B 169303b741b964fe99d9e118cb009a6fff1e64266f591345683a7bc9cb8d814eadb63097da103e7026922e2f4d32384b24e56298b1db6137dba20bb5110a9e83 SHA512 980f3b69d0c5c73f57e03484907960073689be75a473fa2e2f3893fefeb5e24c4c7d9abd06fcb0032ea30de8f1a73b0c21c4986cd5fbcd96f922450faf6b81cc -EBUILD gnuradio-3.8.1.0-r2.ebuild 6180 BLAKE2B 5b43706289ce84c725fd6a370c75a2d70794b9db19baaf6121bb5ffd053b367781149d9c6d377da262dfb43b783ac22211cd2d1a82ad2d2233e77cd5a4697910 SHA512 4dbe95781189edcd088685d6cc1e3dafd21fda36d469de5919c1189f788f692e8ce597452e85887445d17f59adb3ad42a29d8eb7fe6156141c7c87acccd81b97 -EBUILD gnuradio-3.8.2.0.ebuild 6214 BLAKE2B b647cbfe1eaf25a98152775c7b1c56d9d9d13cfecb7dded0cbff3a913087889646abf3d2378fc465c4a067623e06b0eb294e3f127b9ecd7abeb81f83be47ea14 SHA512 5fd64b198e7c19dbb69df406aa8c72431a9a3fae31c3069b75a964225f36fe2f8e48c5157cd150818a46e68dd88b3667173c67b64cdca000887fb078b586d711 -EBUILD gnuradio-9999.ebuild 5976 BLAKE2B 23ce3f7fd6dba404271bc2a6fe4f5d50ca7e5851a47cb2f3e72c34dcba796c4835eacc8840a0b52e106869bfc63fe6a43d4f392adc0bd42e3fa42bb34b6d463e SHA512 88519e9721890754e5efc572d9d9f9b5b7745a78499b69e91f1be907a53901273e9eddfae32f9af950d9b19fc12efbbe1a8f247073653e13fa611db13ee7c964 +EBUILD gnuradio-3.8.2.0.ebuild 6244 BLAKE2B 77e64db618f040ce327270754ce00fd475b85af05d1d92acd9344492aebcffdece71bd5b309d3dbe6db020a7b3fc0d728a228f3f377c82f5c7313cfaea4d1674 SHA512 a16d8b41c491cd20a1d006615a94b80cf99f6d89b80d65a62a6d59e14ca99be279d25a95e77a3cd448deb5e997c03b8ad5bcca190f9ef8e89199083862719784 +EBUILD gnuradio-9999.ebuild 5963 BLAKE2B 80edb3e39b870a933927b52cafc95eef2a2ec29e0bd271bc2ced894fd49bae82c805df8010ff3df358221dfcab545b7d04788750017655f7cd02a7576f4046c7 SHA512 1ca5b9a03688bfea06f83202c34b53adcf5763670b51fd31cfea856d04d568c417d73c2d2145008d35805f19a1a3debc4cf73a607d5e098f4ba2aec08961f523 MISC metadata.xml 1532 BLAKE2B 0e5d971ca6a16064f0c250b3577bed7196c01089279821adb4d30523a850dc84a9f88936a8ff3471e468b36cf42942c34098e59351e9b97fcd97c6be110213b9 SHA512 636c94dab0303842c19cdb3aaccc354cdb5f14d758ee601e921e3d0bbcd6c7b2080abc16ba04ae9882129711312acfb58edfbd44b2619723cd01a989cafcd204 diff --git a/net-wireless/gnuradio/files/gnuradio-3.8.2.0-3967.patch b/net-wireless/gnuradio/files/gnuradio-3.8.2.0-3967.patch new file mode 100644 index 000000000000..bee81049e24e --- /dev/null +++ b/net-wireless/gnuradio/files/gnuradio-3.8.2.0-3967.patch @@ -0,0 +1,58 @@ +From cbcb968358fad56f3646619b258f18b0e6693a07 Mon Sep 17 00:00:00 2001 +From: Jeff Long <willcode4@gmail.com> +Date: Wed, 25 Nov 2020 09:44:55 -0500 +Subject: [PATCH 1/2] Boost placeholder scope required (using + boost::placeholders) + +--- + gnuradio-runtime/include/gnuradio/basic_block.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gnuradio-runtime/include/gnuradio/basic_block.h b/gnuradio-runtime/include/gnuradio/basic_block.h +index 1d31e2e9b8..0aace8f38d 100644 +--- a/gnuradio-runtime/include/gnuradio/basic_block.h ++++ b/gnuradio-runtime/include/gnuradio/basic_block.h +@@ -41,7 +41,7 @@ + #include <gnuradio/rpcregisterhelpers.h> + + namespace gr { +- ++using namespace boost::placeholders; + /*! + * \brief The abstract base class for all signal processing blocks. + * \ingroup internal + +From 951b16756934f28bc3da4b3c442651b2fbe79b05 Mon Sep 17 00:00:00 2001 +From: Jeff Long <willcode4@gmail.com> +Date: Wed, 25 Nov 2020 11:05:56 -0500 +Subject: [PATCH 2/2] boost bind: make placeholder namespace conditional on + boost version + +--- + gnuradio-runtime/include/gnuradio/basic_block.h | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/gnuradio-runtime/include/gnuradio/basic_block.h b/gnuradio-runtime/include/gnuradio/basic_block.h +index 0aace8f38d..c57c1cf553 100644 +--- a/gnuradio-runtime/include/gnuradio/basic_block.h ++++ b/gnuradio-runtime/include/gnuradio/basic_block.h +@@ -33,6 +33,9 @@ + #include <boost/foreach.hpp> + #include <boost/function.hpp> + #include <boost/thread/condition_variable.hpp> ++#if (BOOST_VERSION >= 106000) ++#include <boost/bind/bind.hpp> ++#endif + #include <deque> + #include <iostream> + #include <map> +@@ -41,7 +44,9 @@ + #include <gnuradio/rpcregisterhelpers.h> + + namespace gr { ++#if (BOOST_VERSION >= 106000) + using namespace boost::placeholders; ++#endif + /*! + * \brief The abstract base class for all signal processing blocks. + * \ingroup internal diff --git a/net-wireless/gnuradio/gnuradio-3.8.1.0-r1.ebuild b/net-wireless/gnuradio/gnuradio-3.8.1.0-r1.ebuild deleted file mode 100644 index ebf97b1bfda9..000000000000 --- a/net-wireless/gnuradio/gnuradio-3.8.1.0-r1.ebuild +++ /dev/null @@ -1,223 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) - -CMAKE_BUILD_TYPE="None" -inherit cmake python-single-r1 virtualx xdg-utils desktop - -DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios" -HOMEPAGE="https://www.gnuradio.org/" -LICENSE="GPL-3" -SLOT="0/${PV}" - -if [[ ${PV} =~ "9999" ]]; then - EGIT_REPO_URI="https://github.com/gnuradio/gnuradio.git" - EGIT_BRANCH="maint-3.8" - inherit git-r3 - KEYWORDS="" -else - SRC_URI="https://github.com/gnuradio/gnuradio/releases/download/v${PV}/${P}.tar.xz" - KEYWORDS="~amd64 ~arm ~x86" -fi - -IUSE="+audio +alsa +analog +digital channels doc dtv examples fec +filter grc jack modtool oss performance-counters portaudio +qt5 sdl test trellis uhd vocoder +utils wavelet zeromq" - -#RESTRICT="!test? ( test )" -#Tests are known broken right now -RESTRICT="test" - -REQUIRED_USE="${PYTHON_REQUIRED_USE} - audio? ( || ( alsa oss jack portaudio ) ) - alsa? ( audio ) - jack? ( audio ) - oss? ( audio ) - portaudio? ( audio ) - analog? ( filter ) - channels? ( filter analog qt5 ) - digital? ( filter analog ) - dtv? ( filter analog fec ) - modtool? ( utils ) - qt5? ( filter ) - trellis? ( analog digital ) - uhd? ( filter analog ) - vocoder? ( filter analog ) - wavelet? ( analog ) -" - -RDEPEND="${PYTHON_DEPS} - $(python_gen_cond_dep 'dev-libs/boost:0=[python,${PYTHON_USEDEP}]') - dev-libs/log4cpp - $(python_gen_cond_dep 'dev-python/six[${PYTHON_USEDEP}]') - sci-libs/fftw:3.0= - sci-libs/mpir - sci-libs/volk - alsa? ( media-libs/alsa-lib:= ) - fec? ( - sci-libs/gsl - dev-python/scipy - ) - filter? ( dev-python/scipy ) - grc? ( - $(python_gen_cond_dep 'dev-python/mako[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}]') - x11-libs/gtk+:3[introspection] - x11-libs/pango[introspection] - ) - jack? ( media-sound/jack-audio-connection-kit ) - portaudio? ( >=media-libs/portaudio-19_pre ) - qt5? ( - $(python_gen_cond_dep 'dev-python/PyQt5[opengl,${PYTHON_USEDEP}]') - dev-qt/qtcore:5 - dev-qt/qtgui:5 - x11-libs/qwt:6[qt5(+)] - dev-qt/qtwidgets:5 - ) - sdl? ( >=media-libs/libsdl-1.2.0 ) - trellis? ( dev-python/scipy ) - uhd? ( - $(python_gen_cond_dep '>=net-wireless/uhd-3.9.6:=[${PYTHON_SINGLE_USEDEP}]') - ) - utils? ( - $(python_gen_cond_dep 'dev-python/click[${PYTHON_USEDEP}] - dev-python/click-plugins[${PYTHON_USEDEP}] - dev-python/mako[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}]') - ) - vocoder? ( - media-sound/gsm - >=media-libs/codec2-0.8.1 - ) - wavelet? ( sci-libs/gsl - dev-libs/gmp - sci-libs/lapack - ) - zeromq? ( >=net-libs/zeromq-2.1.11 ) -" - -#That's right, it can't build if gnuradio 3.7 is installed -#Both due to build failure, and then file collision due to bundled volk -DEPEND="${RDEPEND} - !<net-wireless/gnuradio-3.8 - app-text/docbook-xml-dtd:4.2 - >=dev-lang/swig-3.0.5 - virtual/pkgconfig - doc? ( - >=app-doc/doxygen-1.5.7.1 - ) - grc? ( x11-misc/xdg-utils ) - oss? ( virtual/os-headers ) - test? ( >=dev-util/cppunit-1.9.14 ) - zeromq? ( net-libs/cppzmq ) -" - -src_prepare() { - xdg_environment_reset #534582 - - use !alsa && sed -i 's#version.h#version-nonexistent.h#' cmake/Modules/FindALSA.cmake - use !jack && sed -i 's#jack.h#jack-nonexistent.h#' cmake/Modules/FindJACK.cmake - use !oss && sed -i 's#soundcard.h#oss-nonexistent.h#g' cmake/Modules/FindOSS.cmake - use !portaudio && sed -i 's#portaudio.h#portaudio-nonexistent.h#g' cmake/Modules/FindPORTAUDIO.cmake - - cmake_src_prepare -} - -src_configure() { - mycmakeargs=( - -DENABLE_DEFAULT=OFF - -DENABLE_VOLK=OFF - -DENABLE_INTERNAL_VOLK=OFF - -DENABLE_GNURADIO_RUNTIME=ON - -DENABLE_PYTHON=ON - -DENABLE_GR_BLOCKS=ON - -DENABLE_GR_FFT=ON - -DENABLE_GR_AUDIO=ON - -DENABLE_GR_ANALOG="$(usex analog)" - -DENABLE_GR_CHANNELS="$(usex channels)" - -DENABLE_GR_DIGITAL="$(usex digital)" - -DENABLE_DOXYGEN="$(usex doc)" - -DENABLE_GR_DTV="$(usex dtv)" - -DENABLE_GR_FEC="$(usex fec)" - -DENABLE_GR_FILTER="$(usex filter)" - -DENABLE_GRC="$(usex grc)" - -DENABLE_GR_MODTOOL="$(usex modtool)" - -DENABLE_PERFORMANCE_COUNTERS="$(usex performance-counters)" - -DENABLE_TESTING="$(usex test)" - -DENABLE_GR_TRELLIS="$(usex trellis)" - -DENABLE_GR_UHD="$(usex uhd)" - -DENABLE_GR_UTILS="$(usex utils)" - -DENABLE_GR_VOCODER="$(usex vocoder)" - -DENABLE_GR_WAVELET="$(usex wavelet)" - -DENABLE_GR_QTGUI="$(usex qt5)" - -DENABLE_GR_VIDEO_SDL="$(usex sdl)" - -DENABLE_GR_ZEROMQ="$(usex zeromq)" - -DSYSCONFDIR="${EPREFIX}"/etc - -DPYTHON_EXECUTABLE="${PYTHON}" - -DGR_PYTHON_DIR="$(python_get_sitedir)" - -DGR_PKG_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - - if use examples ; then - dodir /usr/share/doc/${PF}/ - mv "${ED}"/usr/share/${PN}/examples "${ED}"/usr/share/doc/${PF}/ || die - docompress -x /usr/share/doc/${PF}/examples - else - # It seems that the examples are always installed - rm -rf "${ED}"/usr/share/${PN}/examples || die - fi - - if use doc || use examples; then - #this doesn't appear useful - rm -rf "${ED}"/usr/share/doc/${PF}/xml || die - fi - - # Remove duplicated icons, MIME and desktop files and installation script - rm -rf "${ED}"/usr/share/${PN}/grc/freedesktop || die - rm -f "${ED}"/usr/libexec/${PN}/grc_setup_freedesktop || die - - # Install icons, menu items and mime-types for GRC - if use grc ; then - local fd_path="${S}/grc/scripts/freedesktop" - insinto /usr/share/mime/packages - doins "${fd_path}/${PN}-grc.xml" - - domenu "${fd_path}/"*.desktop - doicon "${fd_path}/"*.png - fi - - python_fix_shebang "${ED}" - # Remove incorrectly byte-compiled Python files and replace - find "${ED}"/usr/lib -name "*.py[co]" -exec rm {} \; || die - python_optimize -} - -src_test() -{ - virtx cmake_src_test -} - -pkg_postinst() -{ - if use grc ; then - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update - fi -} - -pkg_postrm() -{ - if use grc ; then - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update - fi -} diff --git a/net-wireless/gnuradio/gnuradio-3.8.1.0-r2.ebuild b/net-wireless/gnuradio/gnuradio-3.8.1.0-r2.ebuild deleted file mode 100644 index 3ae37a1a92e3..000000000000 --- a/net-wireless/gnuradio/gnuradio-3.8.1.0-r2.ebuild +++ /dev/null @@ -1,228 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) - -CMAKE_BUILD_TYPE="None" -inherit cmake python-single-r1 virtualx xdg-utils desktop - -DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios" -HOMEPAGE="https://www.gnuradio.org/" -LICENSE="GPL-3" -SLOT="0/${PV}" - -if [[ ${PV} =~ "9999" ]]; then - EGIT_REPO_URI="https://github.com/gnuradio/gnuradio.git" - EGIT_BRANCH="maint-3.8" - inherit git-r3 - KEYWORDS="" -else - SRC_URI="https://github.com/gnuradio/gnuradio/releases/download/v${PV}/${P}.tar.xz - https://dev.gentoo.org/~fordfrog/distfiles/0002-boost_qualify_placeholders_with_their_full_namespace.patch.bz2" - KEYWORDS="~amd64 ~arm ~x86" -fi - -IUSE="+audio +alsa +analog +digital channels doc dtv examples fec +filter grc jack modtool oss performance-counters portaudio +qt5 sdl test trellis uhd vocoder +utils wavelet zeromq" - -#RESTRICT="!test? ( test )" -#Tests are known broken right now -RESTRICT="test" - -REQUIRED_USE="${PYTHON_REQUIRED_USE} - audio? ( || ( alsa oss jack portaudio ) ) - alsa? ( audio ) - jack? ( audio ) - oss? ( audio ) - portaudio? ( audio ) - analog? ( filter ) - channels? ( filter analog qt5 ) - digital? ( filter analog ) - dtv? ( filter analog fec ) - modtool? ( utils ) - qt5? ( filter ) - trellis? ( analog digital ) - uhd? ( filter analog ) - vocoder? ( filter analog ) - wavelet? ( analog ) -" - -RDEPEND="${PYTHON_DEPS} - $(python_gen_cond_dep 'dev-libs/boost:0=[python,${PYTHON_USEDEP}]') - dev-libs/log4cpp - $(python_gen_cond_dep 'dev-python/six[${PYTHON_USEDEP}]') - sci-libs/fftw:3.0= - sci-libs/mpir - sci-libs/volk - alsa? ( media-libs/alsa-lib:= ) - fec? ( - sci-libs/gsl - dev-python/scipy - ) - filter? ( dev-python/scipy ) - grc? ( - $(python_gen_cond_dep 'dev-python/mako[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}]') - x11-libs/gtk+:3[introspection] - x11-libs/pango[introspection] - ) - jack? ( virtual/jack ) - portaudio? ( >=media-libs/portaudio-19_pre ) - qt5? ( - $(python_gen_cond_dep 'dev-python/PyQt5[opengl,${PYTHON_USEDEP}]') - dev-qt/qtcore:5 - dev-qt/qtgui:5 - x11-libs/qwt:6[qt5(+)] - dev-qt/qtwidgets:5 - ) - sdl? ( >=media-libs/libsdl-1.2.0 ) - trellis? ( dev-python/scipy ) - uhd? ( - $(python_gen_cond_dep '>=net-wireless/uhd-3.9.6:=[${PYTHON_SINGLE_USEDEP}]') - ) - utils? ( - $(python_gen_cond_dep 'dev-python/click[${PYTHON_USEDEP}] - dev-python/click-plugins[${PYTHON_USEDEP}] - dev-python/mako[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}]') - ) - vocoder? ( - media-sound/gsm - >=media-libs/codec2-0.8.1 - ) - wavelet? ( sci-libs/gsl - dev-libs/gmp - sci-libs/lapack - ) - zeromq? ( >=net-libs/zeromq-2.1.11 ) -" - -#That's right, it can't build if gnuradio 3.7 is installed -#Both due to build failure, and then file collision due to bundled volk -DEPEND="${RDEPEND} - !<net-wireless/gnuradio-3.8 - app-text/docbook-xml-dtd:4.2 - >=dev-lang/swig-3.0.5 - virtual/pkgconfig - doc? ( - >=app-doc/doxygen-1.5.7.1 - ) - grc? ( x11-misc/xdg-utils ) - oss? ( virtual/os-headers ) - test? ( >=dev-util/cppunit-1.9.14 ) - zeromq? ( net-libs/cppzmq ) -" - -PATCHES=( - "${WORKDIR}/0002-boost_qualify_placeholders_with_their_full_namespace.patch" -) - -src_prepare() { - xdg_environment_reset #534582 - - use !alsa && sed -i 's#version.h#version-nonexistent.h#' cmake/Modules/FindALSA.cmake - use !jack && sed -i 's#jack.h#jack-nonexistent.h#' cmake/Modules/FindJACK.cmake - use !oss && sed -i 's#soundcard.h#oss-nonexistent.h#g' cmake/Modules/FindOSS.cmake - use !portaudio && sed -i 's#portaudio.h#portaudio-nonexistent.h#g' cmake/Modules/FindPORTAUDIO.cmake - - cmake_src_prepare -} - -src_configure() { - mycmakeargs=( - -DENABLE_DEFAULT=OFF - -DENABLE_VOLK=OFF - -DENABLE_INTERNAL_VOLK=OFF - -DENABLE_GNURADIO_RUNTIME=ON - -DENABLE_PYTHON=ON - -DENABLE_GR_BLOCKS=ON - -DENABLE_GR_FFT=ON - -DENABLE_GR_AUDIO=ON - -DENABLE_GR_ANALOG="$(usex analog)" - -DENABLE_GR_CHANNELS="$(usex channels)" - -DENABLE_GR_DIGITAL="$(usex digital)" - -DENABLE_DOXYGEN="$(usex doc)" - -DENABLE_GR_DTV="$(usex dtv)" - -DENABLE_GR_FEC="$(usex fec)" - -DENABLE_GR_FILTER="$(usex filter)" - -DENABLE_GRC="$(usex grc)" - -DENABLE_GR_MODTOOL="$(usex modtool)" - -DENABLE_PERFORMANCE_COUNTERS="$(usex performance-counters)" - -DENABLE_TESTING="$(usex test)" - -DENABLE_GR_TRELLIS="$(usex trellis)" - -DENABLE_GR_UHD="$(usex uhd)" - -DENABLE_GR_UTILS="$(usex utils)" - -DENABLE_GR_VOCODER="$(usex vocoder)" - -DENABLE_GR_WAVELET="$(usex wavelet)" - -DENABLE_GR_QTGUI="$(usex qt5)" - -DENABLE_GR_VIDEO_SDL="$(usex sdl)" - -DENABLE_GR_ZEROMQ="$(usex zeromq)" - -DSYSCONFDIR="${EPREFIX}"/etc - -DPYTHON_EXECUTABLE="${PYTHON}" - -DGR_PYTHON_DIR="$(python_get_sitedir)" - -DGR_PKG_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - - if use examples ; then - dodir /usr/share/doc/${PF}/ - mv "${ED}"/usr/share/${PN}/examples "${ED}"/usr/share/doc/${PF}/ || die - docompress -x /usr/share/doc/${PF}/examples - else - # It seems that the examples are always installed - rm -rf "${ED}"/usr/share/${PN}/examples || die - fi - - if use doc || use examples; then - #this doesn't appear useful - rm -rf "${ED}"/usr/share/doc/${PF}/xml || die - fi - - # Remove duplicated icons, MIME and desktop files and installation script - rm -rf "${ED}"/usr/share/${PN}/grc/freedesktop || die - rm -f "${ED}"/usr/libexec/${PN}/grc_setup_freedesktop || die - - # Install icons, menu items and mime-types for GRC - if use grc ; then - local fd_path="${S}/grc/scripts/freedesktop" - insinto /usr/share/mime/packages - doins "${fd_path}/${PN}-grc.xml" - - domenu "${fd_path}/"*.desktop - doicon "${fd_path}/"*.png - fi - - python_fix_shebang "${ED}" - # Remove incorrectly byte-compiled Python files and replace - find "${ED}"/usr/lib -name "*.py[co]" -exec rm {} \; || die - python_optimize -} - -src_test() -{ - virtx cmake_src_test -} - -pkg_postinst() -{ - if use grc ; then - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update - fi -} - -pkg_postrm() -{ - if use grc ; then - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update - fi -} diff --git a/net-wireless/gnuradio/gnuradio-3.8.2.0.ebuild b/net-wireless/gnuradio/gnuradio-3.8.2.0.ebuild index 601ceea4ed97..72ff39cee8c8 100644 --- a/net-wireless/gnuradio/gnuradio-3.8.2.0.ebuild +++ b/net-wireless/gnuradio/gnuradio-3.8.2.0.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) CMAKE_BUILD_TYPE="None" -inherit cmake python-single-r1 virtualx xdg-utils desktop +inherit cmake python-single-r1 virtualx xdg-utils DESCRIPTION="Toolkit that provides signal processing blocks to implement software radios" HOMEPAGE="https://www.gnuradio.org/" @@ -16,7 +16,6 @@ if [[ ${PV} =~ "9999" ]]; then EGIT_REPO_URI="https://github.com/gnuradio/gnuradio.git" EGIT_BRANCH="maint-3.8" inherit git-r3 - KEYWORDS="" else SRC_URI="https://github.com/gnuradio/gnuradio/releases/download/v${PV}/${P}.tar.xz" KEYWORDS="~amd64 ~arm ~x86" @@ -119,6 +118,7 @@ PATCHES=( "${FILESDIR}/gnuradio-3.8.2.0-lamda-gr-uhd.patch" "${FILESDIR}/gnuradio-3.8.2.0-lamda-most-components.patch" "${FILESDIR}/gnuradio-3.8.2.0-lamda-set-msg-handlers.patch" + "${FILESDIR}/gnuradio-3.8.2.0-3967.patch" ) src_prepare() { @@ -191,18 +191,18 @@ src_install() { rm -f "${ED}"/usr/libexec/${PN}/grc_setup_freedesktop || die # Install icons, menu items and mime-types for GRC - if use grc ; then - local fd_path="${S}/grc/scripts/freedesktop" - insinto /usr/share/mime/packages - doins "${fd_path}/${PN}-grc.xml" + #if use grc ; then + # local fd_path="${S}/grc/scripts/freedesktop" + # insinto /usr/share/mime/packages + # doins "${fd_path}/${PN}-grc.xml" - domenu "${fd_path}/"*.desktop - doicon "${fd_path}/"*.png - fi + # domenu "${fd_path}/"*.desktop + # doicon "${fd_path}/"*.png + #fi python_fix_shebang "${ED}" # Remove incorrectly byte-compiled Python files and replace - find "${ED}"/usr/lib -name "*.py[co]" -exec rm {} \; || die + find "${ED}"/usr/lib* -name "*.py[co]" -exec rm {} \; || die python_optimize } diff --git a/net-wireless/gnuradio/gnuradio-9999.ebuild b/net-wireless/gnuradio/gnuradio-9999.ebuild index 43237bbd9cc2..60b1dc524bfd 100644 --- a/net-wireless/gnuradio/gnuradio-9999.ebuild +++ b/net-wireless/gnuradio/gnuradio-9999.ebuild @@ -16,7 +16,6 @@ if [[ ${PV} =~ "9999" ]]; then EGIT_REPO_URI="https://github.com/gnuradio/gnuradio.git" EGIT_BRANCH="maint-3.8" inherit git-r3 - KEYWORDS="" else SRC_URI="https://github.com/gnuradio/gnuradio/releases/download/v${PV}/${P}.tar.xz" KEYWORDS="~amd64 ~arm ~x86" diff --git a/net-wireless/gqrx/Manifest b/net-wireless/gqrx/Manifest index 83f5bf62bbaa..cfee60d9c0b3 100644 --- a/net-wireless/gqrx/Manifest +++ b/net-wireless/gqrx/Manifest @@ -1,7 +1,5 @@ AUX gqrx-bladerf-samplerate.patch 1197 BLAKE2B 1496903e5ae8ce0cba7b0fc30a34d42afe5e76adefc4ab4566fdd5e6c7e88994843c1ba3462be5f30740e35ddbea451317e0910fc5c6fe3f4564d3afc5bff2e4 SHA512 40e02bdaa7af30ae30eb447f01b79776f792a5f30fe3e1d3317d3a40ff8dedb3f19ef13b1e8566781c07ff1086bc919723c2aed940b7fbe88dff9c124116e73f -DIST gqrx-2.12.1.tar.gz 1334839 BLAKE2B 9ad8ab710675f4b42ff652d642026aba00dad63867f836662054aaab89cc7788874cc0f47de531257ee901f3bc58a6e6d5aef3c5a4fe30ae367d24fcd87ae763 SHA512 28d3da6c4ff750cf580db658aee267162a64103e9dac1d212f70df6bc602c8d50ccb7aaf88c7e976cfa235b884e02b4994e679f69aed640485c44ed07f183cc9 -DIST gqrx-2.14.2.tar.gz 1343715 BLAKE2B 8e2e500c194aaa542ef3ffb7b355240ea77b7c583aacf5eb82b0c33d9119197341f8f14d23916482376aaa967a21cb186df67919a1708bb0371b7ce956f7e480 SHA512 4c1e31f6f246770faf6745b9e7f360f4cc74d5370f3d2fe68b4634d03ebaeec12bca27d2b25a5c96e5771dc8d9095a27c807ae7eff08762c38b55c0e90a92f6e -EBUILD gqrx-2.12.1-r1.ebuild 1490 BLAKE2B f0f5bd7edea78f4c31b25122afb2b5434c03081fcf310c508547e1a5c7065cecd9ec75a4daf8c726510ddfd9e42d7d5422151e00a19f42e6c3163cce9d52bd43 SHA512 8162527686dfd3063efa02b9437b359f76b3aebe8ae41409134b4e4697f06b099ec36387d35cdb8baac74659a7ead58eb566a42769ac55956ff44a788ed343ee -EBUILD gqrx-2.14.2.ebuild 1224 BLAKE2B 6698c8084603cac9ffa4075097ded605d8e8f505a24a1fb1f18792b4429115cbfeada988abff06d3d1566ab7dd3cad215ef1a7ed5083883eefbf0a51a13dd9d9 SHA512 95204bc851a13f35dd6dbbb00657530a135393b066396fe19df50bb5473bc6954ba60c9b47ea27b4edda88539f83d3785875a8bcf7ace661be10b4510f715bfc +DIST gqrx-2.14.3.tar.gz 1343813 BLAKE2B 19bb721a355f4b61c6a048aa5c2f1e2415ea2447fb6e6b2a0c1913d3dd0b1971523c51b5e27e0f07e671ce90e15996de8d22f54fdeb9873f08229cce50c5f9ab SHA512 436080f18a560a817921e451c2d5784b48b0e2e59ae1485578fe8d2afac9ad052b899fc0e3bb84976519ebaf2e061df31e6215d8957a5d06cc2e8431b9b55bef +EBUILD gqrx-2.14.3.ebuild 1224 BLAKE2B 6698c8084603cac9ffa4075097ded605d8e8f505a24a1fb1f18792b4429115cbfeada988abff06d3d1566ab7dd3cad215ef1a7ed5083883eefbf0a51a13dd9d9 SHA512 95204bc851a13f35dd6dbbb00657530a135393b066396fe19df50bb5473bc6954ba60c9b47ea27b4edda88539f83d3785875a8bcf7ace661be10b4510f715bfc EBUILD gqrx-9999.ebuild 1490 BLAKE2B f0f5bd7edea78f4c31b25122afb2b5434c03081fcf310c508547e1a5c7065cecd9ec75a4daf8c726510ddfd9e42d7d5422151e00a19f42e6c3163cce9d52bd43 SHA512 8162527686dfd3063efa02b9437b359f76b3aebe8ae41409134b4e4697f06b099ec36387d35cdb8baac74659a7ead58eb566a42769ac55956ff44a788ed343ee MISC metadata.xml 523 BLAKE2B e40faae08e17b5c9c887870f51a9ea731c60037fa023d85ef386483108047c05b7a1cca299d1d9f92e8933957949b818d5c58c784d0032bb62031348f396dfe7 SHA512 26a1e52770090a69982939ebff1ec4ee26f7c637abf2748c5de5997087e17c0624871e311b17b1b5857ba9ac0bdc8113fd71e13975404462cc84946535adecd8 diff --git a/net-wireless/gqrx/gqrx-2.12.1-r1.ebuild b/net-wireless/gqrx/gqrx-2.12.1-r1.ebuild deleted file mode 100644 index a008cc56721e..000000000000 --- a/net-wireless/gqrx/gqrx-2.12.1-r1.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Software defined radio receiver powered by GNU Radio and Qt" -HOMEPAGE="https://gqrx.dk/" - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/csete/gqrx.git" - inherit git-r3 -else - SRC_URI="https://github.com/csete/gqrx/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~x86" -fi - -LICENSE="GPL-3" -SLOT="0" -IUSE="gr-audio portaudio pulseaudio" -REQUIRED_USE="^^ ( pulseaudio portaudio gr-audio )" - -DEPEND=">=net-wireless/gnuradio-3.7_rc:=[audio,analog,filter] - >=net-wireless/gr-osmosdr-0.1.0:= - dev-libs/boost:= - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtnetwork:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 - sci-libs/volk - pulseaudio? ( media-sound/pulseaudio:= ) - portaudio? ( media-libs/portaudio:= )" -RDEPEND="${DEPEND}" - -src_prepare() { - if use !pulseaudio; then - sed -i 's/AUDIO_BACKEND = pulse/#AUDIO_BACKEND = pulse/' gqrx.pro || die - fi - if use portaudio; then - sed -i 's#find_package(Portaudio#find_package(PORTAUDIO#' CMakeLists.txt || die - fi - cmake_src_prepare - eapply_user -} - -src_configure() { - if use pulseaudio; then - LINUX_AUDIO_BACKEND=Pulseaudio - elif use portaudio; then - LINUX_AUDIO_BACKEND=Portaudio - elif use gr-audio; then - LINUX_AUDIO_BACKEND=Gr-audio - fi - - local mycmakeargs=( - "-DLINUX_AUDIO_BACKEND=${LINUX_AUDIO_BACKEND}" - ) - cmake_src_configure -} - -src_install() { - dobin "${BUILD_DIR}"/src/gqrx -} diff --git a/net-wireless/gqrx/gqrx-2.14.2.ebuild b/net-wireless/gqrx/gqrx-2.14.3.ebuild index 9556937d851a..9556937d851a 100644 --- a/net-wireless/gqrx/gqrx-2.14.2.ebuild +++ b/net-wireless/gqrx/gqrx-2.14.3.ebuild diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest index 4ecf6c8e1d38..a574a668c151 100644 --- a/net-wireless/unifi/Manifest +++ b/net-wireless/unifi/Manifest @@ -5,11 +5,13 @@ AUX unifi.service 435 BLAKE2B d982d8ae1f4bf2fa6affc149e0edf94e8471283b0353b370d9 DIST unifi-5.6.42.zip 63581448 BLAKE2B dc12149acc56587043b9f6c45a43327a9a067dda86127c60ad62a4681a0c8ba873435b60183989332f561fb52f71c7207480766ec23d9c0e892cc20c521a9819 SHA512 467c0ad284a84795537484f371867d851e67c7e396215d539a9705f17f374b50db4051121a6634d1944474a2474bdd75fca860ab00b48634a5d3e8749a122989 DIST unifi-6.0.41.zip 216846940 BLAKE2B 14aaabc6c33fc312ca26cae03eec7bc1a80c26d381735223753eb073baa4141e1791651e724fa6a75d16274abc2299b791d08f1032256ddfd2c6518fc2b3d30f SHA512 9264a322bf78efa38f009e81a7e7fd37534600d859a46221bc8237db159049510279c939fb2294907a94e59c841989b890693fdc800cde05d9f4e7cd6c50c7ab DIST unifi-6.0.42.zip 151690952 BLAKE2B 9f67f1dbb7b85f6bf92414a3d424600d610dc4ae926766e8b71dc5ceabdc1d33bccec3cbec839483aca40b2360c6dd8b31eb3de7dd20077c3d751c01b137cfcb SHA512 548f2d280065259270484e2530d800f829869eb5802939a2f13ba08ae99017f0a2dc5152e1b2f85d940a032326d4cb7d3a1a58649dc96428bea04156c26eab88 +DIST unifi-6.0.43.zip 136844666 BLAKE2B fb330f9ba8c2d22dacd5e37fbeccc411101e388525cdf7ae76fd2ade629c8230d10a5098d01453fcd9e091d581961b556c7f86d1625baff735fa76a2896b2d94 SHA512 16cfec8f12aa31c146ebd38b946a51730f7ca600f36f16058e06ec20d6d3597a34fa8fa8efef1bad1980b73a15c13d5c6458f03d08cee6eda5cedf62ef17a6b8 DIST unifi-6.1.25.zip 235499342 BLAKE2B 77de866d2c04136b32e06698f3c20563dc68cf1bf5d260a23cad46ee208c5d4012d788c67dc3324578d2c944e8eceecf6b5473f4d77304e10ee15a3b14286fc7 SHA512 0eb916f06546a5b33da664ada77391a69d21c9ec4545244a1a6f55ceeb7546fe77a07a121df03ba606e98ddbd23429207f86bb5b2c24ddfb3174eb2d00c5daaf DIST unifi-6.1.26.zip 243498936 BLAKE2B 72a17f02279ecedd8f876df85167824a03abebb2816e68fcbfff11923b00c1e0b80b7357e48a4e044f0835e3e0054bd0ab034bd8fb3d67289bf61b4804ce9a87 SHA512 9ea5a7307ad507f08e4d39805bdf776eaa50895513e4c086d94527e28ae93b1f97e3d1b23ff314ed03ea560638b8cb44fc16bf4ff8f7746035e8b5de9b31321b EBUILD unifi-5.6.42-r1.ebuild 1667 BLAKE2B daea907c2b41f461f707411f8a68dba6cc9ec8dcd7577641d7554539fd5f191eb2684478fd9801bcbaec855e83b765ab4a429cc3bf876e7a42176fdac1eb26ff SHA512 a7001e6fb490e6ad20ea00a080bb76877c85741dd2142f54041afd71d2822684836ed8803bd74b6a8821da7b7e85e0cfb6d10b5294838ae49f08326b6e1141f7 EBUILD unifi-6.0.41.ebuild 1565 BLAKE2B f2c97c8425ddbf3d8e6be92076993feb7da2c1c60802f0ef544c05be197dedec07cf2593e5d998464aeaf299ea13283524570dd1e3ff59c4bc285603e2406b16 SHA512 c9811f60745c408409638b4d334eb91da016a83e77f1b0ab417b7c6da4f0ade8b8883d263e501ef0b32f375ceacf7d4e05b0c515c965adbfdc41c3d47962aa2c EBUILD unifi-6.0.42.ebuild 1566 BLAKE2B ffd3e28a82be97ee19bc0b1e9b233043e188efe974ac66d07da76d6e8404d4d81dcde9f697f0b78e31f9ea1e1e01143bb3d389c59cae75fb8da7b3fe42a7818d SHA512 ca96322294cc453a364d736be4ea5159232612eabf98f16a8486a52a14dab1fb1549ea7601aaca13d1940a1e0d509aed89c29bcdfe9258b5428a3294d88f2109 +EBUILD unifi-6.0.43.ebuild 1566 BLAKE2B 928c0575362660c2e20de6dd7647bbc60d65f70a1b512328ac5926983b23cd11b408db51fcf2d0546b67c0eff38e36600e26ee8175bf050e705d84ef15497a76 SHA512 73bfe70d67d64fcb4d86a46fb3e20c03b2f5a35df13986f17b764cb7cbb9739a13c87a95c62389c087f718ea8dd8986c4f95c1841c2466d9d13905e6e17b739a EBUILD unifi-6.1.25.ebuild 1566 BLAKE2B e59fb68b8f475fe749a31cf89adcc03d52a9de40348f4f62a84a761afa8a883c787f6f4b8254da00ba712fa3adcfb76e901f94525b294b364f47ccfa31ead4f2 SHA512 d1563a980e956e414e414ec1ff544c7a952bbe9bfb8e433be52ea81cf45124ddc75f10d67973b1a940bff593aa0c43b3149215a2b8bc2d1bed5709bc7ee9d497 EBUILD unifi-6.1.26.ebuild 1566 BLAKE2B 1e7c0b6b4dffc76041f23daa3d6523a7e4b088f4cf3be529bf1acc7bf48c94049d51e351c425bf6a488bb253708bcb62983c2918364ac8f0792231e67c486023 SHA512 f1b22181098927c83c0cefd7359c112ea38f1b4c096edbb4eaee97cbc0ef56261292ddc19e5208319bdfa85908d5203dfaf91f4dc9b893052fc6047f6ff73a9a MISC metadata.xml 683 BLAKE2B 830f1b290d1836708aebdb1200caed6120df7ca573173584cfac59ec7eb3e8e38be65e237535d722f215ebb69b8739cf900fb79cddb78e60a09d1cbb1ff222f9 SHA512 da328bd64dea83da1f7f2bfe3431701597cc6a9829b0e0a5ec82bb4167f2f57b144b9d9c77656da33dc9b59e0d53ac89e18be6f776ac4356151d331f020c4ae0 diff --git a/net-wireless/unifi/unifi-6.0.43.ebuild b/net-wireless/unifi/unifi-6.0.43.ebuild new file mode 100644 index 000000000000..398ae438bf38 --- /dev/null +++ b/net-wireless/unifi/unifi-6.0.43.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# Set this var for any releases except stable +RC_SUFFIX="-a8e04a273f" + +inherit systemd + +DESCRIPTION="A Management Controller for Ubiquiti Networks UniFi APs" +HOMEPAGE="https://www.ubnt.com" +SRC_URI="https://dl.ui.com/unifi/${PV}${RC_SUFFIX}/UniFi.unix.zip -> ${P}.zip" + +KEYWORDS="~amd64" +LICENSE="Apache-1.0 Apache-2.0 BSD-1 BSD-2 BSD CDDL EPL-1.0 GPL-2 LGPL-2.1 LGPL-3 MIT ubiquiti" +SLOT="0/6.0" +IUSE="systemd" + +RDEPEND=" + acct-group/unifi + acct-user/unifi + dev-db/mongodb + virtual/jre:1.8 +" + +DEPEND="app-arch/unzip" + +RESTRICT="bindist mirror" + +S="${WORKDIR}/UniFi" + +DOCS=( "readme.txt" ) + +QA_PREBUILT="usr/lib/unifi/lib/native/Linux/x86_64/*.so" + +src_prepare() { + # Remove unneeded files Linux, Mac and Windows + rm -r lib/native/Linux/{aarch64,armv7} lib/native/{Mac,Windows} || die + if ! use systemd; then + rm lib/native/Linux/x86_64/libubnt_sdnotify_jni.so || die + fi + + default +} + +src_install() { + insinto /usr/lib/unifi + doins -r bin dl lib webapps + + diropts -o unifi -g unifi + keepdir /var/lib/unifi/{conf,data,run,tmp,work} /var/log/unifi + + for symlink in conf data run tmp work; do + dosym ../../../var/lib/unifi/${symlink} /usr/lib/unifi/${symlink} + done + dosym ../../../var/log/unifi /usr/lib/unifi/logs + + newinitd "${FILESDIR}"/unifi.initd-r1 unifi + systemd_dounit "${FILESDIR}"/unifi.service + + newconfd "${FILESDIR}"/unifi.confd unifi + + echo 'CONFIG_PROTECT="/var/lib/unifi"' > "${T}"/99unifi || die + doenvd "${T}"/99unifi + + einstalldocs +} |