commit: d0be4812be5869afaf3aa31091a3cc163b1d22a9 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> AuthorDate: Thu Oct 22 11:18:02 2020 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Thu Oct 22 11:18:19 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0be4812
net-wireless/unifi: bump to 6.0.29 Unstable bump in stable 6.0 series. Add EAPI=7 here too. Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> net-wireless/unifi/Manifest | 1 + net-wireless/unifi/unifi-6.0.29.ebuild | 68 ++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest index 1d230dab3e7..7d92584c352 100644 --- a/net-wireless/unifi/Manifest +++ b/net-wireless/unifi/Manifest @@ -1,4 +1,5 @@ DIST unifi-5.6.42.zip 63581448 BLAKE2B dc12149acc56587043b9f6c45a43327a9a067dda86127c60ad62a4681a0c8ba873435b60183989332f561fb52f71c7207480766ec23d9c0e892cc20c521a9819 SHA512 467c0ad284a84795537484f371867d851e67c7e396215d539a9705f17f374b50db4051121a6634d1944474a2474bdd75fca860ab00b48634a5d3e8749a122989 DIST unifi-6.0.28.zip 227017958 BLAKE2B cf70d5cbcefcf2a89f1a38763898d3f59f4be1b99b5cca7a7393a6e8ef705090aeb60f59c0a67b95ae967ff575da0749bbf327d53247c1a7128f01043145bebc SHA512 edb332ccc6624f73c77976a564c157d37f2a11068c2f8af1fa98209efb3b4e01922ab75309f85e5bd053ec50e9eeb433fcaa22bb2c0a27a6ee4de8946a876d46 +DIST unifi-6.0.29.zip 229712522 BLAKE2B cd9df1bbc715983ad1ab709586483cfb4f4e41846bd2096cd444735ec053d7c2fb4fb6bc71bb90e099d9cc6f7078326fa9b817cea456bc43dd1c0ac58df73440 SHA512 e44747b3fc799ec3b47fc1cc5f943e25cfe11063bb9fe5c2d7eb59ede5a0e4effd73c6c33177a3b74409be11cad2e60c5d9f85e937c45dfebb68c3470e60909f DIST unifi-6.1.19.zip 222132389 BLAKE2B 6a27fbb8a3a1b2e83fb70932b8409f9cab0632de1442436ff351d01e82228a4bbf0b71de3bef074777db93d0d3bcf58789a6b56e4eb23f1464523294fcd13d7f SHA512 f07d5a10132d5549c332ab9c0a86a4d3edf9178d441c795fd0da87bd00f82598a78a6cb5cedc285f2d20465a52689c7cf7ea3378cf0e84e834c8fa8613868e55 DIST unifi-6.1.20.zip 227784789 BLAKE2B 17322ae0d7d7ab5a9055a6882def83a5624d377f189eb1529fb71a74d6c1930764ecc0e57fce16f0f520691da4abb1b45bc99e186749368f2a7e9597a236bd17 SHA512 0fe04e0c747f757544a087d340e7148f1d6c33764860394c8743be1611c43cac985f174bcdd323c9c7af52ab240199f033bde1adb653a65c9880f4935bea9429 diff --git a/net-wireless/unifi/unifi-6.0.29.ebuild b/net-wireless/unifi/unifi-6.0.29.ebuild new file mode 100644 index 00000000000..5766e7801b5 --- /dev/null +++ b/net-wireless/unifi/unifi-6.0.29.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 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="-40ae4983d7" + +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.0" +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 +}