summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Sandoval2016-06-06 16:50:23 -0700
committerOmar Sandoval2016-06-06 16:50:23 -0700
commitc77fa715c3e92c0c44e1ee73229ccdf00cc1f772 (patch)
tree5bf3b41a379f4f79c03d7bcfe6d6330bff7ad3cf
downloadaur-fio-git.tar.gz
Initial import
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD54
2 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2f3822d3a18
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = fio-git
+ pkgdesc = Scriptable I/O tool for storage benchmarks and drive testing
+ pkgver = 2.11.r14.gf03189f
+ pkgrel = 1
+ url = https://github.com/axboe/fio
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = gtk2
+ depends = bash
+ depends = libaio
+ depends = python2
+ depends = numactl
+ depends = glusterfs
+ depends = ceph
+ optdepends = gtk2: for gfio - fio GUI frontend
+ optdepends = gnuplot: generating plots using fio_generate_plots
+ provides = fio
+ conflicts = fio
+ source = fio::git+https://github.com/axboe/fio.git
+ sha256sums = SKIP
+
+pkgname = fio-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..87f3a40214e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Omar Sandoval <osandov at osandov dot com>
+
+pkgname=fio-git
+_pkgname=fio
+pkgver=2.11.r14.gf03189f
+pkgrel=1
+pkgdesc='Scriptable I/O tool for storage benchmarks and drive testing'
+arch=(i686 x86_64)
+url='https://github.com/axboe/fio'
+license=(GPL2)
+# TODO: enable rdma
+depends=(bash libaio python2 numactl glusterfs ceph)
+makedepends=(git gtk2)
+optdepends=(
+ 'gtk2: for gfio - fio GUI frontend'
+ 'gnuplot: generating plots using fio_generate_plots'
+)
+conflicts=('fio')
+provides=('fio')
+source=("$_pkgname::git+https://github.com/axboe/fio.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --abbrev=7 --long | sed 's/^fio-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$_pkgname"
+
+ sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i tools/plot/fio2gnuplot
+}
+
+build() {
+ cd "$_pkgname"
+ ./configure --enable-gfio --extra-cflags="$CFLAGS"
+ make
+}
+
+package() {
+ cd "$_pkgname"
+ make DESTDIR="$pkgdir" prefix=/usr mandir=/usr/share/man install
+
+ # documentation
+ install -dm755 "$pkgdir/usr/share/doc/$_pkgname"
+ install -m644 HOWTO README REPORTING-BUGS SERVER-TODO "$pkgdir/usr/share/doc/$_pkgname"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/COPYING"
+
+ # examples
+ install -dm755 "$pkgdir/usr/share/doc/$_pkgname/examples"
+ install -m644 examples/* "$pkgdir/usr/share/doc/$_pkgname/examples"
+}
+
+# vim:set ts=2 sw=2 et: