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.80
  6. PKG_RELEASE:=1
  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:=e2255482f1a2797c115a6d545c37428b10a4ba6276a2af787da5378fa4e34e75
  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))