1 |
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI="7"
|
|
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
inherit autotools
|
7 |
7 |
|
8 |
|
HOMEPAGE="https://github.com/linux-rdma/opensm/"
|
9 |
8 |
DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB"
|
|
9 |
HOMEPAGE="https://github.com/linux-rdma/opensm/"
|
|
10 |
SRC_URI="https://github.com/linux-rdma/opensm/releases/download/${PV}/${P}.tar.gz"
|
10 |
11 |
|
11 |
|
SRC_URI="https://github.com/linux-rdma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
12 |
LICENSE="|| ( GPL-2 BSD-2 )"
|
|
13 |
SLOT="0"
|
12 |
14 |
KEYWORDS="amd64 x86 ~amd64-linux"
|
13 |
15 |
IUSE="selinux tools"
|
14 |
|
SLOT="0"
|
15 |
|
LICENSE="|| ( GPL-2 BSD-2 )"
|
16 |
16 |
|
17 |
17 |
DEPEND="sys-cluster/rdma-core"
|
18 |
18 |
RDEPEND="${DEPEND}
|
... | ... | |
22 |
22 |
virtual/openssh
|
23 |
23 |
)"
|
24 |
24 |
|
25 |
|
PATCHES=( "${FILESDIR}/${PN}-3.3.17-sldd.patch" )
|
|
25 |
PATCHES=( "${FILESDIR}"/${PN}-3.3.17-sldd.patch )
|
26 |
26 |
|
27 |
27 |
src_prepare() {
|
28 |
28 |
default
|
... | ... | |
38 |
38 |
|
39 |
39 |
src_install() {
|
40 |
40 |
default
|
41 |
|
newconfd "${FILESDIR}/opensm.conf.d" opensm
|
42 |
|
newinitd "${FILESDIR}/opensm.init.d.2" opensm
|
|
41 |
|
|
42 |
newconfd "${FILESDIR}"/opensm.conf.d opensm
|
|
43 |
newinitd "${FILESDIR}"/opensm.init.d.2 opensm
|
|
44 |
|
43 |
45 |
insinto /etc/logrotate.d
|
44 |
|
newins "${S}/scripts/opensm.logrotate" opensm
|
|
46 |
newins scripts/opensm.logrotate opensm
|
45 |
47 |
# we dont need this int script
|
46 |
|
rm "${ED}/etc/init.d/opensmd" || die "Dropping of upstream initscript failed"
|
|
48 |
rm "${ED}"/etc/init.d/opensmd || die "Dropping of upstream initscript failed"
|
47 |
49 |
|
48 |
50 |
if use tools; then
|
49 |
51 |
dosbin scripts/sldd.sh
|
50 |
|
newconfd "${FILESDIR}/sldd.conf.d" sldd
|
51 |
|
newinitd "${FILESDIR}/sldd.init.d" sldd
|
|
52 |
newconfd "${FILESDIR}"/sldd.conf.d sldd
|
|
53 |
newinitd "${FILESDIR}"/sldd.init.d sldd
|
52 |
54 |
fi
|
|
55 |
|
|
56 |
find "${ED}" -name '*.la' -delete || die
|
53 |
57 |
}
|
54 |
58 |
|
55 |
59 |
pkg_postinst() {
|