commit:     104e73f4c3c88cf443daf6f5b2d16b168e88453c
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  9 13:01:11 2021 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Mon Aug  9 13:21:46 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=104e73f4

net-wireless/unifi: bump to 6.4.47

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 net-wireless/unifi/Manifest            |  1 +
 net-wireless/unifi/unifi-6.4.47.ebuild | 68 ++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest
index 3762f7c0e90..7ffccb43d60 100644
--- a/net-wireless/unifi/Manifest
+++ b/net-wireless/unifi/Manifest
@@ -1,2 +1,3 @@
 DIST unifi-6.2.26.zip 152767218 BLAKE2B 
8351b9c0b2088006560ca3896df0b05d78cb9ca669ad32b1d1a73ef22f4329618b44585bff9a26a841b3d28997bc345708df9820149de91b3fc1df99693c3a74
 SHA512 
fccffca9bcb31a1da2c389e83ea9a48e4cde6d958368d4d623d459bae095b57a4d7946086b0ac0e4dff5c4c565961ed2c11f7bc2dfbf8b5c6d590fb32af351e8
 DIST unifi-6.3.51.zip 158093467 BLAKE2B 
d2d2f87edff6b4a1d6e9fffd49e45c062f0e8cc8e8cba82229cecb8fbea847ed92d08ad8362763dd1476f2ba625d3ab3d9e392eca3f87cf2cce4573867985b8d
 SHA512 
87dd0bfddba6716dd3a42f75b17e71253d33864b32b473083b8302f9deeb22f67b310366c0a768d9a2d8648038386bb3df926c333fd6bdd200b90740dd6c7b08
+DIST unifi-6.4.47.zip 159107424 BLAKE2B 
60edb5b7454abaad94929eb25ace1216bf650f9bd0d089e8259c9e5233b6eae74a6068787a951f7fd424c1c99fc385299ccf0b237b106bac91fd0f308b57a41c
 SHA512 
a0ded5114ffdd69814d2d535e11d6a332de37c00f726858b08ba2764d973c8898d9a621d595c7bce62036afebe0364a1d9ff4cb348cf39fe5fad9f2d6b1a495f

diff --git a/net-wireless/unifi/unifi-6.4.47.ebuild 
b/net-wireless/unifi/unifi-6.4.47.ebuild
new file mode 100644
index 00000000000..599f728622a
--- /dev/null
+++ b/net-wireless/unifi/unifi-6.4.47.ebuild
@@ -0,0 +1,68 @@
+# 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="-8c13da2a29"
+
+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/$(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 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
+}

Reply via email to