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.

51 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:=1
  11. PKG_SOURCE_SUBDIR:=$(PKG_NAME)
  12. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
  14. PKG_SOURCE_URL:=ftp://ftp.ibiblio.org/pub/Linux/system/backup/
  15. PKG_MD5SUM:=fdd5f5ec673c9f630a102ceff7612774
  16. PKG_LICENSE:=GPL-2.0
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/mt-st
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=Magnetic tape control tools for Linux SCSI tapes
  22. URL:=http://ftp.ibiblio.org/pub/Linux/system/backup/
  23. MAINTAINER:=Giuseppe Magnotta <giuseppe.magnotta@gmail.com>
  24. endef
  25. define Package/mt-st/description
  26. Includes a mt-like program supporting additional commands using ioctls
  27. specific to the Linux SCSI tape driver (up to kernel 2.6.26), and the program
  28. stinit to define the SCSI tape devices in system startup scripts.
  29. endef
  30. define Build/Compile
  31. $(MAKE) -C $(PKG_BUILD_DIR) \
  32. LDFLAGS="$(TARGET_LDFLAGS)" \
  33. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  34. CC="$(TARGET_CC)"
  35. endef
  36. define Package/mt-st/install
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mt $(1)/usr/bin/
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/stinit $(1)/usr/bin/
  40. endef
  41. $(eval $(call BuildPackage,mt-st))