Update drbd kernel module
This commit is contained in:
57
sys-cluster/drbd-kmod/drbd-kmod-9.1.12-r1.ebuild
Normal file
57
sys-cluster/drbd-kmod/drbd-kmod-9.1.12-r1.ebuild
Normal file
@@ -0,0 +1,57 @@
|
||||
# Copyright 2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools linux-mod git-r3
|
||||
|
||||
DESCRIPTION="DRBD kernel module"
|
||||
HOMEPAGE="https://www.linbit.com"
|
||||
|
||||
# Package name lacks the "r" for the release
|
||||
MY_PN="${PN/-kmod/}"
|
||||
MY_PV="${PVR/-r/-}"
|
||||
#SRC_URI="https://www.linbit.com/downloads/drbd/9.0/${MY_PN}-${MY_PV}.tar.gz"
|
||||
EGIT_REPO_URI="https://github.com/LINBIT/drbd.git"
|
||||
#EGIT_COMMIT="${MY_PN}-${MY_PV}"
|
||||
EGIT_COMMIT="27b2cdb8bef8840eae8c76a9c86e4223cef07c80"
|
||||
#S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
dev-util/coccinelle[python]"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
convert_to_m Makefile
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
set_arch_to_kernel
|
||||
get_version
|
||||
|
||||
myemakeargs=(
|
||||
KVER="${KV_FULL}"
|
||||
KDIR="${KERNEL_DIR}"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" module
|
||||
}
|
||||
|
||||
src_install() {
|
||||
set_arch_to_kernel
|
||||
|
||||
myemakeargs=(
|
||||
KVER="${KV_FULL}"
|
||||
KDIR="${KERNEL_DIR}"
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install
|
||||
}
|
||||
Reference in New Issue
Block a user