Сравнение nut-2.8.4 с nut-9999

/usr/portage/sys-power/nut/nut-9999.ebuild 2026-11-03 20:01:06.233691952 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{12..14} )
7
inherit bash-completion-r1 desktop linux-info optfeature
8
inherit python-single-r1 systemd tmpfiles toolchain-funcs udev wrapper xdg
6
PYTHON_COMPAT=( python3_{12..15} )
7
inherit desktop linux-info optfeature python-single-r1 shell-completion
8
inherit systemd tmpfiles toolchain-funcs udev wrapper xdg
9 9

  
10 10
MY_P=${P/_/-}
11 11

  
......
16 16
	EGIT_REPO_URI="https://github.com/networkupstools/${PN}.git"
17 17
	inherit git-r3
18 18
else
19
	SRC_URI="https://networkupstools.org/source/${PV%.*}/${MY_P}.tar.gz"
20
	KEYWORDS="amd64 arm ~arm64 ppc ppc64 ~riscv x86"
19
	inherit verify-sig
20
	SRC_URI="
21
		https://networkupstools.org/source/${PV%.*}/${MY_P}.tar.gz
22
		verify-sig? ( https://networkupstools.org/source/${PV%.*}/${MY_P}.tar.gz.sig )
23
	"
24
	KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
21 25
fi
22 26

  
23 27
S="${WORKDIR}/${MY_P}"
24 28

  
25 29
LICENSE="GPL-2"
26 30
SLOT="0"
27
IUSE="gpio cgi doc ipmi serial i2c +man snmp +usb modbus selinux ssl tcpd test xml zeroconf python monitor systemd"
31
IUSE="cgi doc gpio i2c ipmi +man modbus monitor python selinux serial snmp ssl systemd test tcpd upower +usb xml zeroconf"
28 32
RESTRICT="!test? ( test )"
29 33

  
30 34
REQUIRED_USE="
......
39 43
	acct-user/nut
40 44
	dev-libs/libltdl
41 45
	virtual/udev
42
	cgi? ( >=media-libs/gd-2[png] )
43
	gpio? ( dev-libs/libgpiod )
46
	cgi? ( >=media-libs/gd-2:2=[png] )
47
	gpio? ( dev-libs/libgpiod:= )
44 48
	i2c? ( sys-apps/i2c-tools )
45 49
	ipmi? ( sys-libs/freeipmi )
46 50
	modbus? ( dev-libs/libmodbus )
......
49 53
	ssl? ( >=dev-libs/openssl-1:= )
50 54
	systemd? ( >=sys-apps/systemd-253 )
51 55
	tcpd? ( sys-apps/tcp-wrappers )
56
	upower? (
57
		dev-libs/glib:2
58
		sys-power/upower
59
	)
52 60
	usb? ( virtual/libusb:1 )
53 61
	xml? ( >=net-libs/neon-0.25.0:= )
54 62
	zeroconf? ( net-dns/avahi )
......
67 75
	selinux? ( sec-policy/selinux-nut )
68 76
"
69 77

  
78
if [[ ${PV} != *9999 ]]; then
79
	BDEPEND+=" sec-keys/openpgp-keys-nut"
80
	VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/nut.asc
81
fi
82

  
70 83
PATCHES=(
71
	"${FILESDIR}/${PN}-2.6.2-lowspeed-buffer-size.patch"
72 84
)
73
PATCH_NEEDS_AUTOGEN=1
85
#PATCH_NEEDS_AUTOGEN=1
74 86

  
75 87
pkg_pretend() {
76 88
	if use i2c; then
......
100 112
}
101 113

  
102 114
src_prepare() {
103
	if use systemd; then
104
		PATCHES+=( "${FILESDIR}/systemd_notify.patch" )
105
	else
106
		PATCHES+=( "${FILESDIR}/systemd_notify_openrc.patch" )
107
	fi
108

  
109 115
	default
110 116

  
117
	# po files not installed so symlinks would be orphans.
118
	# Even so symlinks would be only useful for gtk2 and qt5 as per upstream.
119
	sed -e '/^install-data-hook-app-locale-symlinks:/,/^$/ { /UTF8_POFILE/d }' \
120
		-i scripts/python/Makefile.* || die
121

  
111 122
	if [[ ${PV} == *9999 ]] || [[ ${PATCH_NEEDS_AUTOGEN} == 1 ]] ; then
112 123
		./autogen.sh || die
113 124
	fi
......
130 141
		--with-htmlpath=/usr/share/nut/html
131 142
		--with-logfacility=LOG_DAEMON
132 143
		--with-statepath=/run/nut
133
		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
144
		# systemdsystemunitdir implies "basic" systemd support, bug #977380
145
		--with-systemdsystemunitdir="$(usex systemd $(systemd_get_systemunitdir) no)"
134 146
		--with-systemdtmpfilesdir="/usr/lib/tmpfiles.d"
147
		# Shortcut systemd feature tests to avoid sandbox violations, bug #985347
148
		ac_cv_path_SYSTEMD_ANALYZE_PROGRAM="${BROOT}/bin/$(usex systemd true false)"
135 149
		--with-udev-dir="$(get_udevdir)"
136 150
		--with-user=nut
137 151
		--without-powerman
138
		--without-python
139 152
		--without-python2
140 153
		--with-altpidpath=/run/nut
141 154
		--with-pidpath=/run/nut
......
152 165
		$(use_with systemd libsystemd)
153 166
		$(use_with tcpd wrap)
154 167
		$(use_with usb)
168
		$(use_with upower)
155 169
		$(use_with xml neon)
156 170
		$(use_with zeroconf avahi)
157 171
	)
......
216 230
	fi
217 231

  
218 232
	if use monitor; then
219
		make_wrapper NUT-Monitor-py3qt5 /usr/share/nut/nut-monitor/app/NUT-Monitor-py3qt5 /usr/share/nut/nut-monitor/app
233
		make_wrapper NUT-Monitor-py3qt6 /usr/share/nut/nut-monitor/app/NUT-Monitor-py3qt6 /usr/share/nut/nut-monitor/app
220 234

  
221 235
		# Install desktop shortcut
222
		newmenu scripts/python/app/nut-monitor-py3qt5.desktop nut-monitor.desktop
236
		newmenu scripts/python/app/nut-monitor-py3qt6.desktop nut-monitor.desktop
223 237

  
224 238
		# Installing Application icons
225 239
		local res
......
257 271

  
258 272
	udev_reload
259 273

  
260
	tmpfiles_process nut-common-tmpfiles.conf
274
	use systemd && tmpfiles_process nut-common-tmpfiles.conf
261 275
	xdg_pkg_postinst
262 276
}
263 277

  
Спасибо!