Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 774735 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-fabric/opensm/opensm-3.3.23-r1.ebuild (-5 / +18 lines)
Lines 3-16 Link Here
3
3
4
EAPI="7"
4
EAPI="7"
5
5
6
inherit autotools eutils
6
inherit autotools eutils systemd
7
7
8
HOMEPAGE="https://github.com/linux-rdma/opensm/"
8
HOMEPAGE="https://github.com/linux-rdma/opensm/"
9
DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB"
9
DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB"
10
10
11
SRC_URI="https://github.com/linux-rdma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
11
SRC_URI="https://github.com/linux-rdma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
12
KEYWORDS="~amd64 ~x86 ~amd64-linux"
12
KEYWORDS="~amd64 ~x86 ~amd64-linux"
13
IUSE="tools"
13
IUSE="tools systemd"
14
SLOT="0"
14
SLOT="0"
15
LICENSE="|| ( GPL-2 BSD-2 )"
15
LICENSE="|| ( GPL-2 BSD-2 )"
16
16
Lines 19-27 Link Here
19
	 tools? (
19
	 tools? (
20
		net-misc/iputils
20
		net-misc/iputils
21
		net-misc/openssh
21
		net-misc/openssh
22
	)"
22
	)
23
	systemd? ( >=sys-apps/systemd-234 )"
23
24
24
PATCHES=( "${FILESDIR}/${PN}-3.3.17-sldd.patch" )
25
PATCHES=( "${FILESDIR}/${PN}-3.3.17-sldd.patch"
26
	  "${FILESDIR}/${P}-norpm.patch" )
25
27
26
src_prepare() {
28
src_prepare() {
27
	default
29
	default
Lines 39-44 Link Here
39
	default
41
	default
40
	newconfd "${FILESDIR}/opensm.conf.d" opensm
42
	newconfd "${FILESDIR}/opensm.conf.d" opensm
41
	newinitd "${FILESDIR}/opensm.init.d.2" opensm
43
	newinitd "${FILESDIR}/opensm.init.d.2" opensm
44
	systemd_newunit "${FILESDIR}/opensm.service" opensm.service
45
	dosbin "${FILESDIR}/opensm.launch"
46
	fperms 755 /usr/sbin/opensm.launch
42
	insinto /etc/logrotate.d
47
	insinto /etc/logrotate.d
43
	newins "${S}/scripts/opensm.logrotate" opensm
48
	newins "${S}/scripts/opensm.logrotate" opensm
44
	# we dont need this int script
49
	# we dont need this int script
Lines 48-58 Link Here
48
		dosbin scripts/sldd.sh
53
		dosbin scripts/sldd.sh
49
		newconfd "${FILESDIR}/sldd.conf.d" sldd
54
		newconfd "${FILESDIR}/sldd.conf.d" sldd
50
		newinitd "${FILESDIR}/sldd.init.d" sldd
55
		newinitd "${FILESDIR}/sldd.init.d" sldd
56
		systemd_newunit "${FILESDIR}/sldd.service" sldd.service
51
	fi
57
	fi
58
	
59
	
60
	# keepdir /var/empty/dev
52
}
61
}
53
62
54
pkg_postinst() {
63
pkg_postinst() {
55
	einfo "To automatically configure the infiniband subnet manager on boot,"
64
	einfo "To automatically configure the infiniband subnet manager on boot,"
56
	einfo "edit /etc/opensm.conf and add opensm to your start-up scripts:"
65
	einfo "edit /etc/opensm.conf and add opensm to your start-up scripts:"
57
	einfo "\`rc-update add opensm default\`"
66
	if use systemd; then
67
		einfo "\`systemctl enable opensm.service\`"
68
	else
69
		einfo "\`rc-update add opensm default\`"
70
	fi
58
}
71
}

Return to bug 774735