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.

52 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:=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:=6736d799a202ff665549359859441c6d2b5e3425bffef9ee60ab5a101342a40d
  10. PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
  11. PKG_LICENSE:=GPL-2.0-only
  12. PKG_USE_MIPS16:=0
  13. PKG_INSTALL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/tgt
  16. SECTION:=net
  17. CATEGORY:=Network
  18. URL:=http://stgt.sourceforge.net/
  19. TITLE:=userspace iSCSI target
  20. DEPENDS:=+libpthread +libaio
  21. endef
  22. define Package/tgt/description
  23. The Linux target framework (tgt) is a user space SCSI target framework
  24. that supports the iSCSI and iSER transport protocols and that also
  25. supports multiple methods for accessing block storage. Tgt consists of
  26. a user-space daemon and user-space tools.
  27. endef
  28. define Build/Compile
  29. $(call Build/Compile/Default,programs)
  30. endef
  31. define Package/tgt/conffiles
  32. /etc/config/tgt
  33. endef
  34. define Package/tgt/install
  35. $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin
  36. $(INSTALL_DATA) ./files/tgt.config $(1)/etc/config/tgt
  37. $(INSTALL_BIN) ./files/tgt.init $(1)/etc/init.d/tgt
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tgt{d,adm} $(1)/usr/sbin/
  39. endef
  40. $(eval $(call BuildPackage,tgt))