Diff unifi-6.5.55-r2 with a unifi-7.3.83

/usr/portage/net-wireless/unifi/unifi-7.3.83.ebuild 2023-10-09 14:52:34.788368484 +0300
4 4
EAPI=8
5 5

  
6 6
# Set this var for any releases except stable
7
RC_SUFFIX="-1d0581c00d"
7
# RC_SUFFIX="-"
8 8

  
9
inherit java-pkg-2 systemd
9
inherit java-pkg-2 readme.gentoo-r1 systemd
10 10

  
11 11
DESCRIPTION="A Management Controller for Ubiquiti Networks UniFi APs"
12 12
HOMEPAGE="https://www.ubnt.com"
13
SRC_URI="https://dl.ui.com/unifi/${PV}${RC_SUFFIX}/UniFi.unix.zip -> ${P}.zip"
13
SRC_URI="https://dl.ui.com/unifi/${PV}/UniFi.unix.zip -> ${P}.zip"
14 14
S="${WORKDIR}/UniFi"
15 15

  
16 16
KEYWORDS="-* amd64 ~arm64"
17 17
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"
18 18
SLOT="0/$(ver_cut 1-2)"
19
IUSE="systemd"
19
IUSE="systemd system-mongodb"
20 20
RESTRICT="bindist mirror"
21 21

  
22 22
RDEPEND="
23 23
	acct-group/unifi
24 24
	acct-user/unifi
25 25
	dev-db/mongodb
26
	virtual/jre:1.8
26
	virtual/jre:11
27 27
"
28 28

  
29 29
BDEPEND="app-arch/unzip"
......
71 71

  
72 72
src_install() {
73 73
	insinto /usr/lib/unifi
74
	doins -r bin dl lib webapps
74
	doins -r dl lib webapps
75
	! use system-mongodb && doins -r bin
75 76

  
76 77
	diropts -o unifi -g unifi
77 78
	keepdir /var/lib/unifi/{conf,data,run,tmp,work} /var/log/unifi
......
88 89
		--jar ace.jar \
89 90
		--pwd '/usr/lib/unifi'
90 91

  
91
	newinitd "${FILESDIR}"/unifi.initd-r2 unifi
92
	systemd_newunit "${FILESDIR}"/unifi.service-r2 unifi.service
92
	if use system-mongodb; then
93
		systemd_newunit "${FILESDIR}"/unifi-mongodb.service unifi.service
94
		newinitd "${FILESDIR}"/unifi-mongodb.initd unifi
95
	else
96
		systemd_newunit "${FILESDIR}"/unifi.service-r2 unifi.service
97
		newinitd "${FILESDIR}"/unifi.initd-r2 unifi
98
	fi
93 99

  
94 100
	newconfd "${FILESDIR}"/unifi.confd unifi
95 101

  
......
97 103
	doenvd "${T}"/99unifi
98 104

  
99 105
	einstalldocs
106
	readme.gentoo_create_doc
107
}
108

  
109
pkg_postinst() {
110
	readme.gentoo_print_elog
100 111
}
Thank you!