2014-06-11 05:42:27 +00:00
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=tgt
|
2020-11-09 10:49:59 +00:00
|
|
|
PKG_VERSION:=1.0.80
|
|
|
|
PKG_RELEASE:=1
|
2014-06-11 05:42:27 +00:00
|
|
|
|
2018-08-05 02:41:53 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/fujita/tgt/tar.gz/v$(PKG_VERSION)?
|
2020-11-09 10:49:59 +00:00
|
|
|
PKG_HASH:=e2255482f1a2797c115a6d545c37428b10a4ba6276a2af787da5378fa4e34e75
|
2014-06-11 05:42:27 +00:00
|
|
|
|
2014-06-11 10:05:02 +00:00
|
|
|
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
|
2019-07-13 12:10:24 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
2019-09-12 12:13:21 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:zaal:tgt
|
2014-06-11 05:42:27 +00:00
|
|
|
|
2018-08-05 02:41:53 +00:00
|
|
|
PKG_USE_MIPS16:=0
|
2019-04-08 19:59:58 +00:00
|
|
|
PKG_INSTALL:=1
|
2014-06-11 05:42:27 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/tgt
|
2019-04-08 19:59:58 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
URL:=http://stgt.sourceforge.net/
|
|
|
|
TITLE:=userspace iSCSI target
|
|
|
|
DEPENDS:=+libpthread +libaio
|
2014-06-11 05:42:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tgt/description
|
2019-03-12 13:04:17 +00:00
|
|
|
The Linux target framework (tgt) is a user space SCSI target framework
|
|
|
|
that supports the iSCSI and iSER transport protocols and that also
|
|
|
|
supports multiple methods for accessing block storage. Tgt consists of
|
|
|
|
a user-space daemon and user-space tools.
|
2014-06-11 05:42:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2019-04-08 19:59:58 +00:00
|
|
|
$(call Build/Compile/Default,programs)
|
2014-06-11 05:42:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tgt/conffiles
|
|
|
|
/etc/config/tgt
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/tgt/install
|
2019-03-12 13:04:17 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin
|
2019-03-15 15:07:49 +00:00
|
|
|
$(INSTALL_DATA) ./files/tgt.config $(1)/etc/config/tgt
|
|
|
|
$(INSTALL_BIN) ./files/tgt.init $(1)/etc/init.d/tgt
|
2019-04-08 19:59:58 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tgt{d,adm} $(1)/usr/sbin/
|
2014-06-11 05:42:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,tgt))
|