From e00cfcb561b770e373545903cd239e4e215bf114 Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 15 Mar 2009 19:05:15 +0000 Subject: [PATCH] [package] add sg3-utils (#1754) git-svn-id: svn://svn.openwrt.org/openwrt/packages@14892 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- utils/sg3-utils/Makefile | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 utils/sg3-utils/Makefile diff --git a/utils/sg3-utils/Makefile b/utils/sg3-utils/Makefile new file mode 100644 index 000000000..a49715c0c --- /dev/null +++ b/utils/sg3-utils/Makefile @@ -0,0 +1,54 @@ +# +# 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:=sg3-utils +PKG_VERSION:=1.24 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz +PKG_SOURCE_URL:=http://ftp.de.debian.org/debian/pool/main/s/$(PKG_NAME) +PKG_MD5SUM:=9e1b8811b013d8f97d8ea2e0942cebad + +include $(INCLUDE_DIR)/package.mk + +define Package/sg3-utils + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+kmod-usb-storage + TITLE:=sg3 scsi utilities + URL:=http://sg.torque.net/sg/sg3_utils.html +endef + +define Package/sg3-utils/description + The package includes a number of utilities to allow a user + to use the sg interface to find out low-level information + about any SCSI device. +endef + +define Build/Configure +endef + + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) -f no_lib/Makefile.linux_static \ + DESTDIR=$(STAGING_DIR) \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS) -DSG3_UTILS_LINUX" \ + sg_start +endef + + +define Package/sg3-utils/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/sg_start $(1)/usr/bin +endef + + +$(eval $(call BuildPackage,sg3-utils))