diff options
author | Ben Kohler <bkohler@gentoo.org> | 2020-10-19 06:33:33 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2020-10-19 06:47:47 -0500 |
commit | d50f4f756533eb85370a1a1635c81e804fd3452b (patch) | |
tree | e8d330c0337dc7e5575d621453643be4a7cc63e4 /net-wireless | |
parent | net-wireless/unifi: 6.0.27 stable, drop old (diff) | |
download | gentoo-d50f4f756533eb85370a1a1635c81e804fd3452b.tar.gz gentoo-d50f4f756533eb85370a1a1635c81e804fd3452b.tar.bz2 gentoo-d50f4f756533eb85370a1a1635c81e804fd3452b.zip |
net-wireless/unifi: bump to 6.1.20
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/unifi/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/unifi/unifi-6.1.20.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest index 94e328238dea..59483d166065 100644 --- a/net-wireless/unifi/Manifest +++ b/net-wireless/unifi/Manifest @@ -3,3 +3,4 @@ DIST unifi-6.0.27.zip 214476444 BLAKE2B e13f5255d46c07fa9973cde14ad62bffa955a8a3 DIST unifi-6.0.28.zip 227017958 BLAKE2B cf70d5cbcefcf2a89f1a38763898d3f59f4be1b99b5cca7a7393a6e8ef705090aeb60f59c0a67b95ae967ff575da0749bbf327d53247c1a7128f01043145bebc SHA512 edb332ccc6624f73c77976a564c157d37f2a11068c2f8af1fa98209efb3b4e01922ab75309f85e5bd053ec50e9eeb433fcaa22bb2c0a27a6ee4de8946a876d46 DIST unifi-6.1.16.zip 220033149 BLAKE2B 4e965c1577ef35d3dd28357aa884f8234f3cc9c45783dd261153ecc87bda24fc4b58ea4f49096304331bd11896251c29eaaa8e8b44046e50ee7e9d54d997223a SHA512 d1b241d5a47ee34c66a08b847405f615f83782fc67a38fe5fc4c281bac6335bc2ab8b021774cafb98753759b9924e773a2c4883a1ed2b30cb2e58ab56b3c07f3 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.1.20.ebuild b/net-wireless/unifi/unifi-6.1.20.ebuild new file mode 100644 index 000000000000..dea4c9088c8e --- /dev/null +++ b/net-wireless/unifi/unifi-6.1.20.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="-07a45f3da7" + +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 +} |