# HG changeset patch
# User Christophe Lincoln <pankso@slitaz.org>
# Date 1335190550 -7200
# Node ID 80a234c03f3560a0bcb459d9bee486487a42b1a5
# Parent  5b8601199e3a7ba7ecc9118a5d20043beb8d7778
Add sg3_utils

diff -r 5b8601199e3a -r 80a234c03f35 libsgutils2/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libsgutils2/receipt	Mon Apr 23 16:15:50 2012 +0200
@@ -0,0 +1,16 @@
+# SliTaz package receipt.
+
+PACKAGE="libsgutils2"
+VERSION="1.29"
+CATEGORY="system-tools"
+SHORT_DESC="The sg_utils library."
+MAINTAINER="pankso@slitaz.org"
+WEB_SITE="http://sg.danny.cz/sg/"
+WANTED="sg3_utils"
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib
+	cp -a $install/usr/lib/*.so* $fs/usr/lib
+}
diff -r 5b8601199e3a -r 80a234c03f35 sg3_utils-dev/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sg3_utils-dev/receipt	Mon Apr 23 16:15:50 2012 +0200
@@ -0,0 +1,17 @@
+# SliTaz package receipt.
+
+PACKAGE="sg3_utils-dev"
+VERSION="1.29"
+CATEGORY="development"
+SHORT_DESC="The sg_utils devel files."
+MAINTAINER="pankso@slitaz.org"
+WEB_SITE="http://sg.danny.cz/sg/"
+WANTED="sg3_utils"
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib
+	cp -a $install/usr/lib/*.*a $fs/usr/lib
+	cp -a $install/usr/include $fs/usr
+}
diff -r 5b8601199e3a -r 80a234c03f35 sg3_utils/receipt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sg3_utils/receipt	Mon Apr 23 16:15:50 2012 +0200
@@ -0,0 +1,30 @@
+# SliTaz package receipt.
+
+PACKAGE="sg3_utils"
+VERSION="1.29"
+CATEGORY="system-tools"
+SHORT_DESC="Low level utilities for devices that use a SCSI command set."
+MAINTAINER="pankso@slitaz.org"
+TARBALL="$PACKAGE-$VERSION.tgz"
+WEB_SITE="http://sg.danny.cz/sg/"
+WGET_URL="http://sg.danny.cz/sg/p/$TARBALL"
+
+DEPENDS="libsgutils2"
+BUILD_DEPENDS=""
+
+# Rules to configure and make the package.
+compile_rules()
+{
+	cd $src
+	./configure \
+		$CONFIGURE_ARGS &&
+	make && make install
+}
+
+# Rules to gen a SliTaz package suitable for Tazpkg.
+genpkg_rules()
+{
+	mkdir -p $fs/usr/lib
+	cp -a $install/usr/bin $fs/usr
+	[ -x "/usr/bin/cook" ] && cook libsgutils2
+}