mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
open-iscsi: update to 2.0.874.
Fix cross.
This commit is contained in:
parent
52075f5929
commit
396df79cfa
1 changed files with 15 additions and 5 deletions
|
@ -1,21 +1,31 @@
|
||||||
# Template file for 'open-iscsi'
|
# Template file for 'open-iscsi'
|
||||||
pkgname=open-iscsi
|
pkgname=open-iscsi
|
||||||
version=2.0.873
|
version=2.0.874
|
||||||
revision=4
|
revision=1
|
||||||
conf_files="/etc/iscsi/iscsid.conf /etc/iscsi/initiatorname.iscsi"
|
conf_files="/etc/iscsi/iscsid.conf /etc/iscsi/initiatorname.iscsi"
|
||||||
|
build_style=gnu-configure
|
||||||
|
hostmakedepends="automake libtool"
|
||||||
|
makedepends="libmount-devel libisns-devel"
|
||||||
short_desc="Open-iSCSI userland tools"
|
short_desc="Open-iSCSI userland tools"
|
||||||
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://www.open-iscsi.com/"
|
homepage="http://www.open-iscsi.com/"
|
||||||
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
|
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
|
||||||
checksum=c51f6fad45afb7c059f10776de721c6d5fd0336ff927daacea6a7e0a3ad02f18
|
checksum=d0071bf00fdf6591cd6ea5caf89fa57ada03d263da1f80f17deff76acf7419e1
|
||||||
nocross=yes
|
#nocross=yes
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
*-musl) CFLAGS+="-D_LINUX_IF_ETHER_H";;
|
||||||
|
esac
|
||||||
post_extract() {
|
post_extract() {
|
||||||
sed -i '1i#include <sys/time.h>' utils/open-isns/isns.h
|
|
||||||
sed -i '1i#include <fcntl.h>' usr/idbm.c
|
sed -i '1i#include <fcntl.h>' usr/idbm.c
|
||||||
sed -i 's/(__compar_fn_t)//' utils/fwparam_ibft/fwparam_ppc.c
|
sed -i 's/(__compar_fn_t)//' utils/fwparam_ibft/fwparam_ppc.c
|
||||||
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' utils/Makefile usr/Makefile
|
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' utils/Makefile usr/Makefile
|
||||||
|
sed -i 's,<linux/if_ether.h>,<netinet/if_ether.h>,g' usr/iscsi_net_util.c
|
||||||
|
sed -i '1i#include <netinet/if_ether.h>' iscsiuio/src/unix/libs/bnx2x.c
|
||||||
|
}
|
||||||
|
do_configure() {
|
||||||
|
( cd iscsiuio && autoreconf -fi && ./configure ${configure_args} )
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
make ${makejobs} CC="$CC" OPTFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
|
make ${makejobs} CC="$CC" OPTFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
|
||||||
|
|
Loading…
Add table
Reference in a new issue