49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
# Template file for 'rdma-core'
|
|
pkgname=rdma-core
|
|
version=23.3
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DENABLE_VALGRIND=OFF"
|
|
hostmakedepends="pkg-config python3"
|
|
makedepends="libnl3-devel eudev-libudev-devel python3-devel"
|
|
short_desc="RDMA core userspace libraries and daemons"
|
|
maintainer="Rich G <rich@richgannon.net>"
|
|
license="GPL-2.0-or-later, BSD-2-Clause, MIT"
|
|
homepage="https://github.com/linux-rdma/rdma-core"
|
|
distfiles="https://github.com/linux-rdma/rdma-core/releases/download/v${version}/rdma-core-${version}.tar.gz"
|
|
checksum=0afb7aa2654ea914c3b5d12e6e8f2fc3f325b0a52da1febf4f66788bf0b2bb14
|
|
|
|
conf_files="
|
|
/etc/iwpmd.conf
|
|
/etc/srp_daemon.conf
|
|
/etc/rdma/modules/infiniband.conf
|
|
/etc/rdma/modules/iwarp.conf
|
|
/etc/rdma/modules/iwpmd.conf
|
|
/etc/rdma/modules/opa.conf
|
|
/etc/rdma/modules/rdma.conf
|
|
/etc/rdma/modules/roce.conf
|
|
/etc/rdma/modules/srp_daemon.conf"
|
|
|
|
post_install() {
|
|
# Fix path of udev rule
|
|
mv ${DESTDIR}/etc/udev/rules.d/70-persistent-ipoib.rules \
|
|
${DESTDIR}/usr/lib/udev/rules.d
|
|
|
|
# Fix location of modprobe.d files
|
|
mv ${DESTDIR}/etc/modprobe.d ${DESTDIR}/usr/lib
|
|
|
|
vlicense COPYING.BSD_FB
|
|
vlicense COPYING.BSD_MIT
|
|
}
|
|
|
|
rdma-core-devel_package() {
|
|
depends="rdma-core-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|