commit:     5011a358e719f22dfc0779bc298723aa880ded98
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Tue May 19 19:32:42 2020 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Wed May 20 11:23:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5011a358

net-wireless/unifi: bump to 5.14.7

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

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

diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest
index 9aa627c218b..7781e1e9456 100644
--- a/net-wireless/unifi/Manifest
+++ b/net-wireless/unifi/Manifest
@@ -1,4 +1,5 @@
 DIST unifi-5.12.72.zip 117402382 BLAKE2B 
a847982972aecfc344b3054ac8364270f8de38452e818a9a575266550292fbc9fe5554937191cdfb208002a412e3fd7956a85ae9edc12fed65461a95ee801915
 SHA512 
a3764d4a3b39a16bc08c3206a8ceb37614d9bbd356e2e56f18eb33cc42de5c9cf21ed2a99689d0e5b794356163a0159911916513eed154b6c8ad0aee9db0e01b
 DIST unifi-5.13.26.zip 150661380 BLAKE2B 
0b8fad507039f5055f1a8026218c5888ee7371e357532c0a5fd5f1d779c800d9e5c85e82b8a254dba270b23f49b0c9dd766fa4bc6630087bca146568135286e3
 SHA512 
8e886a8dd2a858c22eca35922d81e54e45285faed7fd5885ac57cad0b2a68af33547d0231fbb4cb78fdec732a6a9f11a2ff3856b78eeabcfb3aded5ec47b6e65
 DIST unifi-5.13.27.zip 151010113 BLAKE2B 
a90162346fc09471600226c0f2c0d01b0f759e4683a8ee3fad32af1567bd76f6d26afe33a8f414df8a507781eff9b1b1bcbd4f26e079e8b7302d2f24151255e8
 SHA512 
c117be2b4a22cb47506d491129d4852578c6b152b172203e89f0f91a8ff6223ce32ea6bdcb26c34059be82d3c50c4f51328c1df56149cb1516fa0923490b3ef9
+DIST unifi-5.14.7.zip 151237089 BLAKE2B 
0c00e282d5f2a3ca9077bd4455d21b28d63548be50ff3170cfde84620a9f482bf84f48047162cc9ecca247046ed49f6a3e0e77eedc5d472cc277cf85639d966e
 SHA512 
802b9338b333892e5f84a583f93eca29d9e421a5ab301f2f5e9bff9f61a5e8a0489dfb5a67320ccfcc923c9adac259ee4d7fe6153bc95aa18b613aeed02e6b45
 DIST unifi-5.6.42.zip 63581448 BLAKE2B 
dc12149acc56587043b9f6c45a43327a9a067dda86127c60ad62a4681a0c8ba873435b60183989332f561fb52f71c7207480766ec23d9c0e892cc20c521a9819
 SHA512 
467c0ad284a84795537484f371867d851e67c7e396215d539a9705f17f374b50db4051121a6634d1944474a2474bdd75fca860ab00b48634a5d3e8749a122989

diff --git a/net-wireless/unifi/unifi-5.14.7.ebuild 
b/net-wireless/unifi/unifi-5.14.7.ebuild
new file mode 100644
index 00000000000..12abf037f27
--- /dev/null
+++ b/net-wireless/unifi/unifi-5.14.7.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="-ad58f9eb49"
+
+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