You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=tgt
  5. PKG_VERSION:=1.0.79
  6. PKG_RELEASE:=2
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_SOURCE_URL:=https://codeload.github.com/fujita/tgt/tar.gz/v$(PKG_VERSION)?
  9. PKG_HASH:=6736d799a202ff665549359859441c6d2b5e3425bffef9ee60ab5a101342a40d
  10. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  11. PKG_LICENSE:=GPL-2.0-only
  12. PKG_CPE_ID:=cpe:/a:zaal:tgt
  13. PKG_USE_MIPS16:=0
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/tgt
  17. SECTION:=net
  18. CATEGORY:=Network
  19. URL:=http://stgt.sourceforge.net/
  20. TITLE:=userspace iSCSI target
  21. DEPENDS:=+libpthread +libaio
  22. endef
  23. define Package/tgt/description
  24. The Linux target framework (tgt) is a user space SCSI target framework
  25. that supports the iSCSI and iSER transport protocols and that also
  26. supports multiple methods for accessing block storage. Tgt consists of
  27. a user-space daemon and user-space tools.
  28. endef
  29. define Build/Compile
  30. $(call Build/Compile/Default,programs)
  31. endef
  32. define Package/tgt/conffiles
  33. /etc/config/tgt
  34. endef
  35. define Package/tgt/install
  36. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin
  37. $(INSTALL_DATA) ./files/tgt.config $(1)/etc/config/tgt
  38. $(INSTALL_BIN) ./files/tgt.init $(1)/etc/init.d/tgt
  39. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tgt{d,adm} $(1)/usr/sbin/
  40. endef
  41. $(eval $(call BuildPackage,tgt))