summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2021-03-08 10:21:33 -0600
committerBen Kohler <bkohler@gentoo.org>2021-03-08 10:21:58 -0600
commit6a7d75f4e9a2b444d0cad61a022208b19f8512a2 (patch)
tree5de09fbfa9331270dbce19324e2f31214261987a /net-wireless
parentmedia-gfx/asymptote: clean 2.69 (diff)
downloadgentoo-6a7d75f4e9a2b444d0cad61a022208b19f8512a2.tar.gz
gentoo-6a7d75f4e9a2b444d0cad61a022208b19f8512a2.tar.bz2
gentoo-6a7d75f4e9a2b444d0cad61a022208b19f8512a2.zip
net-wireless/unifi: bump to 6.1.67
Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/unifi/Manifest1
-rw-r--r--net-wireless/unifi/unifi-6.1.67.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest
index 5f2c3111b9a3..b74d66c30d2d 100644
--- a/net-wireless/unifi/Manifest
+++ b/net-wireless/unifi/Manifest
@@ -1,3 +1,4 @@
DIST unifi-6.0.45.zip 147691229 BLAKE2B ad8e34e4934449151b0244bb32e2ce81e2506f228c995e72c2756279ce22f1ce06d44c37f1cfd6156cee0d03066e36d99f98b56d2a1c759ee98ada6569b8309e SHA512 6b2aebf33b6e2114a2b274ce332e2bd88a30406e3a21bc66dc0eddee3ee27ee2e4d3948dea73ff85289cbc2ed0e4f2b646e095091c54120f718b5fb2f0b35943
DIST unifi-6.1.61.zip 152081465 BLAKE2B 821af3772db56eb4ae850302c86b91015a64cf61b00f3086b2b438579d229c0d5167beb9bda90bf6e26819dd1b334ec80c17b81c2bced16ea0730ffbcc711824 SHA512 a7d9beb789796cebc7a553fcb654c659880c76dc58803044388d6d789b8b4bc193e7a6a3da1bda981e0ea049a8015a70e04ebb2e69371c70f7abb457bebaa54f
DIST unifi-6.1.64.zip 152150220 BLAKE2B bcae2baf9e544bf3ed19e7d71676f46860b592f8e9c0d74507f5c5fb41cb399a5ae47198d06495d1994e7ab94d87c20a7f717511887a69af61d4f930c4980cef SHA512 5a247386667067a3d79983a95f436e84e50db6c60eac13d5214342527507a7c2c427491afedc951c4ea06bbc2eaf417cab4585c2f2959cbaf5d556a5c4a0b16d
+DIST unifi-6.1.67.zip 152163973 BLAKE2B 15f25b525f0b1bec4041d69817fcb7ab346e0b90e2c7ffebf390c45fcd7763be8f95b89f4884ce97fe1ffa024c6e8a34b5b731b4cc79f137d3bcfaed8af3fc1a SHA512 339efa414e2c2189b51fe8e8e868533117a6acb513758babb98f9b90b163a6df7034147ac56bee1e872dbff74fe2813183e02e0a13796f43e621b2c1cdef1a1a
diff --git a/net-wireless/unifi/unifi-6.1.67.ebuild b/net-wireless/unifi/unifi-6.1.67.ebuild
new file mode 100644
index 000000000000..0395c3814f86
--- /dev/null
+++ b/net-wireless/unifi/unifi-6.1.67.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="-72b68abfe3"
+
+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/6.1"
+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
+}