Add drbd-kmod-9.2.15

This commit is contained in:
2025-11-26 16:27:41 -05:00
parent 7549c8763a
commit 31ee471f71
2 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools linux-mod
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://pkg.linbit.com//downloads/drbd/9/${MY_PN}-${MY_PV}.tar.gz"
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
}