[packages] add basic sslh (SSL/SSH multiplexer), uci config support welcome :) (close...
[openwrt/svn-archive/archive.git] / utils / dt / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dt
12 PKG_VERSION:=15.14
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-source.tar.gz
16 PKG_SOURCE_URL:=http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/ftp/$(PKG_NAME)/
17 PKG_MD5SUM:=5776233a2d301a50b314306538257a45
18
19 PKG_UNPACK= \
20 zcat $(DL_DIR)/$(PKG_SOURCE) | \
21 $(TAR) -C $(PKG_BUILD_DIR) --strip-components 2 $(TAR_OPTIONS);
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/dt
26 CATEGORY:=Utilities
27 SECTION:=utils
28 TITLE:=A generic data test program
29 URL:=http://www.scsifaq.org/RMiller_Tools/index.html
30 DEPENDS:=+libpthread
31 endef
32
33 define Package/dt/description
34 dt is a generic data test program used to verify proper operation of peripherals,
35 file systems, device drivers, or any data stream supported by the operating system.
36 In its' simplest mode of operation, dt writes and then verifys its' default data pattern,
37 then displays performance statisics and other test parameters before exiting.
38 Since verification of data is performed, dt can be thought of as a generic diagnostic tool.
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.linux \
43 CC="$(TARGET_CC)" \
44 CFLAGS="$(TARGET_CFLAGS) -DFIFO -DMMAP -DTTY -D__linux__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
45 dt
46 endef
47
48 define Package/dt/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/dt $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,dt))