Diff bees-0.10 with a bees-9999

/usr/portage/sys-fs/bees/bees-9999.ebuild 2025-02-03 17:39:35.938678022 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
12 12
	inherit git-r3
13 13
	EGIT_REPO_URI="https://github.com/Zygo/bees.git"
14 14
else
15
	SRC_URI="https://github.com/Zygo/bees/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16
	KEYWORDS="amd64 ~arm64"
15
	MY_PV=${PV/_/-}
16
	MY_P=${P/_/-}
17
	S=${WORKDIR}/${MY_P}
18

  
19
	SRC_URI="https://github.com/Zygo/bees/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
20
	KEYWORDS="~amd64 ~arm64"
17 21
fi
18 22

  
19 23
LICENSE="GPL-3"
20 24
SLOT="0"
21
IUSE=""
22 25

  
23 26
DEPEND="
24 27
	>=sys-apps/util-linux-2.30.2
......
29 32
CONFIG_CHECK="~BTRFS_FS"
30 33
ERROR_BTRFS_FS="CONFIG_BTRFS_FS: bees does currently only work with btrfs"
31 34

  
32
PATCHES=(
33
	"${FILESDIR}/0001-HACK-crucible-Work-around-kernel-memory-fragmentatio.patch"
34
)
35

  
36 35
pkg_pretend() {
37 36
	if [[ ${MERGE_TYPE} != buildonly ]]; then
38 37
		if kernel_is -lt 4 11; then
......
80 79
				ewarn
81 80
			fi
82 81
		fi
82
		if kernel_is -lt 5.7; then
83
			ewarn "WARNING: Kernel versions lower than 5.7 are no longer really supported by"
84
			ewarn "bees. While there should be no unexpected data loss, you may experience"
85
			ewarn "severe slowdowns or even system lockups."
86
			ewarn
87
		fi
88
	fi
89
}
83 90

  
91
pkg_postinst() {
92
	if [[ ${MERGE_TYPE} != buildonly ]]; then
84 93
		elog "Bees recommends running the latest current kernel for performance and"
85 94
		elog "reliability reasons, see README.md."
95
		elog
96
		elog "NEWS: bees now defaults to a much improved extent-based scanner. It is compatible"
97
		elog "with your existing state database in \`\$BEESHOME\` but it may start over from the"
98
		elog "beginning. However, it will keep the state of the old scanner, so you can switch"
99
		elog "back and forth. To actually use the new scanner, use scan mode 4 or remove the"
100
		elog "scan mode parameter from your init script. Requires kernel 4.14 or higher!"
86 101
	fi
87 102
}
88 103

  
......
101 116
		DEFAULT_MAKE_TARGET=all
102 117
	EOF
103 118
	if [[ ${PV} != "9999" ]] ; then
104
		echo BEES_VERSION=v${PV} >>localconf || die
119
		echo BEES_VERSION=v${MY_PV} >>localconf || die
105 120
	fi
106 121
}
107 122

  
Thank you!