[package] add sg3-utils (#1754)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@14892 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2009-03-15 19:05:15 +00:00
parent 8c9013726c
commit e00cfcb561

54
utils/sg3-utils/Makefile Normal file
View File

@ -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))