diff options
Diffstat (limited to 'sys-cluster/rdma-core')
-rw-r--r-- | sys-cluster/rdma-core/Manifest | 10 | ||||
-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 | ||||
-rw-r--r-- | sys-cluster/rdma-core/metadata.xml | 16 | ||||
-rw-r--r-- | sys-cluster/rdma-core/rdma-core-24.0.ebuild | 93 | ||||
-rw-r--r-- | sys-cluster/rdma-core/rdma-core-25.0.ebuild | 95 | ||||
-rw-r--r-- | sys-cluster/rdma-core/rdma-core-9999.ebuild | 93 |
9 files changed, 395 insertions, 0 deletions
diff --git a/sys-cluster/rdma-core/Manifest b/sys-cluster/rdma-core/Manifest new file mode 100644 index 000000000000..a2bc01f1093e --- /dev/null +++ b/sys-cluster/rdma-core/Manifest @@ -0,0 +1,10 @@ +AUX ibacm.init 211 BLAKE2B 4f3b2ffb7cbc7f42b14dad5c02bce698feaf079ff75a2f7a7c9d7d0165a92656e8622fa47ecefe310e4283e5b14e70a386aabcf0fcd85403d5c9f16ddf4e9c4f SHA512 fc99aafb0952e4a8d6cf740df58c623fc400f89f60c7e78d3af7fb9067aaf36dc976d82db2c76120fb91ed3340591d24b2df099b44dccec0c136b599e9f12d7d +AUX iwpmd.init 211 BLAKE2B ce37edeceae812b999cbcd15b9c9cae55125de0d94ac6983e953117a265c444ab4f9b7a09053c4303c260f1df59cc916ff7f1a89ca6f937a42c2cace6a2a88b4 SHA512 e08d8521d74aa4e266e11833750682974bede45e2b7c42ee3d4ba7cee5695f6e7f5c3c5963b57186f6f669a752faf4c5f4c51f92065425ff6ce859be9affdb07 +AUX optional_pandoc.patch 1611 BLAKE2B 5f6c4f8ebe1379cf733b4b1829f39bfc34ff2715cd3be172a609518560c97adbfeec15a648d3205a3016f24a0e99db4be6cb6602672046b96a01c998fd314b6f SHA512 b9c1be47aa530231d0becf6bd313d881262f5360985206371daf96377f657f4aa1b52227ae371e21154edcac48ccf6b1433f84b689cd373b02b844782654c2c2 +AUX srpd.init 546 BLAKE2B 40a03607fd4a85b821a71b98373b5c59f721bb2da78afbede8299ae6eedd402776c4ee3b4965c7df0b8b1816969a715351a1e659e4a26abc99808e93ef69f6c9 SHA512 14c1dac4581943855c362d7a37ef31a87be458123dd890bdcfb75c35b71b0a6e789a819c768ea352b3846af29ab5c3b1872cbe27a2e127b8fc8c93a835428190 +DIST rdma-core-24.0.tar.gz 1219485 BLAKE2B 400076305ca634a14d8f46df3477f9e3e753b95840237a217cfffe1a78e93ee90994e628f2a0693bde588ce15965df0014acb55bc92c36e3c45011cc69e9898a SHA512 0ef2b2b4250a1738adec964911a286f60e2310472c943dac1be45c70974a8bd1f32ee96013bff9e492132403af810aee1350d404a87ae7671731f7a5bd80c655 +DIST rdma-core-25.0.tar.gz 1494005 BLAKE2B 406926ae57ae4914a77c82025906270bbc45632ed1e0ecb44b1662d797066bf27275c8b4c4bee40795880bdb4ed06f8f9d3714cfffc64132c00395328ee0527f SHA512 b2c6eaf16f89fb913e35b0eb602f60e8bf45979673597c34006ed78c2e671cf1e50b1cc0752740dc474a58fc94eb0c3f66175183e6b903605ff1512469ceef38 +EBUILD rdma-core-24.0.ebuild 2394 BLAKE2B 41d23a8da59916065bba0a78ea358e2557f9f81ae1e3fe2ae430e1e98758d015ed72f8da5266dba850933bdcdc3b7ecc17889334480126604e486e50aaa7967c SHA512 2867f122ef0466090ec1fb8a199300f7c5b52fe68a2b57692c96583ea9d5d669d0df6cd0b2c5436d0085cc2a07a0412bce72fb66e2b6e2f4340c020f8a8abecc +EBUILD rdma-core-25.0.ebuild 2443 BLAKE2B 8544079e018f49322806151b8e90738b565c02ebed4982954c558fe982d46f06b981258a9b1d7f824e3a500cd035f98d1bba50dabbf12866ade7097978adcd5a SHA512 2e7e2d490c870768ecbece72858bff12a732d72ba6da99ce5ff247712d199583fbdcae7699b544c62053f8d679aecb243bf4e4f02d364e3cd4d3f219c0832cd5 +EBUILD rdma-core-9999.ebuild 2390 BLAKE2B 77f3af5fe37f08c92427e3e9d546ff3d4577d8c754274ab77633d93a5a44edca95e883a7d089cfb482f0cfaa9f375a65ac79f7bf77d285be4951cf7b9fdab4ec SHA512 e4df896afa8585fa3e58f55e1f7da6470ab08e7a8d3e5b36f29fb77b3d01cadda2d51e126a845bff76a51101d9211bcd517258813d4205a778c1cbd802b699a9 +MISC metadata.xml 559 BLAKE2B 1526777511ab5118d4de73361959107221858659ebbc60f52eb09b45d0798d969f847e4f157501ed6e8c85c2cee1c93d0b26989b357141bba45af946e2e5b0a1 SHA512 5d69acf3d0a323c0d2ee66971fd058c6c0ebf59e4fac0d4777b15bfcc7db8f515b67e6059d204346404ce3b26cdd77c2bea21e1132f418498fe1523eb16dccbb 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 +} diff --git a/sys-cluster/rdma-core/metadata.xml b/sys-cluster/rdma-core/metadata.xml new file mode 100644 index 000000000000..25b5861a7599 --- /dev/null +++ b/sys-cluster/rdma-core/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zlogene@gentoo.org</email> + <name>Mikle Kolyada</name> + </maintainer> + <use> + <flag name="neigh">Enable iwpmd support</flag> + <flag name="python">Enable pyverbs support</flag> + <flag name="valgrind">Enable valgrind notations</flag> + </use> + <upstream> + <remote-id type="github">linux-rdma/rdma-core</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-cluster/rdma-core/rdma-core-24.0.ebuild b/sys-cluster/rdma-core/rdma-core-24.0.ebuild new file mode 100644 index 000000000000..f50ad59a5b0b --- /dev/null +++ b/sys-cluster/rdma-core/rdma-core-24.0.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit cmake-utils python-single-r1 udev systemd + +DESCRIPTION="Userspace components for the Linux Kernel's drivers/infiniband subsystem" +HOMEPAGE="https://github.com/linux-rdma/rdma-core" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/linux-rdma/rdma-core" +else + SRC_URI="https://github.com/linux-rdma/rdma-core/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="|| ( GPL-2 ( CC0-1.0 MIT BSD BSD-with-attribution ) )" +SLOT="0" +IUSE="neigh python static-libs systemd valgrind" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +COMMON_DEPEND=" + virtual/libudev:= + neigh? ( dev-libs/libnl:3 ) + systemd? ( sys-apps/systemd:= ) + valgrind? ( dev-util/valgrind ) + python? ( ${PYTHON_DEPS} )" + +DEPEND="${COMMON_DEPEND} + python? ( dev-python/cython[${PYTHON_USEDEP}] )" + +RDEPEND="${COMMON_DEPEND} + !sys-fabric/infiniband-diags + !sys-fabric/libibverbs + !sys-fabric/librdmacm + !sys-fabric/libibumad + !sys-fabric/ibacm + !sys-fabric/libibmad + !sys-fabric/srptools + !sys-fabric/infinipath-psm + !sys-fabric/libcxgb3 + !sys-fabric/libcxgb4 + !sys-fabric/libmthca + !sys-fabric/libmlx4 + !sys-fabric/libmlx5 + !sys-fabric/libocrdma + !sys-fabric/libnes" + +BDEPEND="virtual/pkgconfig" + +pkg_setup() { + python-single-r1_pkg_setup + +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_SYSCONFDIR=/etc + -DCMAKE_INSTALL_FULL_RUNDIR=/run + -DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib + -DCMAKE_INSTALL_UDEV_RULESDIR="$(get_udevdir)"/rules.d + -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)" + -DCMAKE_DISABLE_FIND_PACKAGE_pandoc=yes + $(ver_test -ge 25 && echo -DCMAKE_DISABLE_FIND_PACKAGE_rst2man=yes) + -DCMAKE_DISABLE_FIND_PACKAGE_Systemd="$(usex systemd no yes)" + -DENABLE_VALGRIND="$(usex valgrind)" + -DENABLE_RESOLVE_NEIGH="$(usex neigh)" + -DENABLE_STATIC="$(usex static-libs)" + ) + + if use python; then + mycmakeargs+=( -DNO_PYVERBS=OFF ) + else + mycmakeargs+=( -DNO_PYVERBS=ON ) + fi + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + udev_dorules "${D}"/etc/udev/rules.d/70-persistent-ipoib.rules + rm -r "${D}"/etc/{udev,init.d} || die + + newinitd "${FILESDIR}"/ibacm.init ibacm + newinitd "${FILESDIR}"/iwpmd.init iwpmd + newinitd "${FILESDIR}"/srpd.init srpd +} diff --git a/sys-cluster/rdma-core/rdma-core-25.0.ebuild b/sys-cluster/rdma-core/rdma-core-25.0.ebuild new file mode 100644 index 000000000000..c2d102716c98 --- /dev/null +++ b/sys-cluster/rdma-core/rdma-core-25.0.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit cmake-utils python-single-r1 udev systemd + +DESCRIPTION="Userspace components for the Linux Kernel's drivers/infiniband subsystem" +HOMEPAGE="https://github.com/linux-rdma/rdma-core" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/linux-rdma/rdma-core" +else + SRC_URI="https://github.com/linux-rdma/rdma-core/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="|| ( GPL-2 ( CC0-1.0 MIT BSD BSD-with-attribution ) )" +SLOT="0" +IUSE="neigh python static-libs systemd valgrind" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +COMMON_DEPEND=" + virtual/libudev:= + neigh? ( dev-libs/libnl:3 ) + systemd? ( sys-apps/systemd:= ) + valgrind? ( dev-util/valgrind ) + python? ( ${PYTHON_DEPS} )" + +DEPEND="${COMMON_DEPEND} + python? ( dev-python/cython[${PYTHON_USEDEP}] )" + +RDEPEND="${COMMON_DEPEND} + !sys-fabric/infiniband-diags + !sys-fabric/libibverbs + !sys-fabric/librdmacm + !sys-fabric/libibumad + !sys-fabric/ibacm + !sys-fabric/libibmad + !sys-fabric/srptools + !sys-fabric/infinipath-psm + !sys-fabric/libcxgb3 + !sys-fabric/libcxgb4 + !sys-fabric/libmthca + !sys-fabric/libmlx4 + !sys-fabric/libmlx5 + !sys-fabric/libocrdma + !sys-fabric/libnes" + +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/optional_pandoc.patch ) + +pkg_setup() { + python-single-r1_pkg_setup + +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_SYSCONFDIR=/etc + -DCMAKE_INSTALL_FULL_RUNDIR=/run + -DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib + -DCMAKE_INSTALL_UDEV_RULESDIR="$(get_udevdir)"/rules.d + -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)" + -DCMAKE_DISABLE_FIND_PACKAGE_pandoc=yes + $(ver_test -ge 25 && echo -DCMAKE_DISABLE_FIND_PACKAGE_rst2man=yes) + -DCMAKE_DISABLE_FIND_PACKAGE_Systemd="$(usex systemd no yes)" + -DENABLE_VALGRIND="$(usex valgrind)" + -DENABLE_RESOLVE_NEIGH="$(usex neigh)" + -DENABLE_STATIC="$(usex static-libs)" + ) + + if use python; then + mycmakeargs+=( -DNO_PYVERBS=OFF ) + else + mycmakeargs+=( -DNO_PYVERBS=ON ) + fi + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + udev_dorules "${D}"/etc/udev/rules.d/70-persistent-ipoib.rules + rm -r "${D}"/etc/{udev,init.d} || die + + newinitd "${FILESDIR}"/ibacm.init ibacm + newinitd "${FILESDIR}"/iwpmd.init iwpmd + newinitd "${FILESDIR}"/srpd.init srpd +} diff --git a/sys-cluster/rdma-core/rdma-core-9999.ebuild b/sys-cluster/rdma-core/rdma-core-9999.ebuild new file mode 100644 index 000000000000..69def0d58b57 --- /dev/null +++ b/sys-cluster/rdma-core/rdma-core-9999.ebuild @@ -0,0 +1,93 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit cmake-utils python-single-r1 udev systemd + +DESCRIPTION="Userspace components for the Linux Kernel's drivers/infiniband subsystem" +HOMEPAGE="https://github.com/linux-rdma/rdma-core" + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/linux-rdma/rdma-core" +else + SRC_URI="https://github.com/linux-rdma/rdma-core/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="|| ( GPL-2 ( CC0-1.0 MIT BSD BSD-with-attribution ) )" +SLOT="0" +IUSE="neigh python static-libs systemd valgrind" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +COMMON_DEPEND=" + virtual/libudev:= + neigh? ( dev-libs/libnl:3 ) + systemd? ( sys-apps/systemd:= ) + valgrind? ( dev-util/valgrind ) + python? ( ${PYTHON_DEPS} )" + +DEPEND="${COMMON_DEPEND} + python? ( dev-python/cython[${PYTHON_USEDEP}] )" + +RDEPEND="${COMMON_DEPEND} + !!sys-fabric/infiniband-diags + !sys-fabric/libibverbs + !sys-fabric/librdmacm + !sys-fabric/libibumad + !sys-fabric/ibacm + !sys-fabric/libibmad + !sys-fabric/srptools + !sys-fabric/infinipath-psm + !sys-fabric/libcxgb3 + !sys-fabric/libcxgb4 + !sys-fabric/libmthca + !sys-fabric/libmlx4 + !sys-fabric/libmlx5 + !sys-fabric/libocrdma + !sys-fabric/libnes" + +BDEPEND="virtual/pkgconfig" + +pkg_setup() { + python-single-r1_pkg_setup + +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_SYSCONFDIR=/etc + -DCMAKE_INSTALL_FULL_RUNDIR=/run + -DCMAKE_INSTALL_SHAREDSTATEDIR=/var/lib + -DCMAKE_INSTALL_UDEV_RULESDIR="$(get_udevdir)"/rules.d + -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR="$(systemd_get_systemunitdir)" + -DCMAKE_DISABLE_FIND_PACKAGE_pandoc=yes + $(ver_test -ge 25 && echo -DCMAKE_DISABLE_FIND_PACKAGE_rst2man=yes) + -DCMAKE_DISABLE_FIND_PACKAGE_Systemd="$(usex systemd no yes)" + -DENABLE_VALGRIND="$(usex valgrind)" + -DENABLE_RESOLVE_NEIGH="$(usex neigh)" + -DENABLE_STATIC="$(usex static-libs)" + ) + + if use python; then + mycmakeargs+=( -DNO_PYVERBS=OFF ) + else + mycmakeargs+=( -DNO_PYVERBS=ON ) + fi + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + udev_dorules "${D}"/etc/udev/rules.d/70-persistent-ipoib.rules + rm -r "${D}"/etc/{udev,init.d} || die + + newinitd "${FILESDIR}"/ibacm.init ibacm + newinitd "${FILESDIR}"/iwpmd.init iwpmd + newinitd "${FILESDIR}"/srpd.init srpd +} |