--- opensm-3.3.17.ebuild.orig 2014-12-27 03:41:06.000000000 +0300 +++ opensm-3.3.17.ebuild 2014-12-27 13:49:10.345086147 +0300 @@ -13,17 +13,21 @@ DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB" KEYWORDS="~amd64 ~x86 ~amd64-linux" -IUSE="" +IUSE="tools" DEPEND=" sys-infiniband/libibmad:${SLOT} sys-infiniband/libibumad:${SLOT}" RDEPEND="$DEPEND - net-misc/iputils" + tools? ( + net-misc/iputils + net-misc/openssh + )" block_other_ofed_versions src_prepare() { epatch "${FILESDIR}/${P}-norpm.patch" + epatch "${FILESDIR}/${P}-sldd.patch" eautoreconf } @@ -42,6 +46,12 @@ newins "${S}/scripts/opensm.logrotate" opensm # we dont nee this int script rm "${ED}/etc/init.d/opensmd" || die "Dropping of upstream initscript failed" + + if use tools; then + dosbin scripts/sldd.sh + newconfd "${FILESDIR}/sldd.conf.d" sldd + newinitd "${FILESDIR}/sldd.init.d" sldd + fi } pkg_postinst() {