summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2021-12-10 10:22:00 -0600
committerBen Kohler <bkohler@gentoo.org>2021-12-10 10:22:45 -0600
commiteb016bb1d96f1c342de5aeaef2bf488c13c54c54 (patch)
tree423219c06fa4b2a145bb5a41d2e719d712237da4 /net-wireless
parentsys-cluster/ploop: drop 1.14.1 (diff)
downloadgentoo-eb016bb1d96f1c342de5aeaef2bf488c13c54c54.tar.gz
gentoo-eb016bb1d96f1c342de5aeaef2bf488c13c54c54.tar.bz2
gentoo-eb016bb1d96f1c342de5aeaef2bf488c13c54c54.zip
net-wireless/unifi: bump to 6.5.54
Contains fix for CVE-2021-44228 Package-Manager: Portage-3.0.29, Repoman-3.0.3 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/unifi/Manifest1
-rw-r--r--net-wireless/unifi/unifi-6.5.54.ebuild91
2 files changed, 92 insertions, 0 deletions
diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest
index ca407c7fdbaf..8fc4029b89f3 100644
--- a/net-wireless/unifi/Manifest
+++ b/net-wireless/unifi/Manifest
@@ -1,3 +1,4 @@
DIST unifi-6.4.54.zip 158992649 BLAKE2B 90f98b1349a5fca3e6d85ef42823c5beaff0a3ac4697622a0387259421fdcfa891b094acb66f798a97b4397a27d477d6fe10d53bed03e15081f4d63abafb9d8e SHA512 d0502f87fe6827cdfabbffce7c7b0159aaad2ac032b59d04d5f233ada279fb90d5e21e043de518260c3380c7e23ff561f04040433a441866421dbe9b2db540c0
DIST unifi-6.5.51.zip 157715310 BLAKE2B bd5b05b291a9b050ca4bc118f2336a2416f5224fd07fe8712a58842abfb04fcbe2b33beab30ba7ba9af14c853983068878e1927236a196d0597d7919e420cafa SHA512 858ca72a17a221cf4c01b032bab590c6d30c8a9dd02197dc9ebb8b30335e58c53296be7c4fc22e2e218cc7fed0ba5080eeb603e245b4821c34623593511bb4be
DIST unifi-6.5.53.zip 157731104 BLAKE2B d23f9b5a96b8f6e7e72ac71d9bc1e2fb0d552beef0f1009d6c21237fc6b28dbd90c728d4cd188d10e2f5ecda7b608991393d2a055b23c67be5c4072f3288b28d SHA512 b0abfd12719335a542affa06958489af241054277092a72d7f6bb22f14fd2169b4c4a4cfef0f1c9cd80fe7203d733f5bc25ea753253cec5f6f29042eed1cb44e
+DIST unifi-6.5.54.zip 157798500 BLAKE2B c49d8f6d1c33605fc29304d30895c6ddd19b8862a89fe792eb384964a40f836b623c99cc0f71525752f285f05753eda778cdec97bc9c0ef8962bb96b24984601 SHA512 dffafad544f40b0ac921d7be2223640ff9ec93f5b3e913a3028e393aa669a936f7789e58d5018d3452e902712090f00f97574e8c37aa384d509638415a9ed8b0
diff --git a/net-wireless/unifi/unifi-6.5.54.ebuild b/net-wireless/unifi/unifi-6.5.54.ebuild
new file mode 100644
index 000000000000..211e39d66e11
--- /dev/null
+++ b/net-wireless/unifi/unifi-6.5.54.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2021 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="-3b5d40203c"
+
+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 ~arm64"
+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/$(ver_cut 1-2)"
+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 Mac and Windows
+ rm -r lib/native/{Mac,Windows} || die
+
+ if [[ ${CHOST} != aarch64* ]]; then
+ rm -r lib/native/Linux/aarch64 || die "Failed in removing aarch64 native libraries"
+ fi
+ if [[ ${CHOST} != armv7* ]]; then
+ rm -r lib/native/Linux/armv7 || die "Failed in removing armv7 native libraries"
+ fi
+ if [[ ${CHOST} != x86_64* ]]; then
+ rm -r lib/native/Linux/x86_64 || die "Failed in removing x86_64 native libraries"
+ fi
+
+ if [[ ${CHOST} == aarch64* ]]; then
+ if ! use systemd; then
+ rm lib/native/Linux/aarch64/libubnt_sdnotify_jni.so || die
+ fi
+ fi
+ if [[ ${CHOST} == armv7* ]]; then
+ if ! use systemd; then
+ rm lib/native/Linux/armv7/libubnt_sdnotify_jni.so || die
+ fi
+ fi
+ if [[ ${CHOST} == x86_64* ]]; then
+ if ! use systemd; then
+ rm lib/native/Linux/x86_64/libubnt_sdnotify_jni.so || die
+ fi
+ 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
+}