blob: b4f9762814ba773ec3585397ad671c445c904689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
SLOT="0"
LICENSE="|| ( GPL-2 BSD-2 )"
KEYWORDS="~x86 ~amd64"
DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB"
HOMEPAGE="http://www.openfabrics.org/"
SRC_URI="http://www.openfabrics.org/downloads/management/opensm-${PV}.tar.gz"
S="${WORKDIR}/opensm-${PV}"
IUSE=""
DEPEND="sys-cluster/libibmad"
RDEPEND="$DEPEND
sys-cluster/openib-files
net-misc/iputils" # for 'ping'
src_compile() {
econf || die "could not configure"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "install failed"
dodoc AUTHORS README NEWS ChangeLog
doman man/*
newconfd "${S}/scripts/opensm.sysconfig" opensm
newinitd "${FILESDIR}/opensm.init.d" opensm
insinto /etc/logrotate.d
newins "${S}/scripts/opensm.logrotate" opensm
insinto /etc/opensm
doins "${S}/scripts/opensm.conf"
dosbin "${S}/scripts/sldd.sh"
}
pkg_postinst() {
einfo "To automatically configure the infiniband subnet manager on boot,"
einfo "edit /etc/opensm.conf and add opensm to your start-up scripts:"
einfo "\`rc-update add opensm default\`"
}
|