diff options
author | Brenton Earl <brent@exitstatusone.com> | 2017-05-26 23:04:13 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-05-27 07:29:16 +0700 |
commit | 0946cb1a1dd910eafabaa1c1a8f0eaf1d2a8eec4 (patch) | |
tree | bb80fa41e8640fef851ff382fd5ed4525a939c81 /system/fio | |
parent | 3872f4acc318fefa2ad629ed7b8911423286a963 (diff) | |
download | slackbuilds-0946cb1a1dd910eafabaa1c1a8f0eaf1d2a8eec4.tar.gz |
system/fio: Updated for version 2.20.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/fio')
-rw-r--r-- | system/fio/README | 4 | ||||
-rw-r--r-- | system/fio/doinst.sh | 3 | ||||
-rw-r--r-- | system/fio/fio.SlackBuild | 18 | ||||
-rw-r--r-- | system/fio/fio.desktop | 9 | ||||
-rw-r--r-- | system/fio/fio.info | 6 | ||||
-rw-r--r-- | system/fio/slack-desc | 2 |
6 files changed, 36 insertions, 6 deletions
diff --git a/system/fio/README b/system/fio/README index e754c45083..9a6fac8268 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 0000000000..5fb28930db --- /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 9cf6f0e106..d295157efb 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 0000000000..190d6f2b82 --- /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 278353d087..2193ba9bcb 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 6e1bf5d491..259f5d678a 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: |