nginx: bump to 1.26.1 release
[feed/packages.git] / utils / mt-st / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mt-st
11 PKG_VERSION:=1.1
12 PKG_RELEASE:=2
13
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
17
18 PKG_MAINTAINER:=Giuseppe Magnotta <giuseppe.magnotta@gmail.com>
19 PKG_LICENSE:=GPL-2.0
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/mt-st
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=Magnetic tape control tools for Linux SCSI tapes
27 URL:=http://ftp.ibiblio.org/pub/Linux/system/backup/
28 endef
29
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.
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 LDFLAGS="$(TARGET_LDFLAGS)" \
39 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
40 CC="$(TARGET_CC)"
41 endef
42
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/
47 endef
48
49 $(eval $(call BuildPackage,mt-st))