[packages] add dt, a generic data test program (closes: #2167)
authorNicolas Thill <nico@openwrt.org>
Sun, 1 Feb 2009 15:48:10 +0000 (15:48 +0000)
committerNicolas Thill <nico@openwrt.org>
Sun, 1 Feb 2009 15:48:10 +0000 (15:48 +0000)
SVN-Revision: 14340

utils/dt/Makefile [new file with mode: 0644]

diff --git a/utils/dt/Makefile b/utils/dt/Makefile
new file mode 100644 (file)
index 0000000..821d859
--- /dev/null
@@ -0,0 +1,53 @@
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=dt
+PKG_VERSION:=15.14
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-source.tar.gz
+PKG_SOURCE_URL:=http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/ftp/$(PKG_NAME)/
+PKG_MD5SUM:=5776233a2d301a50b314306538257a45
+
+PKG_UNPACK= \
+       zcat $(DL_DIR)/$(PKG_SOURCE) | \
+               $(TAR) -C $(PKG_BUILD_DIR) --strip-components 2 $(TAR_OPTIONS);
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/dt
+  CATEGORY:=Utilities
+  SECTION:=utils
+  TITLE:=A generic data test program
+  URL:=http://www.scsifaq.org/RMiller_Tools/index.html
+  DEPENDS:=+libpthread
+endef
+
+define Package/dt/description
+ dt is a generic data test program used to verify proper operation of peripherals,
+ file systems, device drivers, or any data stream supported by the operating system.
+ In its' simplest mode of operation, dt writes and then verifys its' default data pattern,
+ then displays performance statisics and other test parameters before exiting.
+ Since verification of data is performed, dt can be thought of as a generic diagnostic tool.
+endef
+
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.linux \
+               CC="$(TARGET_CC)" \
+               CFLAGS="$(TARGET_CFLAGS) -DFIFO -DMMAP -DTTY -D__linux__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" \
+               dt
+endef
+
+define Package/dt/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/dt $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,dt))