2 # Copyright (C) 2009 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).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/s/$(PKG_NAME)
16 PKG_MD5SUM:=9e1b8811b013d8f97d8ea2e0942cebad
18 include $(INCLUDE_DIR)/package.mk
20 define Package/sg3-utils
23 DEPENDS:=+kmod-usb-storage
24 TITLE:=sg3 scsi utilities
25 URL:=http://sg.danny.cz/sg/sg3_utils.html
28 define Package/sg3-utils/description
29 The package includes a number of utilities to allow a user
30 to use the sg interface to find out low-level information
31 about any SCSI device.
34 define Build/Configure
39 $(MAKE) -C $(PKG_BUILD_DIR) -f no_lib/Makefile.linux_static \
40 DESTDIR=$(STAGING_DIR) \
42 CFLAGS="$(TARGET_CFLAGS) -DSG3_UTILS_LINUX" \
47 define Package/sg3-utils/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sg_start $(1)/usr/bin
53 $(eval $(call BuildPackage,sg3-utils))