distribution/packages/sysutils/open-iscsi/package.mk

33 lines
949 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2012 Yann Cézard (eesprit@free.fr)
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
PKG_NAME="open-iscsi"
PKG_VERSION="bf39941"
PKG_SHA256="92b9f0a27a9a373b14eab7b12f1bfff5d4857695a688dc4434df8e7623354588"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/mikechristie/open-iscsi"
2023-02-24 13:53:43 +00:00
PKG_URL="https://github.com/mikechristie/open-iscsi/archive/${PKG_VERSION}.tar.gz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_INIT="toolchain util-linux"
PKG_LONGDESC="The open-iscsi package allows you to mount iSCSI targets."
PKG_TOOLCHAIN="configure"
PKG_MAKE_OPTS_INIT="user"
pre_configure_init() {
2023-02-24 13:53:43 +00:00
export OPTFLAGS="${CFLAGS} ${LDFLAGS}"
2022-02-05 14:23:32 +00:00
}
configure_init() {
cd utils/open-isns
2023-02-24 13:53:43 +00:00
./configure --host=${TARGET_NAME} \
--build=${HOST_NAME} \
2022-02-05 14:23:32 +00:00
--with-security=no
cd ../..
}
makeinstall_init() {
2023-02-24 13:53:43 +00:00
mkdir -p ${INSTALL}/usr/sbin
cp -P ${PKG_BUILD}/usr/iscsistart ${INSTALL}/usr/sbin
2022-02-05 14:23:32 +00:00
}