From 3a77d78ca92715b58ddac074baa5b25c4baf9a9b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 9 Sep 2023 22:34:14 +0100 Subject: gentoo auto-resync : 09:09:2023 - 22:34:14 --- net-wireless/unifi/Manifest | 2 +- net-wireless/unifi/unifi-7.5.174-r1.ebuild | 101 +++++++++++++++++++++++++++++ net-wireless/unifi/unifi-7.5.174.ebuild | 101 ----------------------------- 3 files changed, 102 insertions(+), 102 deletions(-) create mode 100644 net-wireless/unifi/unifi-7.5.174-r1.ebuild delete mode 100644 net-wireless/unifi/unifi-7.5.174.ebuild (limited to 'net-wireless/unifi') diff --git a/net-wireless/unifi/Manifest b/net-wireless/unifi/Manifest index e6531be1b4b7..e694aa236168 100644 --- a/net-wireless/unifi/Manifest +++ b/net-wireless/unifi/Manifest @@ -11,5 +11,5 @@ DIST unifi-7.5.174.zip 170958023 BLAKE2B 38006f1a28caca8da956c00d4883f7c5337f1e7 EBUILD unifi-6.5.55-r2.ebuild 2487 BLAKE2B 32f355cfa0223b1161372a38085082ccf40888192ce9159bfcaaeec0f8dd85e73a124eef2b5bfda559c693159af92f6e44fd67888126094561d7711b011b150e SHA512 5ff01a288d1d67c7e25e37bc03549b698f1a8feffcac404fbbae0880e9707210de6c1ac454058913496f7dadec80006a311d4e88ce713c34265521717ae8b72b EBUILD unifi-7.3.83.ebuild 2764 BLAKE2B 7cc3f4c8afe2a18ce87952d3b4658b930508b96aa8a256cbe1c8fa73bb426094b8a395ce7fee1f0d1c25a6db541248cf0faea0c020c2658038339cb4619ac1c7 SHA512 90231e073d5e95f489c724bf014dc44b821c7c55579ff0076d1c21aae2b85ca2c73a9c55f716d1cfee5ef753068b59f438eef058120fb2467917dce161b339ac EBUILD unifi-7.4.162.ebuild 2703 BLAKE2B 8982e50fff348e55864e623b58147913da0b9734a01ab93bd8153d570fcc2a4468a11cf4b977607315835a6a85701c35f022a885fa399c32f63990d753bb2353 SHA512 088fd7ee83ef7a7c108cbc4d68747519cf88a04e34208c91305de4323f2736a37839f3541e827f28aac226649eec6cd602162ed30e498eb934540f5be0b12e4d -EBUILD unifi-7.5.174.ebuild 2434 BLAKE2B 9fe11dcf4a0adb4d276273158e7fcce1729468e5bc6f4eec1291b808cb5cd1ddd36c1b73365364fa934f16421ae1f479dce6a51f6c4c00f76c5dc8f008f3064f SHA512 c20ab32052cb1e4e787f7c3281bb0a5ce355e02d9282053429c0f920c68d5dc818efc3578b75581356fa92c982535075a2e485e6a1581f0eb5b1a440350e466b +EBUILD unifi-7.5.174-r1.ebuild 2434 BLAKE2B 7a5cac24fee48439bb5fca11958fb4561ccd8a0c2321a707445e4c6a84db964916f31da10e1846d47d8725ba1e8ab8623a9b56c227d156664da35b146b9f4e3d SHA512 d1ecf76bd4614cbcb0b6698b15ee41bd6f237cf0e0c36bf796db65d01057b6effd18c372950e45e81a27869ca081e157b19081ddc9547943e897a2cb21da612c MISC metadata.xml 706 BLAKE2B c089f7ad4712f8ad5ef71f8127686dd13a7d3ead5f31dff6c939b100c18920680d648c4d27af479dc14624b5365fc038998f478ae82222fc2f2d073bbb7b58cb SHA512 8866e9107a41456a238b21316a1b174167b4343a55bcca2964b05e44fcc2d157df113a7867496726fcdc0eabf3e244e14567e03b53e3e1df2b11a2d932fa761c diff --git a/net-wireless/unifi/unifi-7.5.174-r1.ebuild b/net-wireless/unifi/unifi-7.5.174-r1.ebuild new file mode 100644 index 000000000000..71fa8a6c36b9 --- /dev/null +++ b/net-wireless/unifi/unifi-7.5.174-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Set this var for any releases except stable +# RC_SUFFIX="-3116043f9f" + +inherit java-pkg-2 readme.gentoo-r1 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" +SRC_URI="https://dl.ui.com/unifi/${PV}/UniFi.unix.zip -> ${P}.zip" +S="${WORKDIR}/UniFi" + +KEYWORDS="-* ~amd64 ~arm64" +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/$(ver_cut 1-2)" +IUSE="systemd system-mongodb" +RESTRICT="bindist mirror" + +RDEPEND=" + acct-group/unifi + acct-user/unifi + dev-db/mongodb + virtual/jre:17 +" + +BDEPEND="app-arch/unzip" + +DOCS=( "readme.txt" ) + +QA_PREBUILT="usr/lib/unifi/lib/native/Linux/x86_64/*.so" + +src_prepare() { + if [[ ${CHOST} != aarch64* ]]; then + rm -r lib/native/Linux/aarch64 || die + fi + if [[ ${CHOST} != x86_64* ]]; then + rm -r lib/native/Linux/x86_64 || die + fi + + if [[ ${CHOST} == aarch64* ]]; then + if ! use systemd; then + rm lib/native/Linux/aarch64/libubnt_sdnotify_jni.so || die + fi + fi + if [[ ${CHOST} == x86_64* ]]; then + if ! use systemd; then + rm lib/native/Linux/x86_64/libubnt_sdnotify_jni.so || die + fi + fi + + default +} + +src_compile() { + :; +} + +src_install() { + insinto /usr/lib/unifi + doins -r dl lib webapps + ! use system-mongodb && doins -r bin + + 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 + + java-pkg_regjar "${D}"/usr/lib/unifi/lib/*.jar + java-pkg_dolauncher \ + unifi \ + --java_args '-Dorg.xerial.snappy.tempdir=/usr/lib/unifi/tmp -Djava.library.path=' \ + --jar ace.jar \ + --pwd '/usr/lib/unifi' + + if use system-mongodb; then + systemd_newunit "${FILESDIR}"/unifi-mongodb.service unifi.service + newinitd "${FILESDIR}"/unifi-mongodb.initd unifi + else + systemd_newunit "${FILESDIR}"/unifi.service-r2 unifi.service + newinitd "${FILESDIR}"/unifi.initd-r2 unifi + fi + + newconfd "${FILESDIR}"/unifi.confd unifi + + echo 'CONFIG_PROTECT="/var/lib/unifi"' > "${T}"/99unifi || die + doenvd "${T}"/99unifi + + einstalldocs + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} diff --git a/net-wireless/unifi/unifi-7.5.174.ebuild b/net-wireless/unifi/unifi-7.5.174.ebuild deleted file mode 100644 index da37d1d5280e..000000000000 --- a/net-wireless/unifi/unifi-7.5.174.ebuild +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# Set this var for any releases except stable -# RC_SUFFIX="-3116043f9f" - -inherit java-pkg-2 readme.gentoo-r1 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" -SRC_URI="https://dl.ui.com/unifi/${PV}/UniFi.unix.zip -> ${P}.zip" -S="${WORKDIR}/UniFi" - -KEYWORDS="-* ~amd64 ~arm64" -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/$(ver_cut 1-2)" -IUSE="systemd system-mongodb" -RESTRICT="bindist mirror" - -RDEPEND=" - acct-group/unifi - acct-user/unifi - dev-db/mongodb - virtual/jre:11 -" - -BDEPEND="app-arch/unzip" - -DOCS=( "readme.txt" ) - -QA_PREBUILT="usr/lib/unifi/lib/native/Linux/x86_64/*.so" - -src_prepare() { - if [[ ${CHOST} != aarch64* ]]; then - rm -r lib/native/Linux/aarch64 || die - fi - if [[ ${CHOST} != x86_64* ]]; then - rm -r lib/native/Linux/x86_64 || die - fi - - if [[ ${CHOST} == aarch64* ]]; then - if ! use systemd; then - rm lib/native/Linux/aarch64/libubnt_sdnotify_jni.so || die - fi - fi - if [[ ${CHOST} == x86_64* ]]; then - if ! use systemd; then - rm lib/native/Linux/x86_64/libubnt_sdnotify_jni.so || die - fi - fi - - default -} - -src_compile() { - :; -} - -src_install() { - insinto /usr/lib/unifi - doins -r dl lib webapps - ! use system-mongodb && doins -r bin - - 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 - - java-pkg_regjar "${D}"/usr/lib/unifi/lib/*.jar - java-pkg_dolauncher \ - unifi \ - --java_args '-Dorg.xerial.snappy.tempdir=/usr/lib/unifi/tmp -Djava.library.path=' \ - --jar ace.jar \ - --pwd '/usr/lib/unifi' - - if use system-mongodb; then - systemd_newunit "${FILESDIR}"/unifi-mongodb.service unifi.service - newinitd "${FILESDIR}"/unifi-mongodb.initd unifi - else - systemd_newunit "${FILESDIR}"/unifi.service-r2 unifi.service - newinitd "${FILESDIR}"/unifi.initd-r2 unifi - fi - - newconfd "${FILESDIR}"/unifi.confd unifi - - echo 'CONFIG_PROTECT="/var/lib/unifi"' > "${T}"/99unifi || die - doenvd "${T}"/99unifi - - einstalldocs - readme.gentoo_create_doc -} - -pkg_postinst() { - readme.gentoo_print_elog -} -- cgit v1.2.3