Сравнение libcgroup-3.0.0 с libcgroup-3.0.0-r1

/usr/portage/dev-libs/libcgroup/libcgroup-3.0.0-r1.ebuild 2023-10-09 14:52:29.512368351 +0300
11 11

  
12 12
LICENSE="LGPL-2.1"
13 13
SLOT="0"
14
KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 ~riscv x86"
14
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
15 15
IUSE="+daemon pam static-libs test +tools"
16 16
REQUIRED_USE="daemon? ( tools )"
17 17

  
......
29 29
RDEPEND="${DEPEND}"
30 30

  
31 31
PATCHES=(
32
	"${FILESDIR}"/${PN}-3.0.0-configure-bashism.patch
33
	"${FILESDIR}"/${PN}-3.0.0-musl-strerror_r.patch
32
	"${FILESDIR}/${PN}-3.0.0-configure-bashism.patch"
33
	"${FILESDIR}/${PN}-3.0.0-musl-strerror_r.patch"
34 34
)
35 35

  
36 36
pkg_setup() {
......
45 45
	default
46 46

  
47 47
	# Change rules file location
48
	find src -name *.c -o -name *.h \
49
		| xargs sed -i '/^#define/s:/etc/cg:/etc/cgroup/cg:'
48
	find src -name '*.c' -o -name '*.h' -print0 \
49
		| xargs -0 sed -i '/^#define/s:/etc/cg:/etc/cgroup/cg:'
50 50
	sed -i 's:/etc/cg:/etc/cgroup/cg:' \
51 51
		doc/man/cg* samples/config/*.conf README* || die "sed failed"
52 52

  
......
63 63
}
64 64

  
65 65
src_configure() {
66
	use elibc_musl && append-ldflags -lfts
66
	if use elibc_musl; then
67
		append-ldflags -lfts
68
	fi
67 69

  
68
	local my_conf=(
69
		$(use_enable static-libs static)
70
		$(use_enable daemon)
71
		$(use_enable pam)
72
		$(use_enable tools)
73
		$(use_enable test tests)
70
	local myconf=(
71
		"$(use_enable static-libs static)"
72
		"$(use_enable daemon)"
73
		"$(use_enable pam)"
74
		"$(use_enable tools)"
75
		"$(use_enable test tests)"
74 76
	)
75 77

  
76 78
	if use pam; then
77
		my_conf+=( --enable-pam-module-dir="$(getpam_mod_dir)" )
79
		myconf+=( "--enable-pam-module-dir=$(getpam_mod_dir)" )
78 80
	fi
79 81

  
80
	econf "${my_conf[@]}"
82
	econf "${myconf[@]}"
81 83
}
82 84

  
83 85
src_test() {
......
100 102
	keepdir /etc/cgroup/cgrules.d
101 103

  
102 104
	if use tools; then
103
		newconfd "${FILESDIR}"/cgconfig.confd-r1 cgconfig
104
		newinitd "${FILESDIR}"/cgconfig.initd-r1 cgconfig
105
		systemd_dounit "${FILESDIR}"/cgconfig.service
106
		systemd_dounit "${FILESDIR}"/cgrules.service
105
		newconfd "${FILESDIR}/cgconfig.confd-r2" cgconfig
106
		newinitd "${FILESDIR}/cgconfig.initd-r2" cgconfig
107
		systemd_dounit "${FILESDIR}/cgconfig.service"
108
		systemd_dounit "${FILESDIR}/cgrules.service"
107 109
	fi
108 110

  
109 111
	if use daemon; then
110
		newconfd "${FILESDIR}"/cgred.confd-r2 cgred
111
		newinitd "${FILESDIR}"/cgred.initd-r1 cgred
112
		newconfd "${FILESDIR}/cgred.confd-r2" cgred
113
		newinitd "${FILESDIR}/cgred.initd-r1" cgred
112 114
	fi
113 115
}
Спасибо!