Diff drbd-utils-9.15.1-r2 with a drbd-utils-9.19.1

/usr/portage/sys-cluster/drbd-utils/drbd-utils-9.19.1.ebuild 2023-10-09 14:52:35.456368501 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=7
5 5

  
6
inherit autotools bash-completion-r1 tmpfiles udev
6
inherit autotools bash-completion-r1 linux-info tmpfiles udev
7 7

  
8 8
DESCRIPTION="mirror/replicate block-devices across a network-connection"
9
SRC_URI="https://www.linbit.com/downloads/drbd/utils/${P}.tar.gz"
9
SRC_URI="https://pkg.linbit.com/downloads/drbd/utils/${P}.tar.gz"
10 10
HOMEPAGE="https://www.linbit.com/drbd"
11 11

  
12 12
LICENSE="GPL-2"
......
20 20
RDEPEND="${DEPEND}"
21 21
BDEPEND="sys-devel/flex"
22 22

  
23
DOCS=( ChangeLog README.md )
24

  
23 25
PATCHES=(
24
	"${FILESDIR}"/${P}-run-lock.patch
25
	"${FILESDIR}"/${P}-sysmacros.patch
26
	"${FILESDIR}"/${PN}-9.15.1-run-lock.patch
27
	"${FILESDIR}"/${PN}-9.15.1-sysmacros.patch
28
	"${FILESDIR}"/${PN}-9.19.1-configure-posix.diff
26 29
)
27 30

  
28 31
S="${WORKDIR}/${P/_/}"
29 32

  
33
pkg_setup() {
34
	# verify that CONFIG_BLK_DEV_DRBD is enabled in the kernel or
35
	# warn otherwise
36
	linux-info_pkg_setup
37
	elog "Checking for suitable kernel configuration options..."
38
	if linux_config_exists; then
39
		if ! linux_chkconfig_present BLK_DEV_DRBD; then
40
			ewarn "CONFIG_BLK_DEV_DRBD: is not set when it should be."
41
			elog "Please check to make sure these options are set correctly."
42
		fi
43
	else
44
		ewarn "Could not check if CONFIG_BLK_DEV_DRBD is enabled in your kernel."
45
		elog "Please check to make sure these options are set correctly."
46
	fi
47
}
48

  
30 49
src_prepare() {
31 50
	# respect LDFLAGS, #453442
32 51
	sed -e "s/\$(CC) -o/\$(CC) \$(LDFLAGS) -o/" \
......
84 103
	keepdir /var/lib/drbd
85 104
	rm -r "${ED}"/var/run || die
86 105

  
106
	newtmpfiles scripts/drbd.tmpfiles.conf drbd.conf
107

  
87 108
	# https://bugs.gentoo.org/698304
88 109
	dodir lib/drbd
89 110
	local i
90 111
	for i in drbdadm-83 drbdadm-84 drbdsetup-83 drbdsetup-84; do
91 112
		dosym ../../lib64/drbd/"${i}" lib/drbd/"${i}"
92 113
	done
114

  
115
	einstalldocs
93 116
}
94 117

  
95 118
pkg_postinst() {
......
105 128
	einfo "man 8 drbddisk"
106 129
	einfo "man 8 drbdmeta"
107 130
	einfo
108
	elog "Remember to enable drbd support in kernel."
109 131
}
Thank you!