From 1736cd4f32c0e80dc08e8e05d70a9f85e0edae4f Mon Sep 17 00:00:00 2001
From: fake <fake@rapidnetworks.de>
Date: Sat, 14 Aug 2004 11:53:16 +0000
Subject: [PATCH] fake: 	add package iostat, closes bug #208

[2004080622392627963] (https://www.rocklinux.net/submaster)



git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3857 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
---
 package/fake/iostat/iostat.conf           |  2 ++
 package/fake/iostat/iostat.desc           | 43 +++++++++++++++++++++++
 package/fake/iostat/makefile-prefix.patch | 24 +++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 package/fake/iostat/iostat.conf
 create mode 100644 package/fake/iostat/iostat.desc
 create mode 100644 package/fake/iostat/makefile-prefix.patch

diff --git a/package/fake/iostat/iostat.conf b/package/fake/iostat/iostat.conf
new file mode 100644
index 000000000..a648bd1cb
--- /dev/null
+++ b/package/fake/iostat/iostat.conf
@@ -0,0 +1,2 @@
+
+var_append makeinstopt ' ' "PREFIX=$root/usr"
diff --git a/package/fake/iostat/iostat.desc b/package/fake/iostat/iostat.desc
new file mode 100644
index 000000000..6bf1bda21
--- /dev/null
+++ b/package/fake/iostat/iostat.desc
@@ -0,0 +1,43 @@
+[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN ---
+[COPY] 
+[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
+[COPY] Please add additional copyright information _after_ the line containing
+[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
+[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
+[COPY] 
+[COPY] ROCK Linux: rock-src/package/fake/iostat/iostat.desc
+[COPY] ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
+[COPY] 
+[COPY] This program is free software; you can redistribute it and/or modify
+[COPY] it under the terms of the GNU General Public License as published by
+[COPY] the Free Software Foundation; either version 2 of the License, or
+[COPY] (at your option) any later version. A copy of the GNU General Public
+[COPY] License can be found at Documentation/COPYING.
+[COPY] 
+[COPY] Many people helped and are helping developing ROCK Linux. Please
+[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM
+[COPY] file for details.
+[COPY] 
+[COPY] --- ROCK-COPYRIGHT-NOTE-END ---
+
+[I] a command line I/O performance monitoring utility
+
+[T] It is present in almost every major Unix flavor in use today, and here 
+[T] you can get your version for Linux. It works on both 2.4 & 2.6. What
+[T] makes it different from other Linux utilities, which mostly show only
+[T] I/O transfer rates, is that you finally can get important information
+[T] about disk utilization, number of requests, average queue size and
+[T] disk & queue wait times. No serious sysadmin should be without it.
+
+[A] Zlatko Calusic <zlatko@iskon.hr>
+[M] fake <fake@rapidnetworks.de>
+
+[C] extra/tool
+
+[L] GPL
+[S] Stable
+[V] 2.0
+[P] X -----5---9 164.600
+
+[D] 482294953 iostat-2.0.tar.gz http://linux.inet.hr/
+
diff --git a/package/fake/iostat/makefile-prefix.patch b/package/fake/iostat/makefile-prefix.patch
new file mode 100644
index 000000000..095b21265
--- /dev/null
+++ b/package/fake/iostat/makefile-prefix.patch
@@ -0,0 +1,24 @@
+--- ./Makefile.orig	2004-08-06 22:29:09.403635888 +0200
++++ ./Makefile	2004-08-06 22:29:58.195218440 +0200
+@@ -5,6 +5,8 @@
+ CFLAGS = -g -O2 -Wall -fomit-frame-pointer
+ LDFLAGS =
+ 
++PREFIX = /usr/local
++
+ SRC = iostat.c
+ BIN = iostat
+ 
+@@ -14,9 +16,9 @@
+ 	$(CC) $(CFLAGS) $(SRC) -o $@ $(LDFLAGS)
+ 
+ install: $(BIN)
+-	install -d /usr/local/bin /usr/local/man/man8
+-	install -o root -g root -m 755 -s iostat /usr/local/bin
+-	install -o root -g root -m 644 iostat.8 /usr/local/man/man8
++	install -d $(PREFIX)/bin $(PREFIX)/man/man8
++	install -o root -g root -m 755 -s iostat $(PREFIX)/bin
++	install -o root -g root -m 644 iostat.8 $(PREFIX)/man/man8
+ 
+ clean:
+ 	rm -f $(BIN) core