Сравнение resource-agents-4.6.1 с resource-agents-4.11.0

/usr/portage/sys-cluster/resource-agents/resource-agents-4.11.0.ebuild 2023-10-09 14:52:35.468368501 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
MY_P="${P/resource-}"
7
inherit autotools multilib
7
inherit autotools
8 8

  
9 9
DESCRIPTION="Resources pack for Heartbeat / Pacemaker"
10 10
HOMEPAGE="http://www.linux-ha.org/wiki/Resource_Agents"
......
13 13
LICENSE="GPL-2"
14 14
SLOT="0"
15 15
KEYWORDS="amd64 ~hppa x86"
16
IUSE="doc libnet rgmanager"
16
IUSE="doc libnet rgmanager systemd"
17 17

  
18
RDEPEND="sys-apps/iproute2
18
RDEPEND="
19
	sys-apps/iproute2
19 20
	>=sys-cluster/cluster-glue-1.0.12-r1
20
	libnet? ( net-libs/libnet:1.1 )"
21
DEPEND="${RDEPEND}
21
	libnet? ( net-libs/libnet:1.1 )
22
	systemd? ( sys-apps/systemd )
23
"
24
DEPEND="${RDEPEND}"
25
BDEPEND="
22 26
	doc? (
23 27
		dev-libs/libxslt
24 28
		app-text/docbook-xsl-stylesheets
25
	)"
29
	)
30
"
26 31

  
27 32
PATCHES=(
28 33
	"${FILESDIR}/4.6.1-configure.patch"
......
34 39
}
35 40

  
36 41
src_configure() {
42
	# --with-ocf-root needs to be /usr/lib, see bug #720420
37 43
	econf \
38 44
		--disable-fatal-warnings \
39 45
		--localstatedir=/var \
40
		--with-ocf-root=/usr/$(get_libdir)/ocf \
46
		--with-ocf-root=/usr/lib/ocf \
41 47
		--with-rsctmpdir=/run/resource-agents \
42 48
		$(use_enable doc) \
43 49
		$(use_enable libnet)
......
45 51

  
46 52
src_install() {
47 53
	default
48
	rm -rf "${D}/usr/$(get_libdir)/ocf/resource.d/redhat" || die
49
	rm -rf "${D}"/etc/init.d/ || die
50
	rm -rf "${D}"{,/var}/run || die
51
	use rgmanager || rm -rf "${D}"/usr/share/cluster/ "${D}"/var/
54

  
55
	rm -rf "${ED}/usr/lib/ocf/resource.d/redhat" || die
56
	rm -rf "${ED}"/etc/init.d/ || die
57
	rm -rf "${ED}"{,/var}/run || die
58

  
59
	use rgmanager || rm -rf "${ED}"/usr/share/cluster/ "${ED}"/var/
52 60
}
53 61

  
54 62
pkg_postinst() {
55
	elog "To use Resource Agents installed in /usr/$(get_libdir)/ocf/resource.d"
63
	elog "To use Resource Agents installed in ${EROOT}/usr/lib/ocf/resource.d"
56 64
	elog "you have to emerge required runtime dependencies manually."
57 65
	elog ""
58 66
	elog "Description and dependencies of all Agents can be found on"
Спасибо!