blob: 595b68eccc710d82824d4122be7c48344ebd0887 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
src_compile() {
append-cppflags -DNO_SYSTEMD
export NO_SYSTEMD=1
export PKG_CONFIG="$(tc-getPKG_CONFIG) --static"
gkmake -C sysdeps V=1
gkmake -C usr/fwparam_ibft V=1
gkmake -C libopeniscsiusr V=1
gkmake -C usr -j1 V=1 iscsistart
}
src_install() {
mkdir "${D}"/bin || die "Failed to create '${D}/bin'!"
cp -a usr/iscsistart "${D}"/bin/ \
|| die "Failed to copy '${S}/usr/iscsistart' to '${D}/bin/'!"
"${STRIP}" --strip-all "${D}"/bin/iscsistart \
|| die "Failed to strip '${D}/bin/iscsistart'!"
}
|