summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2021-03-16 09:17:03 -0500
committerBen Kohler <bkohler@gentoo.org>2021-03-16 09:17:47 -0500
commit5734a3141dc8fbb731ac5cb4c46c984b082bcd67 (patch)
tree07abc4e58392113723bdf762737f7ae93d1c76c9 /net-wireless
parentdev-vcs/git: Restored keywords (diff)
downloadgentoo-5734a3141dc8fbb731ac5cb4c46c984b082bcd67.tar.gz
gentoo-5734a3141dc8fbb731ac5cb4c46c984b082bcd67.tar.bz2
gentoo-5734a3141dc8fbb731ac5cb4c46c984b082bcd67.zip
net-wireless/unifi: bump to 6.1.70
Package-Manager: Portage-3.0.17, 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.70.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest
index 92aad1a47ff7..335beaca63ed 100644
--- a/net-wireless/unifi/Manifest
+++ b/net-wireless/unifi/Manifest
@@ -2,3 +2,4 @@ DIST unifi-6.0.45.zip 147691229 BLAKE2B ad8e34e4934449151b0244bb32e2ce81e2506f22
DIST unifi-6.1.61.zip 152081465 BLAKE2B 821af3772db56eb4ae850302c86b91015a64cf61b00f3086b2b438579d229c0d5167beb9bda90bf6e26819dd1b334ec80c17b81c2bced16ea0730ffbcc711824 SHA512 a7d9beb789796cebc7a553fcb654c659880c76dc58803044388d6d789b8b4bc193e7a6a3da1bda981e0ea049a8015a70e04ebb2e69371c70f7abb457bebaa54f
DIST unifi-6.1.67.zip 152163973 BLAKE2B 15f25b525f0b1bec4041d69817fcb7ab346e0b90e2c7ffebf390c45fcd7763be8f95b89f4884ce97fe1ffa024c6e8a34b5b731b4cc79f137d3bcfaed8af3fc1a SHA512 339efa414e2c2189b51fe8e8e868533117a6acb513758babb98f9b90b163a6df7034147ac56bee1e872dbff74fe2813183e02e0a13796f43e621b2c1cdef1a1a
DIST unifi-6.1.69.zip 152157626 BLAKE2B 5c94680cbe82e48c09e9b131c2faa5a1dec71553796f38dc33c8ed3e055c9652b6311dd5675affb46b3159392653dde1fe08cf15366f52fdf6a216788f16042a SHA512 a887c18abe07f2ad6b1e472b30935acbf171f52295390c1860bc9ee5eb9e6882a2a1364a30e1e019404c0242a1f63aa1d4031ff60a4a8cf2a4c921ac4565defc
+DIST unifi-6.1.70.zip 152163565 BLAKE2B 093cfbd01a0212ac69a826f156a3a5e3b8254848726a30bad042b192ff0860ea608f100a373af9e91084fb46b4a306433533955edf32baa29edd2c6309973a21 SHA512 5a7e0672e164fc709659dc7d6d3bfe410bb3ec54c216ae2a51eda8f14907dcf69099d41f5d0a67fa1fc8fe53f2f64a1f144bc3c1d65eeae051bb8ca4e6b15d86
diff --git a/net-wireless/unifi/unifi-6.1.70.ebuild b/net-wireless/unifi/unifi-6.1.70.ebuild
new file mode 100644
index 000000000000..c2d18fa67324
--- /dev/null
+++ b/net-wireless/unifi/unifi-6.1.70.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="-fbf03b3a76"
+
+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
+}