commit:     42c0110f7d7dbd501a0c662e698a2f90749fb071
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Thu May 28 11:19:53 2020 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu May 28 11:20:05 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42c0110f

net-wireless/unifi: bump to 5.14.9

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

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

diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest
index 32000800307..0fe662b664b 100644
--- a/net-wireless/unifi/Manifest
+++ b/net-wireless/unifi/Manifest
@@ -2,4 +2,5 @@ DIST unifi-5.12.72.zip 117402382 BLAKE2B 
a847982972aecfc344b3054ac8364270f8de384
 DIST unifi-5.13.27.zip 151010113 BLAKE2B 
a90162346fc09471600226c0f2c0d01b0f759e4683a8ee3fad32af1567bd76f6d26afe33a8f414df8a507781eff9b1b1bcbd4f26e079e8b7302d2f24151255e8
 SHA512 
c117be2b4a22cb47506d491129d4852578c6b152b172203e89f0f91a8ff6223ce32ea6bdcb26c34059be82d3c50c4f51328c1df56149cb1516fa0923490b3ef9
 DIST unifi-5.13.29.zip 151004470 BLAKE2B 
0980c012bddbbeb5d18d26ebc8427137e410577e22a9c49b799f0e8fa39343191bc361b9345919917e53ded5ff0af2b35fd71e48072a09d5533a5e89feb9a20c
 SHA512 
01b9811e288e377aff727416b32d966af5cc7a45e0f03f08f8892c89ad40a1833f4150bc42d8732468fcd2242c790bcd62b343132149a868c0d95f38b9f17dda
 DIST unifi-5.14.7.zip 151237089 BLAKE2B 
0c00e282d5f2a3ca9077bd4455d21b28d63548be50ff3170cfde84620a9f482bf84f48047162cc9ecca247046ed49f6a3e0e77eedc5d472cc277cf85639d966e
 SHA512 
802b9338b333892e5f84a583f93eca29d9e421a5ab301f2f5e9bff9f61a5e8a0489dfb5a67320ccfcc923c9adac259ee4d7fe6153bc95aa18b613aeed02e6b45
+DIST unifi-5.14.9.zip 151232553 BLAKE2B 
f30576c61f9fe0f971dee302a7475bc60f02889e300ebf8345b47a341e7da3b872558880c8d207f3f2f0f29c22ed84bb7502e9ff82ca0bee815b1adc39eceb71
 SHA512 
deeb936957129cb213af6ac82790ed338581f29d16fe902e15f478c538c22d65111c1ef8de14c392b8af3303b74ccc26f50452391f1e3f7f919dd52153e5ae83
 DIST unifi-5.6.42.zip 63581448 BLAKE2B 
dc12149acc56587043b9f6c45a43327a9a067dda86127c60ad62a4681a0c8ba873435b60183989332f561fb52f71c7207480766ec23d9c0e892cc20c521a9819
 SHA512 
467c0ad284a84795537484f371867d851e67c7e396215d539a9705f17f374b50db4051121a6634d1944474a2474bdd75fca860ab00b48634a5d3e8749a122989

diff --git a/net-wireless/unifi/unifi-5.14.9.ebuild 
b/net-wireless/unifi/unifi-5.14.9.ebuild
new file mode 100644
index 00000000000..499ee48fbd6
--- /dev/null
+++ b/net-wireless/unifi/unifi-5.14.9.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Set this var for any releases except stable
+RC_SUFFIX="-393d589aeb"
+
+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/5.14"
+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