Files
Arch-R/packages/sysutils/open-iscsi/package.mk
T

52 lines
1.8 KiB
Makefile
Raw Normal View History

################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2016-01-02 17:29:56 +01:00
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2012 Yann Cézard (eesprit@free.fr)
#
2013-12-21 21:51:48 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
2013-12-21 21:51:48 +01:00
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2013-12-21 21:51:48 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="open-iscsi"
2013-08-08 18:14:20 +03:00
PKG_VERSION="bf39941"
PKG_ARCH="any"
PKG_LICENSE="GPL"
2012-03-27 20:27:30 +02:00
PKG_SITE="https://github.com/mikechristie/open-iscsi"
PKG_URL="https://github.com/mikechristie/open-iscsi/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_INIT="toolchain util-linux"
PKG_SECTION="initramfs/system"
PKG_SHORTDESC="open-iscsi: system utilities for Linux to access iSCSI targets"
PKG_LONGDESC="The open-iscsi package allows you to mount iSCSI targets. This package add support for using iscsi target as root device."
2013-12-17 13:20:36 +01:00
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
2013-12-17 13:20:36 +01:00
PKG_MAKE_OPTS_INIT="user"
pre_configure_init() {
export OPTFLAGS="$CFLAGS $LDFLAGS"
}
configure_init() {
cd utils/open-isns
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--with-security=no
cd ../..
}
makeinstall_init() {
2016-12-04 13:23:47 -08:00
mkdir -p $INSTALL/usr/sbin
cp -P $PKG_BUILD/usr/iscsistart $INSTALL/usr/sbin
2013-12-17 13:20:36 +01:00
}