aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/fio/README4
-rw-r--r--system/fio/doinst.sh3
-rw-r--r--system/fio/fio.SlackBuild18
-rw-r--r--system/fio/fio.desktop9
-rw-r--r--system/fio/fio.info6
-rw-r--r--system/fio/slack-desc2
6 files changed, 36 insertions, 6 deletions
diff --git a/system/fio/README b/system/fio/README
index e754c45083eb5..9a6fac8268a20 100644
--- a/system/fio/README
+++ b/system/fio/README
@@ -5,6 +5,10 @@ otherwise parameters given to them overriding that setting is given.
The typical use of fio is to write a job file matching the io load
one wants to simulate.
+To build the fio GUI, pass GUI=yes to the SlackBuild script:
+
+# GUI=yes sh fio.SlackBuild
+
Example Usage:
This process runs a random read and write of two 128MB files created during
diff --git a/system/fio/doinst.sh b/system/fio/doinst.sh
new file mode 100644
index 0000000000000..5fb28930db0b9
--- /dev/null
+++ b/system/fio/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/system/fio/fio.SlackBuild b/system/fio/fio.SlackBuild
index 9cf6f0e106269..d295157efb78a 100644
--- a/system/fio/fio.SlackBuild
+++ b/system/fio/fio.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fio
-VERSION=${VERSION:-2.19}
+VERSION=${VERSION:-2.20}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,6 +55,11 @@ else
LIBDIRSUFFIX=""
fi
+# Fio has a Gtk interface that is not built by default.
+# To enable it pass 'yes' to the GUI variable
+# Example: GUI=yes sh fio.SlackBuild
+gui="" ; [ "$GUI" = "yes" ] && gui="--enable-gfio"
+
set -e
rm -rf $PKG
@@ -72,7 +77,8 @@ find -L . \
./configure \
--prefix="/usr" \
- --extra-cflags="$SLKCFLAGS"
+ --extra-cflags="$SLKCFLAGS" \
+ $gui
make
make install DESTDIR=$PKG
@@ -87,7 +93,15 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING HOWTO README REPORTING-BUGS examples/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# Add .desktop file if GUI is built
+# No icon available
+if [ "$GUI" = "yes" ]; then
+ mkdir -p $PKG/usr/share/applications
+ cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+fi
+
mkdir -p $PKG/install
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
diff --git a/system/fio/fio.desktop b/system/fio/fio.desktop
new file mode 100644
index 0000000000000..190d6f2b8228e
--- /dev/null
+++ b/system/fio/fio.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Gfio
+GenericName=Flexible I/O tester front-end
+Type=Application
+Exec=gfio
+Icon=applications-utilities
+Categories=System;
+Terminal=false
+StartupNotify=false
diff --git a/system/fio/fio.info b/system/fio/fio.info
index 278353d08778a..2193ba9bcb966 100644
--- a/system/fio/fio.info
+++ b/system/fio/fio.info
@@ -1,8 +1,8 @@
PRGNAM="fio"
-VERSION="2.19"
+VERSION="2.20"
HOMEPAGE="http://git.kernel.dk/cgit/fio/"
-DOWNLOAD="http://brick.kernel.dk/snaps/fio-2.19.tar.gz"
-MD5SUM="597b18b587093513365aa18f24719b84"
+DOWNLOAD="http://brick.kernel.dk/snaps/fio-2.20.tar.gz"
+MD5SUM="75df972852aca28498a16d9988a84687"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/system/fio/slack-desc b/system/fio/slack-desc
index 6e1bf5d491c73..259f5d678afee 100644
--- a/system/fio/slack-desc
+++ b/system/fio/slack-desc
@@ -15,5 +15,5 @@ fio: otherwise parameters given to them overriding that setting is given.
fio: The typical use of fio is to write a job file matching the io load
fio: one wants to simulate.
fio:
-fio:
+fio: Homepage: http://git.kernel.dk/cgit/fio/
fio: