open-iscsi: update to 2.1.7.

This commit is contained in:
Leah Neukirchen 2022-05-31 15:38:04 +02:00
parent 4385c8e564
commit ea378dd8b9
2 changed files with 18 additions and 9 deletions

1
srcpkgs/open-iscsi-devel Symbolic link
View File

@ -0,0 +1 @@
open-iscsi

View File

@ -1,6 +1,6 @@
# Template file for 'open-iscsi'
pkgname=open-iscsi
version=2.1.6
version=2.1.7
revision=1
conf_files="/etc/iscsi/iscsid.conf /etc/iscsi/initiatorname.iscsi"
build_style=gnu-configure
@ -11,7 +11,7 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="http://www.open-iscsi.com/"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
checksum=b67350d106696779c6bee421c60a64ade2a9dabe247dc4bd44f59c751e22d7f7
checksum=d96761e47a69f8214c5fbd251d844f37961b14c3e437b63a15cc64f5b8cba2f0
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS+=" -D_LINUX_IF_ETHER_H -Wno-error=format -Wno-error=cpp";;
@ -27,18 +27,26 @@ do_configure() {
}
do_build() {
make ${makejobs} CC="$CC" \
OPTFLAGS="$CFLAGS $(pkg-config --cflags libkmod) -DNO_SYSTEMD" \
LDFLAGS="$LDFLAGS $(pkg-config --libs libkmod)" NO_SYSTEMD=1
OPTFLAGS="$CFLAGS $(pkg-config --cflags libkmod) -pthread -DNO_SYSTEMD" \
LDFLAGS="$LDFLAGS $(pkg-config --libs libkmod) -pthread" NO_SYSTEMD=1
}
do_install() {
make install exec_prefix=/usr sbindir=/usr/bin DESTDIR="$DESTDIR"
make install exec_prefix=/usr SBINDIR=/usr/bin RULESDIR=/usr/lib/udev/rules.d DESTDIR="$DESTDIR"
vbin usr/iscsistart
for m in doc/*.8; do
vman $m
done
rm -rf ${DESTDIR}/usr/lib/systemd
true >${DESTDIR}/etc/iscsi/initiatorname.iscsi
vsconf ${DESTDIR}/etc/iscsi/ifaces/iface.example
rm ${DESTDIR}/etc/iscsi/ifaces/iface.example
}
open-iscsi-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}