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_SUBDIR
:=$(PKG_NAME
)
15 PKG_SOURCE_VERSION
:=$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_SOURCE_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=ftp
://ftp.ibiblio.org
/pub
/Linux
/system
/backup
/
18 PKG_HASH
:=945cb4f3d9957dabe768f5941a9148b746396836c797b25f020c84319ba8170d
22 include $(INCLUDE_DIR
)/package.mk
27 TITLE
:=Magnetic tape control tools for Linux SCSI tapes
28 URL
:=http
://ftp.ibiblio.org
/pub
/Linux
/system
/backup
/
29 MAINTAINER
:=Giuseppe Magnotta
<giuseppe.magnotta@gmail.com
>
32 define Package
/mt-st
/description
33 Includes a mt-like program supporting additional commands using ioctls
34 specific to the Linux SCSI tape driver
(up to kernel
2.6.26), and the program
35 stinit to
define the SCSI tape devices in system startup scripts.
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 LDFLAGS
="$(TARGET_LDFLAGS)" \
41 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
45 define Package
/mt-st
/install
46 $(INSTALL_DIR
) $(1)/usr
/bin
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mt
$(1)/usr
/bin
/
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/stinit
$(1)/usr
/bin
/
51 $(eval
$(call BuildPackage
,mt-st
))