diff options
Diffstat (limited to 'sys-cluster/rdma-core/files')
-rw-r--r-- | sys-cluster/rdma-core/files/ibacm.init | 7 | ||||
-rw-r--r-- | sys-cluster/rdma-core/files/iwpmd.init | 7 | ||||
-rw-r--r-- | sys-cluster/rdma-core/files/optional_pandoc.patch | 54 | ||||
-rw-r--r-- | sys-cluster/rdma-core/files/srpd.init | 20 |
4 files changed, 88 insertions, 0 deletions
diff --git a/sys-cluster/rdma-core/files/ibacm.init b/sys-cluster/rdma-core/files/ibacm.init new file mode 100644 index 000000000000..719accfa95c8 --- /dev/null +++ b/sys-cluster/rdma-core/files/ibacm.init @@ -0,0 +1,7 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/ibacm" +pidfile="/run/${SVCNAME}.pid" +start_stop_daemon_args="-b -m" diff --git a/sys-cluster/rdma-core/files/iwpmd.init b/sys-cluster/rdma-core/files/iwpmd.init new file mode 100644 index 000000000000..b1ffa33fcc8a --- /dev/null +++ b/sys-cluster/rdma-core/files/iwpmd.init @@ -0,0 +1,7 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/iwpmd" +pidfile="/run/${SVCNAME}.pid" +start_stop_daemon_args="-b -m" diff --git a/sys-cluster/rdma-core/files/optional_pandoc.patch b/sys-cluster/rdma-core/files/optional_pandoc.patch new file mode 100644 index 000000000000..4ed0e3a63ef4 --- /dev/null +++ b/sys-cluster/rdma-core/files/optional_pandoc.patch @@ -0,0 +1,54 @@ +The master "CMakeLists.txt" listed "pandoc" as an optional dependency, +but subsequent "make install" fails if "pandoc" is missing. +This patch makes "pandoc" really optional. +diff -ru rdma-core-25.0.orig/CMakeLists.txt rdma-core-25.0/CMakeLists.txt +--- a/CMakeLists.txt 2019-07-26 02:17:21.000000000 +0800 ++++ b/CMakeLists.txt 2019-07-31 00:08:41.485085990 +0800 +@@ -602,11 +602,17 @@ + add_subdirectory(kernel-headers) + # Libraries + add_subdirectory(libibumad) ++if (PANDOC_FOUND) + add_subdirectory(libibumad/man) ++endif() + add_subdirectory(libibverbs) ++if (PANDOC_FOUND) + add_subdirectory(libibverbs/man) ++endif() + add_subdirectory(librdmacm) ++if (PANDOC_FOUND) + add_subdirectory(librdmacm/man) ++endif() + + # Providers + if (HAVE_COHERENT_DMA) +@@ -614,13 +620,19 @@ + add_subdirectory(providers/cxgb3) # NO SPARSE + add_subdirectory(providers/cxgb4) # NO SPARSE + add_subdirectory(providers/efa) ++if (PANDOC_FOUND) + add_subdirectory(providers/efa/man) ++endif() + add_subdirectory(providers/hns) + add_subdirectory(providers/i40iw) # NO SPARSE + add_subdirectory(providers/mlx4) ++if (PANDOC_FOUND) + add_subdirectory(providers/mlx4/man) ++endif() + add_subdirectory(providers/mlx5) ++if (PANDOC_FOUND) + add_subdirectory(providers/mlx5/man) ++endif() + add_subdirectory(providers/mthca) + add_subdirectory(providers/nes) # NO SPARSE + add_subdirectory(providers/ocrdma) +@@ -639,7 +651,9 @@ + add_subdirectory(libibnetdisc/man) + add_subdirectory(infiniband-diags) + add_subdirectory(infiniband-diags/scripts) ++if (PANDOC_FOUND) + add_subdirectory(infiniband-diags/man) ++endif() + + if (CYTHON_EXECUTABLE) + add_subdirectory(pyverbs) diff --git a/sys-cluster/rdma-core/files/srpd.init b/sys-cluster/rdma-core/files/srpd.init new file mode 100644 index 000000000000..07f5ec2d29a7 --- /dev/null +++ b/sys-cluster/rdma-core/files/srpd.init @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/srp_daemon.sh" +pidfile="/run/${SVCNAME}.pid" +start_stop_daemon_args="-b -m" + +rdma_config="/etc/infiniband/openib.conf" +[ -f ${rdma_config} ] && source ${rdma_config} + +[ ${SRP_DEFAULT_TL_RETRY_COUNT} ] && command_args="-l ${SRP_DEFAULT_TL_RETRY_COUNT}" + +start_pre() { + if ! [ -e /sys/module/ib_srp ]; then + eerror "SRP kernel module is not loaded, unable to start SRP daemon" + return 1 + fi + return 0 +} |