From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1145226-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id C2C85138350
	for <garchives@archives.gentoo.org>; Tue, 11 Feb 2020 13:03:44 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E7E9DE0841;
	Tue, 11 Feb 2020 13:03:43 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id BB19FE0841
	for <gentoo-commits@lists.gentoo.org>; Tue, 11 Feb 2020 13:03:43 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 12BD334EB52
	for <gentoo-commits@lists.gentoo.org>; Tue, 11 Feb 2020 13:03:42 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 567BF35
	for <gentoo-commits@lists.gentoo.org>; Tue, 11 Feb 2020 13:03:40 +0000 (UTC)
From: "Ben Kohler" <bkohler@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" <bkohler@gentoo.org>
Message-ID: <1581426213.336987e1c5c9b86d349f2ca4128b9fbc32e6c637.bkohler@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/unifi/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-wireless/unifi/Manifest net-wireless/unifi/unifi-5.12.60.ebuild
X-VCS-Directories: net-wireless/unifi/
X-VCS-Committer: bkohler
X-VCS-Committer-Name: Ben Kohler
X-VCS-Revision: 336987e1c5c9b86d349f2ca4128b9fbc32e6c637
X-VCS-Branch: master
Date: Tue, 11 Feb 2020 13:03:40 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 94987550-94cc-4b81-bb10-492b3307683d
X-Archives-Hash: 42961da93a2f787929eb730e23e4c74c

commit:     336987e1c5c9b86d349f2ca4128b9fbc32e6c637
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 11 13:03:21 2020 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Tue Feb 11 13:03:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=336987e1

net-wireless/unifi: bump to 5.12.60

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

 net-wireless/unifi/Manifest             |  1 +
 net-wireless/unifi/unifi-5.12.60.ebuild | 73 +++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest
index 731b95c98be..0397b0add3e 100644
--- a/net-wireless/unifi/Manifest
+++ b/net-wireless/unifi/Manifest
@@ -1,4 +1,5 @@
 DIST unifi-5.12.35.zip 114691419 BLAKE2B 0400f78cbc880f52e8e352a1b8ef925c293b5a51137aaba89c4e26f7b213661e2b9e5caf09cfc6af0f74456e1217f4e2b8f398c11ebe32b1b6a17153cef9e920 SHA512 4e6b3726e5b6e43c1688fbdefe816eedb1cefc671bc9f861cc06f1c4f52a903670e033c2c5b2c66c5ed2c3f42e8f573e6245fe483a32a0df33283d46ccb5d96a
 DIST unifi-5.12.46.zip 115612217 BLAKE2B 86facd4f21cf66091acfb4bfa5155188b30b1a33848ff0c24c393abf53f5efb114aca86b43b6040961fd9afe6ba1e1a42280f20f48c21772f884edd52b10b25c SHA512 05135f75bf6484810ff66b58452ea8bca1c4e47d5fa7a955bdf9653777f80a7fa355bdaa6586e3a0d98bdcf69cce4e28cf3d14cf8204b82591ba6a08307deef3
+DIST unifi-5.12.60.zip 117404012 BLAKE2B 2ef8fbbf3c6be963929678e1e563ec4e8716e385a61ae770fdf275d166a8b0db3bdbbd043a61bf9aca347a2383712733de5b80712f2ce9201772956f1e6fd2a1 SHA512 d6c172f69b13941fa1c6a69dc1a21111995a94f9a42024c8814cbda6e68796a2244a08e6acd00dc5af45b68164157d1cd5d04b343aeb4086cbd71b72c5af2904
 DIST unifi-5.13.9.zip 117147673 BLAKE2B d05f0e6d0bdada8e1e02f78f99d59f02e259f9c6f6e78827a7288520e393e0811f37501004b3914f5df4ec2065728b28d5a9eb3a376d1f83b174ab7e07215bea SHA512 363b8019ba0854c289b2ec375739d0a86353fd876f3b59c7d8dd191da40866433e2222d98c1888d5d45a5def1209c1c0d7be733a71c3f5749c7b4def682d195e
 DIST unifi-5.6.42.zip 63581448 BLAKE2B dc12149acc56587043b9f6c45a43327a9a067dda86127c60ad62a4681a0c8ba873435b60183989332f561fb52f71c7207480766ec23d9c0e892cc20c521a9819 SHA512 467c0ad284a84795537484f371867d851e67c7e396215d539a9705f17f374b50db4051121a6634d1944474a2474bdd75fca860ab00b48634a5d3e8749a122989

diff --git a/net-wireless/unifi/unifi-5.12.60.ebuild b/net-wireless/unifi/unifi-5.12.60.ebuild
new file mode 100644
index 00000000000..a311dd5a8da
--- /dev/null
+++ b/net-wireless/unifi/unifi-5.12.60.ebuild
@@ -0,0 +1,73 @@
+# 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="-e24b0812ee"
+
+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.12"
+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() {
+	# Install MongoDB wrapper script, to avoid problems with >= 3.6.0
+	# See https://community.ubnt.com/t5/UniFi-Routing-Switching/MongoDB-3-6/td-p/2195435
+	exeinto /usr/lib/unifi/bin
+	newexe "${FILESDIR}"/mongod-wrapper mongod
+
+	insinto /usr/lib/unifi
+	doins -r 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
+}