New Package: rdma-core
closes #9004 Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
parent
5ab8e56c12
commit
b0b90987d1
|
@ -0,0 +1 @@
|
|||
rdma-core
|
|
@ -0,0 +1,52 @@
|
|||
# Template file for 'rdma-core'
|
||||
pkgname=rdma-core
|
||||
version=22.1
|
||||
revision=1
|
||||
build_style=cmake
|
||||
hostmakedepends="pkgconf python3"
|
||||
makedepends="libnl3-devel eudev-libudev-devel python3-devel valgrind-devel"
|
||||
short_desc="RDMA core userspace libraries and daemons"
|
||||
maintainer="Rich G <rich@richgannon.net>"
|
||||
license="GPL-2.0-or-later, BSD-2-Clause-FreeBSD"
|
||||
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=d2ba34326c828ebeff26b300761d3c45ffceb76e0a804e9c612d1baf96ad673a
|
||||
|
||||
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}/usr/etc/udev/rules.d/70-persistent-ipoib.rules \
|
||||
${DESTDIR}/usr/lib/udev/rules.d
|
||||
|
||||
# The cmake is bad
|
||||
mv ${DESTDIR}/usr/etc/* ${DESTDIR}/etc/
|
||||
|
||||
# not needed
|
||||
rm -rf ${DESTDIR}/usr/lib/systemd ${DESTDIR}/etc/init.d
|
||||
|
||||
# Fix location of modprobe.d files
|
||||
mv ${DESTDIR}/etc/modprobe.d ${DESTDIR}/usr/lib
|
||||
|
||||
vlicense COPYING.BSD_FB
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue