PATCH_LIST="use-var-run.diff" FILE_LIST= # this is the last commit that doesn't depend on openssl-1.1. SRC_GIT_COMMIT=e432235 SRC_FETCH_METHOD=http SRC_FETCH_PATH="https://github.com/open-iscsi/open-iscsi/archive/${SRC_GIT_COMMIT}.tar.gz" MAKEDEPENDS=( "open-isns-*:::*.h *.so *.so.*" "util-linux-*:::*.h *.so *.so.*" "kmod-*:::*.h *.so *.so.*" "zlib-*:::*.so *.so.*" "openssl-*:::*.h *.so *.so.*" ) function do_config { # Sometimes, broken packages will need LD="$CC" cd iscsiuio if [ -e Makefile ]; then cd .. return 0 fi if [ ! -e iscsiuio/configure ]; then autoreconf --install fi CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL -DNO_SYSTEMD -DLOCK_DIR=\\\"/var/lock/iscsi\\\" -std=gnu99" \ ./configure --without-systemd \ --sbindir=/usr/sbin --build=${FLXHOST} --host=${FLXTARG} \ --prefix=/usr --sysconfdir=/etc cd .. } function do_compile_only { # Note: CFLAGS are being appended to in "usr", so they must be pre-defined for subdir in utils/fwparam_ibft utils/sysdeps libopeniscsiusr usr utils iscsiuio; do CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL -DNO_SYSTEMD -DLOCK_DIR=\\\"/var/lock/iscsi\\\" -std=gnu99" \ LDFLAGS="-lkmod -lz" \ PKG_CONFIG=/bin/true \ LIB_DIR=/usr/lib \ $FLXPMAKE \ -C $subdir \ CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ KSRC= KSUBLEVEL= OSNAME= NO_SYSTEMD=1 \ IPC_CFLAGS="-DNETLINK_ISCSI=8 -D_GNU_SOURCE" IPC_OBJ=netlink.o [ $? == 0 ] || return $? done } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR LIB_DIR=/usr/lib set_default_perm $ROOTDIR }