1 |
commit: 9f5047cb3b2081c4122897eb999f394a769a3695 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 12 13:14:43 2020 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 12 13:15:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f5047cb |
7 |
|
8 |
net-wireless/unifi: bump to 5.12.72 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
net-wireless/unifi/Manifest | 1 + |
14 |
net-wireless/unifi/unifi-5.12.72.ebuild | 73 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 74 insertions(+) |
16 |
|
17 |
diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest |
18 |
index e32f734eb86..32bb9ae660b 100644 |
19 |
--- a/net-wireless/unifi/Manifest |
20 |
+++ b/net-wireless/unifi/Manifest |
21 |
@@ -1,5 +1,6 @@ |
22 |
DIST unifi-5.12.35.zip 114691419 BLAKE2B 0400f78cbc880f52e8e352a1b8ef925c293b5a51137aaba89c4e26f7b213661e2b9e5caf09cfc6af0f74456e1217f4e2b8f398c11ebe32b1b6a17153cef9e920 SHA512 4e6b3726e5b6e43c1688fbdefe816eedb1cefc671bc9f861cc06f1c4f52a903670e033c2c5b2c66c5ed2c3f42e8f573e6245fe483a32a0df33283d46ccb5d96a |
23 |
DIST unifi-5.12.66.zip 117434749 BLAKE2B 6d48632b7add5f3943574decb66aeb209c570151ee4f1c4dca10feeff924ba1946bc7bd1aae8ce36ac0a20ce2765da9953ded073086a82fd59ed08a57e30965d SHA512 138882bd7a67900ff47e5b02644a7e1941aef98d49ee6e56fa41b462ffd2e92e073e8064bfd846f2c369ef3491b3adc3032dd2ca9b8980058ca88d1925367ca0 |
24 |
+DIST unifi-5.12.72.zip 117402382 BLAKE2B a847982972aecfc344b3054ac8364270f8de38452e818a9a575266550292fbc9fe5554937191cdfb208002a412e3fd7956a85ae9edc12fed65461a95ee801915 SHA512 a3764d4a3b39a16bc08c3206a8ceb37614d9bbd356e2e56f18eb33cc42de5c9cf21ed2a99689d0e5b794356163a0159911916513eed154b6c8ad0aee9db0e01b |
25 |
DIST unifi-5.13.18.zip 150552474 BLAKE2B caec9f360b2db5d7e155ef29c7a6d5851a0c7de8a476a018b33a5423f0052fb46a55deadf74dba2d51763d4a675ea7b6ba2d9195087b9be7a9280ffe5c8b5c27 SHA512 deb08448d48a49be920f8e300117fe4326f8d1bb58117e5fbaddc6db268d514ebce85b605ec26248259e2be51b01605045c56e3f84bd7249bee25a08b4784535 |
26 |
DIST unifi-5.13.22.zip 150546130 BLAKE2B db82f7b95fe3dbda2f19d1361cccd25670325babc61c3d55b4d4e716b0fd2a5cb22e0ac45367b0a5fa975fdef35bfa050bf951bac6c5ce83ae8cf9aa205d5026 SHA512 9a0f5c85d2b4fbdc1f518da95bc5554473cb30e71e1c774e31a82d1579f973667945a3338746288ca98b95c02f3e73450a96295203e62f0e33ae57a7c6ef5d39 |
27 |
DIST unifi-5.6.42.zip 63581448 BLAKE2B dc12149acc56587043b9f6c45a43327a9a067dda86127c60ad62a4681a0c8ba873435b60183989332f561fb52f71c7207480766ec23d9c0e892cc20c521a9819 SHA512 467c0ad284a84795537484f371867d851e67c7e396215d539a9705f17f374b50db4051121a6634d1944474a2474bdd75fca860ab00b48634a5d3e8749a122989 |
28 |
|
29 |
diff --git a/net-wireless/unifi/unifi-5.12.72.ebuild b/net-wireless/unifi/unifi-5.12.72.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..338c9edad13 |
32 |
--- /dev/null |
33 |
+++ b/net-wireless/unifi/unifi-5.12.72.ebuild |
34 |
@@ -0,0 +1,73 @@ |
35 |
+# Copyright 1999-2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+# Set this var for any releases except stable |
41 |
+RC_SUFFIX="-0bbca4291e" |
42 |
+ |
43 |
+inherit systemd |
44 |
+ |
45 |
+DESCRIPTION="A Management Controller for Ubiquiti Networks UniFi APs" |
46 |
+HOMEPAGE="https://www.ubnt.com" |
47 |
+SRC_URI="https://dl.ui.com/unifi/${PV}${RC_SUFFIX}/UniFi.unix.zip -> ${P}.zip" |
48 |
+ |
49 |
+KEYWORDS="~amd64" |
50 |
+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" |
51 |
+SLOT="0/5.12" |
52 |
+IUSE="systemd" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ acct-group/unifi |
56 |
+ acct-user/unifi |
57 |
+ dev-db/mongodb |
58 |
+ virtual/jre:1.8 |
59 |
+" |
60 |
+ |
61 |
+DEPEND="app-arch/unzip" |
62 |
+ |
63 |
+RESTRICT="bindist mirror" |
64 |
+ |
65 |
+S="${WORKDIR}/UniFi" |
66 |
+ |
67 |
+DOCS=( "readme.txt" ) |
68 |
+ |
69 |
+QA_PREBUILT="usr/lib/unifi/lib/native/Linux/x86_64/*.so" |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ # Remove unneeded files Linux, Mac and Windows |
73 |
+ rm -r lib/native/Linux/{aarch64,armv7} lib/native/{Mac,Windows} || die |
74 |
+ if ! use systemd; then |
75 |
+ rm lib/native/Linux/x86_64/libubnt_sdnotify_jni.so || die |
76 |
+ fi |
77 |
+ |
78 |
+ default |
79 |
+} |
80 |
+ |
81 |
+src_install() { |
82 |
+ # Install MongoDB wrapper script, to avoid problems with >= 3.6.0 |
83 |
+ # See https://community.ubnt.com/t5/UniFi-Routing-Switching/MongoDB-3-6/td-p/2195435 |
84 |
+ exeinto /usr/lib/unifi/bin |
85 |
+ newexe "${FILESDIR}"/mongod-wrapper mongod |
86 |
+ |
87 |
+ insinto /usr/lib/unifi |
88 |
+ doins -r dl lib webapps |
89 |
+ |
90 |
+ diropts -o unifi -g unifi |
91 |
+ keepdir /var/lib/unifi/{conf,data,run,tmp,work} /var/log/unifi |
92 |
+ |
93 |
+ for symlink in conf data run tmp work; do |
94 |
+ dosym ../../../var/lib/unifi/${symlink} /usr/lib/unifi/${symlink} |
95 |
+ done |
96 |
+ dosym ../../../var/log/unifi /usr/lib/unifi/logs |
97 |
+ |
98 |
+ newinitd "${FILESDIR}"/unifi.initd-r1 unifi |
99 |
+ systemd_dounit "${FILESDIR}"/unifi.service |
100 |
+ |
101 |
+ newconfd "${FILESDIR}"/unifi.confd unifi |
102 |
+ |
103 |
+ echo 'CONFIG_PROTECT="/var/lib/unifi"' > "${T}"/99unifi || die |
104 |
+ doenvd "${T}"/99unifi |
105 |
+ |
106 |
+ einstalldocs |
107 |
+} |