Сравнение bcache-tools-1.1-r1 с bcache-tools-1.1_p20230217-r1

/usr/portage/sys-fs/bcache-tools/bcache-tools-1.1_p20230217-r1.ebuild 2023-10-09 14:52:35.500368502 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{9..11} )
6
PYTHON_COMPAT=( python3_{10..12} )
7 7

  
8
inherit flag-o-matic python-r1 toolchain-funcs udev
8
inherit flag-o-matic python-r1 toolchain-funcs udev vcs-snapshot
9 9

  
10 10
if [[ "${PV}" == "9999" ]]; then
11 11
	inherit git-r3
12 12
	EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git https://kernel.googlesource.com/pub/scm/linux/kernel/git/colyli/bcache-tools.git"
13 13
else
14
	SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/colyli/${PN}.git/snapshot/${P}.tar.gz"
15
	KEYWORDS="amd64 arm64 ~loong ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
14
	SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/colyli/${PN}.git/snapshot/a5e3753516bd39c431def86c8dfec8a9cea1ddd4.tar.gz -> ${P}.tar.gz"
15
	KEYWORDS="~amd64 ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
16 16
fi
17 17

  
18 18
DESCRIPTION="Tools for bcache"
......
30 30
"
31 31
DEPEND="${RDEPEND}"
32 32

  
33
PATCHES=(
34
	"${FILESDIR}"/1.0.8_p20140220/bcache-tools-1.0.8-noprobe.patch
35
	"${FILESDIR}"/${PV}/bcache-tools-add-bcache-status.patch
36
	"${FILESDIR}"/${PV}/bcache-tools-add-man-page-bcache-status.8.patch
37
)
38

  
39 33
src_prepare() {
40 34
	default
41 35

  
......
43 37
	sed \
44 38
		-e '/^CFLAGS/s:-O2::' \
45 39
		-e '/^CFLAGS/s:-g::' \
40
		-e '/.*INSTALL.*share\/man/d' \
41
		-e '/.*INSTALL.*bcache-status/d' \
46 42
		-i Makefile || die
47 43

  
48 44
	append-lfs-flags
49 45
}
50 46

  
51 47
src_install() {
52
	into /
53
	dosbin bcache make-bcache bcache-super-show
48
	local udevdir="$(get_udevdir)"
54 49

  
55
	exeinto $(get_udevdir)
56
	doexe bcache-register probe-bcache
50
	local mydirs=(
51
		sbin
52
		"${udevdir}/rules.d"
53
		/usr/share/initramfs-tools/hooks/bcache
54
		/usr/lib/initcpio/install/bcache
55
	)
56
	dodir "${mydirs[@]}"
57

  
58
	emake \
59
		DESTDIR="${D}" \
60
		PREFIX="${EPREFIX}" \
61
		UDEVLIBDIR="${udevdir}" \
62
		DRACUTLIBDIR="/usr/lib/dracut" \
63
		install
57 64

  
58 65
	python_foreach_impl python_doscript bcache-status
59 66

  
60
	udev_dorules 69-bcache.rules
61

  
62
	insinto /etc/initramfs-tools/hooks/bcache
63
	doins initramfs/hook
64

  
65
	# that is what dracut does
66
	insinto /usr/lib/dracut/modules.d/90bcache
67
	doins dracut/module-setup.sh
68

  
69 67
	doman *.8
70 68

  
71 69
	dodoc README
Спасибо!