1 |
commit: 51d5f5220e2ae12620a6cd6a56b69830f7b63b81 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 5 11:27:30 2021 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 5 11:28:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51d5f522 |
7 |
|
8 |
net-wireless/unifi: bump to 6.5.45 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
net-wireless/unifi/Manifest | 1 + |
14 |
net-wireless/unifi/unifi-6.5.45.ebuild | 68 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 69 insertions(+) |
16 |
|
17 |
diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest |
18 |
index dcacdcc3429..912c4ea11bf 100644 |
19 |
--- a/net-wireless/unifi/Manifest |
20 |
+++ b/net-wireless/unifi/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST unifi-6.2.26.zip 152767218 BLAKE2B 8351b9c0b2088006560ca3896df0b05d78cb9ca6 |
22 |
DIST unifi-6.4.52.zip 158970954 BLAKE2B bda454073e2a75e4f1789431a7e6e1c6585b5cd1eab04a6ff79d4487a276924e66dc5a048d0c2f729690e414191b71aaff846943adb84a9a7f409f66bb498b8f SHA512 169ae984b41325a4685eb21384b9f6e0035b74c4d02e53b357086e466584b2b2d3f98db5d431de4492c2917b60f5b51c0ad9dab248d4f42b07271349de9a2442 |
23 |
DIST unifi-6.4.54.zip 158992649 BLAKE2B 90f98b1349a5fca3e6d85ef42823c5beaff0a3ac4697622a0387259421fdcfa891b094acb66f798a97b4397a27d477d6fe10d53bed03e15081f4d63abafb9d8e SHA512 d0502f87fe6827cdfabbffce7c7b0159aaad2ac032b59d04d5f233ada279fb90d5e21e043de518260c3380c7e23ff561f04040433a441866421dbe9b2db540c0 |
24 |
DIST unifi-6.5.42.zip 161190627 BLAKE2B 9eca9169167ce09b27925e02d0ae9a7e96748be7821a920ca438c1ae76ddb7d45547c97b0066a22e66accbfd59a2a40e981ef772a4266c53c4630d1e36ca50dd SHA512 bbbdc046eb1a1e59c0d030c048fba268e1673053de9d8efed1c085a71b376ec2fc0840d08e6f226648629b1370fe9ea7bab147a7584e3fb32fc44d10bf791b86 |
25 |
+DIST unifi-6.5.45.zip 158061910 BLAKE2B 16b24ae67c9c649c5b7b008afa3b503dd5492e6da45107ac1be81707940623e20d111a350c32dae45a11a5a53de041b8e6b60f246af509b00bf933e36a1e9002 SHA512 ab408506055cbdca5e3f2bb7ca8bfbd4106e57621f8d741b789dba983dcd65f126435d40a5995e453ebfabaa32c3d493940bc5115c344d9f29c8ae10f265b850 |
26 |
|
27 |
diff --git a/net-wireless/unifi/unifi-6.5.45.ebuild b/net-wireless/unifi/unifi-6.5.45.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..bef829df5c5 |
30 |
--- /dev/null |
31 |
+++ b/net-wireless/unifi/unifi-6.5.45.ebuild |
32 |
@@ -0,0 +1,68 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+# Set this var for any releases except stable |
39 |
+RC_SUFFIX="-c8122c1151" |
40 |
+ |
41 |
+inherit systemd |
42 |
+ |
43 |
+DESCRIPTION="A Management Controller for Ubiquiti Networks UniFi APs" |
44 |
+HOMEPAGE="https://www.ubnt.com" |
45 |
+SRC_URI="https://dl.ui.com/unifi/${PV}${RC_SUFFIX}/UniFi.unix.zip -> ${P}.zip" |
46 |
+ |
47 |
+KEYWORDS="~amd64" |
48 |
+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" |
49 |
+SLOT="0/$(ver_cut 1-2)" |
50 |
+IUSE="systemd" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ acct-group/unifi |
54 |
+ acct-user/unifi |
55 |
+ dev-db/mongodb |
56 |
+ virtual/jre:1.8 |
57 |
+" |
58 |
+ |
59 |
+DEPEND="app-arch/unzip" |
60 |
+ |
61 |
+RESTRICT="bindist mirror" |
62 |
+ |
63 |
+S="${WORKDIR}/UniFi" |
64 |
+ |
65 |
+DOCS=( "readme.txt" ) |
66 |
+ |
67 |
+QA_PREBUILT="usr/lib/unifi/lib/native/Linux/x86_64/*.so" |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ # Remove unneeded files Linux, Mac and Windows |
71 |
+ rm -r lib/native/Linux/{aarch64,armv7} lib/native/{Mac,Windows} || die |
72 |
+ if ! use systemd; then |
73 |
+ rm lib/native/Linux/x86_64/libubnt_sdnotify_jni.so || die |
74 |
+ fi |
75 |
+ |
76 |
+ default |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ insinto /usr/lib/unifi |
81 |
+ doins -r bin dl lib webapps |
82 |
+ |
83 |
+ diropts -o unifi -g unifi |
84 |
+ keepdir /var/lib/unifi/{conf,data,run,tmp,work} /var/log/unifi |
85 |
+ |
86 |
+ for symlink in conf data run tmp work; do |
87 |
+ dosym ../../../var/lib/unifi/${symlink} /usr/lib/unifi/${symlink} |
88 |
+ done |
89 |
+ dosym ../../../var/log/unifi /usr/lib/unifi/logs |
90 |
+ |
91 |
+ newinitd "${FILESDIR}"/unifi.initd-r1 unifi |
92 |
+ systemd_dounit "${FILESDIR}"/unifi.service |
93 |
+ |
94 |
+ newconfd "${FILESDIR}"/unifi.confd unifi |
95 |
+ |
96 |
+ echo 'CONFIG_PROTECT="/var/lib/unifi"' > "${T}"/99unifi || die |
97 |
+ doenvd "${T}"/99unifi |
98 |
+ |
99 |
+ einstalldocs |
100 |
+} |