1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
4 include $(TOPDIR
)/rules.mk
8 PKG_RELEASE
:=$(AUTORELEASE
)
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_SOURCE_URL
:=https
://codeload.github.com
/fujita
/tgt
/tar.gz
/v
$(PKG_VERSION
)?
12 PKG_HASH
:=a9ddb0ff32d3396416df9639f9f398d14a6051f505b5772d7d196df99df8b8da
14 PKG_MAINTAINER
:=Maxim Storchak
<m.storchak@gmail.com
>
15 PKG_LICENSE
:=GPL-2.0
-only
16 PKG_CPE_ID
:=cpe
:/a
:zaal
:tgt
18 PKG_BUILD_FLAGS
:=no-mips16
21 include $(INCLUDE_DIR
)/package.mk
26 URL
:=https
://github.com
/fujita
/tgt
27 TITLE
:=userspace iSCSI target
28 DEPENDS
:=+libpthread
+libaio
31 define Package
/tgt
/description
32 The Linux target framework
(tgt
) is a user space SCSI target framework
33 that supports the iSCSI and iSER transport protocols and that also
34 supports multiple methods for accessing block storage. Tgt consists of
35 user-space daemon and tools.
39 $(call Build
/Compile
/Default
,programs
)
42 define Package
/tgt
/conffiles
46 define Package
/tgt
/install
47 $(INSTALL_DIR
) $(1)/etc
/config
$(1)/etc
/init.d
$(1)/usr
/sbin
48 $(INSTALL_DATA
) .
/files
/tgt.config
$(1)/etc
/config
/tgt
49 $(INSTALL_BIN
) .
/files
/tgt.init
$(1)/etc
/init.d
/tgt
50 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/tgt
{d
,adm
} $(1)/usr
/sbin
/
53 $(eval
$(call BuildPackage
,tgt
))