treewide: refactor to use PKG_BUILD_FLAGS:=no-mips16
[feed/packages.git] / net / tgt / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3
4 include $(TOPDIR)/rules.mk
5
6 PKG_NAME:=tgt
7 PKG_VERSION:=1.0.83
8 PKG_RELEASE:=$(AUTORELEASE)
9
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
13
14 PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
15 PKG_LICENSE:=GPL-2.0-only
16 PKG_CPE_ID:=cpe:/a:zaal:tgt
17
18 PKG_BUILD_FLAGS:=no-mips16
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/tgt
24 SECTION:=net
25 CATEGORY:=Network
26 URL:=https://github.com/fujita/tgt
27 TITLE:=userspace iSCSI target
28 DEPENDS:=+libpthread +libaio
29 endef
30
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.
36 endef
37
38 define Build/Compile
39 $(call Build/Compile/Default,programs)
40 endef
41
42 define Package/tgt/conffiles
43 /etc/config/tgt
44 endef
45
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/
51 endef
52
53 $(eval $(call BuildPackage,tgt))