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.

49 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mt-st
  9. PKG_VERSION:=1.1
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=ftp://ftp.ibiblio.org/pub/Linux/system/backup/
  13. PKG_HASH:=945cb4f3d9957dabe768f5941a9148b746396836c797b25f020c84319ba8170d
  14. PKG_MAINTAINER:=Giuseppe Magnotta <giuseppe.magnotta@gmail.com>
  15. PKG_LICENSE:=GPL-2.0
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/mt-st
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=Magnetic tape control tools for Linux SCSI tapes
  21. URL:=http://ftp.ibiblio.org/pub/Linux/system/backup/
  22. endef
  23. define Package/mt-st/description
  24. Includes a mt-like program supporting additional commands using ioctls
  25. specific to the Linux SCSI tape driver (up to kernel 2.6.26), and the program
  26. stinit to define the SCSI tape devices in system startup scripts.
  27. endef
  28. define Build/Compile
  29. $(MAKE) -C $(PKG_BUILD_DIR) \
  30. LDFLAGS="$(TARGET_LDFLAGS)" \
  31. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  32. CC="$(TARGET_CC)"
  33. endef
  34. define Package/mt-st/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mt $(1)/usr/bin/
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/stinit $(1)/usr/bin/
  38. endef
  39. $(eval $(call BuildPackage,mt-st))