summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Kohler <bkohler@gentoo.org>2019-02-13 11:51:52 -0600
committerBen Kohler <bkohler@gentoo.org>2019-02-13 11:52:22 -0600
commit439ff859f18efe8ee2daa4a843d417014a3932f6 (patch)
tree48269ea1439e10e2e0b28121725bb564cb788cc7 /net-wireless
parentprofiles/prefix/cygwin: p.mask groff-1.22.4 (diff)
downloadgentoo-439ff859f18efe8ee2daa4a843d417014a3932f6.tar.gz
gentoo-439ff859f18efe8ee2daa4a843d417014a3932f6.tar.bz2
gentoo-439ff859f18efe8ee2daa4a843d417014a3932f6.zip
net-wireless/unifi: restore 5.10.12 to later target for stable kw
Closes: https://bugs.gentoo.org/677884 Package-Manager: Portage-2.3.60, 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.12.ebuild74
2 files changed, 75 insertions, 0 deletions
diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest
index 60f184bc40db..c55b413b0f55 100644
--- a/net-wireless/unifi/Manifest
+++ b/net-wireless/unifi/Manifest
@@ -1,3 +1,4 @@
+DIST unifi-5.10.12.zip 91787840 BLAKE2B e024f1d782dce5d2c88598c092c86d5d5761282154b323497e027b04091400d2db09f6da81ca8d637a51840613e8fca98d1c2d8c5e6fede71a2cb0c790efd950 SHA512 ba4b5322137f7fec0990105d66efbd290ef33218db432824dc9ae6af736a59188eed77c074e680c248d260c39e7974956bbd2492c6af2be3465276a9cc77ba48
DIST unifi-5.10.15.zip 91778488 BLAKE2B 23e7383c8e820c391bf18490073d583be045066f5cb788b4a04b803cba6cb4633e2c2565e3704419300de3762e11fb31ba7573669a1ef1fd58de30b62ff03786 SHA512 7f8fd40acb3d1f4603183fbdad229579e6da4733af78debe395db8bb3eec31096cb0259491a30bb0391e81f9f072397ab85ce9ba294406affd3e4b8a7176211e
DIST unifi-5.10.16.zip 91777321 BLAKE2B ac039b8e0d9835a0228805fb9a4935ae4e4d07360133bc564cda42046eae33042576710e4e282e81e18ce822156c0f870faf58ec5d20bdb7642947ee00345ad0 SHA512 b28b6988971467dbdb34c480a5c83ebd402a4f989c3e1ef33478886b802758e077809712e818b04167325d06465b05ea8718f0b18248d328fd8f31f3e43a1817
DIST unifi-5.6.40.zip 63584069 BLAKE2B 9c241c7ef335b6e4d9ce1d53d8bf6a9b2e6a0c5b91d60f321100e67cc6201f1dc060398dc7af1ee014c47df194f64ddf1eb56a6c7ce53691251b4fd2937c5603 SHA512 d2e154ec6bdf24cfcb0e5154512a91dc0e601a2bfe7fcdda4c22b329b304b50315a42485daee8495a5076136055c2cf59ebe42b083221683168199e437589e9a
diff --git a/net-wireless/unifi/unifi-5.10.12.ebuild b/net-wireless/unifi/unifi-5.10.12.ebuild
new file mode 100644
index 000000000000..053a81552b9f
--- /dev/null
+++ b/net-wireless/unifi/unifi-5.10.12.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=""
+
+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
+}