summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2019-01-26 11:07:28 -0600
committerBen Kohler <bkohler@gentoo.org>2019-01-26 11:07:55 -0600
commit63f213261889acf5768a4c22b0f1b402f8062acb (patch)
tree825eb8832bfb575cab1bf94242fca2343aa8f710 /net-wireless
parentsys-fs/udev: update copyright start year (diff)
downloadgentoo-63f213261889acf5768a4c22b0f1b402f8062acb.tar.gz
gentoo-63f213261889acf5768a4c22b0f1b402f8062acb.tar.bz2
gentoo-63f213261889acf5768a4c22b0f1b402f8062acb.zip
net-wireless/unifi: bump to 5.10.10
Package-Manager: Portage-2.3.58, Repoman-2.3.12 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-5.10.10.ebuild74
2 files changed, 75 insertions, 0 deletions
diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest
index 7d56f762490c..a3465951acf6 100644
--- a/net-wireless/unifi/Manifest
+++ b/net-wireless/unifi/Manifest
@@ -1,3 +1,4 @@
+DIST unifi-5.10.10.zip 91779017 BLAKE2B e33702665ca010127e16bb15a8bd06666cc122d13d0464b190d91ec9a948a7846d377db44944e63c52e5dc5cd5bf94f2b8a5acbeda5ae565904ef4d4779b4032 SHA512 2036e00ce5aadb768e3e8b2cad7fca6bc11795137c2f63b66bd4d26cfe9e08087f7bc3d123d188626831982dcf03da04ede5c24c28f8aa6e39647ea74ab53c59
DIST unifi-5.10.5.zip 77373497 BLAKE2B 0716c2ce948a909959d52325d97f9fdbf867492e54bfc12f286659f825f3d5719d334612d71af4bad8d9f1ff076d418df54af8cea18019adbc32cb1972eb5ae6 SHA512 9c8da7fc8b1068a60e5702d377d9cfaa6ea8d90014c3b4e3478bfc0b6a3a1614853befa9cca08c78ebffcdaf4dad119b251c69c52eb8df44acdbe225a28b54ed
DIST unifi-5.6.39.zip 63559153 BLAKE2B 377c9cbcb49f3f7fe687c7877ca37b4cf4c62076da1a05ce64599be86b8503b910e941bdaa93b9bf77ed259e46ed5355befb695c0cff41157fe1e43a10643216 SHA512 456407a0fe140ef35718591777fcc1084ca9ee4f70c97deb554318390aa3e530c5dfbbbe57b659f83d52ca44be8ebd57071cfad2bf7f0f180fa5f2fa9100a1d9
DIST unifi-5.6.40.zip 63584069 BLAKE2B 9c241c7ef335b6e4d9ce1d53d8bf6a9b2e6a0c5b91d60f321100e67cc6201f1dc060398dc7af1ee014c47df194f64ddf1eb56a6c7ce53691251b4fd2937c5603 SHA512 d2e154ec6bdf24cfcb0e5154512a91dc0e601a2bfe7fcdda4c22b329b304b50315a42485daee8495a5076136055c2cf59ebe42b083221683168199e437589e9a
diff --git a/net-wireless/unifi/unifi-5.10.10.ebuild b/net-wireless/unifi/unifi-5.10.10.ebuild
new file mode 100644
index 000000000000..4d2a335ee882
--- /dev/null
+++ b/net-wireless/unifi/unifi-5.10.10.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Used, when it's an unstable, beta or release candidate
+RC_SUFFIX="-20316752b4"
+
+inherit systemd user
+
+DESCRIPTION="A Management Controller for Ubiquiti Networks UniFi APs"
+HOMEPAGE="https://www.ubnt.com"
+SRC_URI="https://dl.ubnt.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.10"
+IUSE="systemd"
+
+RDEPEND="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"
+
+pkg_setup() {
+ enewgroup unifi
+ enewuser unifi -1 -1 /var/lib/unifi unifi
+}
+
+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
+}