void-packages/srcpkgs/rdma-core/template

63 lines
1.7 KiB
Bash

# Template file for 'rdma-core'
pkgname=rdma-core
version=44.0
revision=1
build_style=cmake
configure_args="-DENABLE_VALGRIND=OFF
-DCMAKE_INSTALL_MODPROBEDIR=/usr/lib/modprobe.d"
hostmakedepends="pkg-config python3 $(vopt_if docs 'pandoc python3-docutils')"
makedepends="libnl3-devel eudev-libudev-devel python3-devel"
short_desc="RDMA core userspace libraries and daemons"
maintainer="Orphaned <orphan@voidlinux.org>"
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=25d6601e60f27bbcd75e07fe340400cb80e6c3c487679700535385cfc9d9858b
build_options="docs"
desc_option_docs="Enable documentation"
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"
case "$XBPS_MACHINE" in
x86_64*|i686*|ppc64le*|ppc64) build_options_default="docs" ;;
esac
post_install() {
# not needed
rm -rf ${DESTDIR}/usr/lib/systemd ${DESTDIR}/etc/init.d
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"
}
}
libibmad_package() {
depends="rdma-core>=${version}_${revision}"
short_desc+=" (transitional dummy package)"
build_style=meta
}
libibmad-devel_package() {
depends="rdma-core-devel>=${version}_${revision}"
short_desc+=" - development files (transitional dummy package)"
build_style=meta
}