open-iscsi: fix for musl.

This commit is contained in:
Christian Neukirchen 2015-05-13 19:17:30 +02:00
parent c3a9de65fd
commit e64147872e

View file

@ -1,7 +1,7 @@
# Template file for 'open-iscsi'
pkgname=open-iscsi
version=2.0r873
revision=1
revision=2
wrksrc="${pkgname}-${version/r/-}"
build_style=gnu-makefile
make_install_args="exec_prefix=/usr sbindir=/usr/bin"
@ -14,6 +14,14 @@ distfiles="http://www.open-iscsi.org/bits/${wrksrc}.tar.gz"
checksum=7dd9f2f97da417560349a8da44ea4fcfe98bfd5ef284240a2cc4ff8e88ac7cd9
nocross=yes
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 's/(__compar_fn_t)//' utils/fwparam_ibft/fwparam_ppc.c
}
do_build() {
make ${makejobs} CC="$CC" OPTFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}
post_install() {
vbin usr/iscsistart
for m in doc/*.8; do