2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=ftp
://ftp.ibiblio.org
/pub
/Linux
/system
/backup
/
16 PKG_HASH
:=945cb4f3d9957dabe768f5941a9148b746396836c797b25f020c84319ba8170d
18 PKG_MAINTAINER
:=Giuseppe Magnotta
<giuseppe.magnotta@gmail.com
>
21 include $(INCLUDE_DIR
)/package.mk
26 TITLE
:=Magnetic tape control tools for Linux SCSI tapes
27 URL
:=http
://ftp.ibiblio.org
/pub
/Linux
/system
/backup
/
30 define Package
/mt-st
/description
31 Includes a mt-like program supporting additional commands using ioctls
32 specific to the Linux SCSI tape driver
(up to kernel
2.6.26), and the program
33 stinit to
define the SCSI tape devices in system startup scripts.
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 LDFLAGS
="$(TARGET_LDFLAGS)" \
39 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
43 define Package
/mt-st
/install
44 $(INSTALL_DIR
) $(1)/usr
/bin
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mt
$(1)/usr
/bin
/
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/stinit
$(1)/usr
/bin
/
49 $(eval
$(call BuildPackage
,mt-st
))