mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-cluster/knem: add 1.1.4_p20250126
Adding snapshot as upstream has indicated there will be no more releases Migrated to linux-mod-r1 Updated HOME_PAGE, SRC_URI Bug: https://bugs.gentoo.org/908727 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST knem-1.1.4.tar.gz 336148 BLAKE2B e7273040c563c63e5e5c1a4a6b822a4b34b6fbb7214a7a37b4ff06f23aa47fe80c55ed1781ce85d974ed7e53059b509db98a94baaa7bddfc8860d503cf89869d SHA512 4f142a910ac51a590952aa1f36010fc2a1361162a0d5fd98f47d1c90dedbb293d56bd990bded5d4ec91fcc8df3fa3bcf0d126651b5868c557ffb9f3a588cb948
|
||||
DIST knem-1.1.4_p20250126.tar.xz 63764 BLAKE2B 843fd33ec353c56b73843ebe9e4a5d139925fc37c597c5d81e2f97baad405f07eeb8492e6651cb0fbbd533c600c559bdf3b40f55daabb1a1ecbf7705744a5d1a SHA512 1530c006312e00fcbbb36a8f9490640572c960b7e11d4e30bd2768183bc454f2cc43c58e8e0a18f48bc87c23b094398567c2a84426c8e61b477e1701a4cd2db5
|
||||
|
||||
78
sys-cluster/knem/knem-1.1.4_p20250126.ebuild
Normal file
78
sys-cluster/knem/knem-1.1.4_p20250126.ebuild
Normal file
@@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit autotools linux-mod-r1 toolchain-funcs udev
|
||||
|
||||
DESCRIPTION="High-Performance Intra-Node MPI Communication"
|
||||
HOMEPAGE="https://knem.gitlabpages.inria.fr/"
|
||||
SRC_URI="https://dev.gentoo.org/~mpagano/dist/${PN}/${P}.tar.xz"
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~riscv ~x86"
|
||||
IUSE="debug modules"
|
||||
|
||||
DEPEND="
|
||||
sys-apps/hwloc:=
|
||||
virtual/linux-sources"
|
||||
RDEPEND="
|
||||
sys-apps/hwloc:=
|
||||
sys-apps/kmod[tools]"
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
CONFIG_CHECK="DMA_ENGINE"
|
||||
check_extra_config
|
||||
linux-mod-r1_pkg_setup
|
||||
ARCH="$(tc-arch-kernel)"
|
||||
ABI="${KERNEL_ABI}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed 's:driver/linux::g' -i Makefile.am
|
||||
eautoreconf
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-hwloc \
|
||||
--with-linux="${KERNEL_DIR}" \
|
||||
--with-linux-release=${KV_FULL} \
|
||||
$(use_enable debug)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local modlist=( knem=misc )
|
||||
default
|
||||
if use modules; then
|
||||
cd "${S}/driver/linux"
|
||||
linux-mod-r1_src_compile || die "failed to build driver"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use modules; then
|
||||
cd "${S}/driver/linux"
|
||||
linux-mod-r1_src_install
|
||||
fi
|
||||
|
||||
# Drop funny unneeded stuff
|
||||
rm "${ED}/usr/sbin/knem_local_install" || die
|
||||
rmdir "${ED}/usr/sbin" || die
|
||||
# install udev rules
|
||||
udev_dorules "${FILESDIR}/45-knem.rules"
|
||||
rm "${ED}/etc/10-knem.rules" || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
linux-mod-r1_pkg_postinst
|
||||
udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
||||
Reference in New Issue
Block a user