summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD39
-rw-r--r--no-ltinstall.diff45
-rw-r--r--xfstests-git.install8
4 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c345f3119e7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = xfstests-git
+ pkgdesc = File system QA suite
+ pkgver = linux.v3.8.r640.gfacff60
+ pkgrel = 1
+ url = http://oss.sgi.com/projects/xfs
+ install = xfstests-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = xfsprogs
+ depends = openssl
+ depends = libaio
+ source = xfstests-git::git://oss.sgi.com/xfs/cmds/xfstests.git
+ source = no-ltinstall.diff
+ md5sums = SKIP
+ md5sums = 4ec54611e65df0caa825e5fe8dc949c7
+
+pkgname = xfstests-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..db8840b7ea8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Masami Ichikawae <masami256@gmail.com>
+# vim:set ts=2 sw=2 et filetype=sh:
+pkgname=xfstests-git
+pkgver=linux.v3.8.r640.gfacff60
+pkgrel=1
+pkgdesc="File system QA suite"
+arch=('i686' 'x86_64')
+url="http://oss.sgi.com/projects/xfs"
+license=('GPL')
+install=xfstests-git.install
+depends=('xfsprogs' 'openssl' 'libaio')
+makedepends=('git')
+source=("$pkgname"::'git://oss.sgi.com/xfs/cmds/xfstests.git' 'no-ltinstall.diff')
+md5sums=('SKIP' '4ec54611e65df0caa825e5fe8dc949c7') # skip git source checksum
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ patch -p1 -i "$srcdir/no-ltinstall.diff"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ make configure
+ ./configure
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir/" install
+
+ mv $pkgdir/var/lib/xfstests $pkgdir/var/lib/$pkgname
+ chown -R root:root "$pkgdir/var/lib/$pkgname"
+}
diff --git a/no-ltinstall.diff b/no-ltinstall.diff
new file mode 100644
index 00000000000..181f85a56f7
--- /dev/null
+++ b/no-ltinstall.diff
@@ -0,0 +1,45 @@
+--- a/include/builddefs.in
++++ b/include/builddefs.in
+@@ -35,7 +35,7 @@ PKG_DISTRIBUTION= @pkg_distribution@
+ PKG_SBIN_DIR = @sbindir@
+ # A bit of a hack; by rights only state should probably go here
+ # But for now ...
+-PKG_LIB_DIR = /var/lib/@pkg_name@
++PKG_LIB_DIR = @localstatedir@/lib/@pkg_name@
+
+ CC = @cc@
+ AWK = @awk@
+--- a/install-sh.orig 2013-06-25 11:31:07.798872991 +0200
++++ b/install-sh 2013-06-25 11:31:15.908018374 +0200
+@@ -1,4 +1,4 @@
+-#! /bin/bash
++#! /bin/bash -x
+ #
+ # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
+ #
+--- a/ltp/Makefile.orig 2013-06-25 13:59:27.645793142 +0200
++++ b/ltp/Makefile 2013-06-25 13:59:53.815274649 +0200
+@@ -44,7 +44,7 @@
+
+ install: default
+ $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/ltp
+- $(LTINSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/ltp
++ $(INSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/ltp
+ $(INSTALL) -m 755 $(SCRIPTS) $(PKG_LIB_DIR)/ltp
+
+ -include .dep
+--- a/src/Makefile.orig 2013-06-25 14:00:28.234907919 +0200
++++ b/src/Makefile 2013-06-25 14:00:33.380002578 +0200
+@@ -74,9 +74,9 @@
+
+ install: default $(addsuffix -install,$(SUBDIRS))
+ $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/src
+- $(LTINSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/src
+- $(LTINSTALL) -m 755 fill2attr fill2fs fill2fs_check scaleread.sh $(PKG_LIB_DIR)/src
+- $(LTINSTALL) -m 644 dumpfile $(PKG_LIB_DIR)/src
++ $(INSTALL) -m 755 $(TARGETS) $(PKG_LIB_DIR)/src
++ $(INSTALL) -m 755 fill2attr fill2fs fill2fs_check scaleread.sh $(PKG_LIB_DIR)/src
++ $(INSTALL) -m 644 dumpfile $(PKG_LIB_DIR)/src
+
+ %-install:
+ $(MAKE) -C $* install
diff --git a/xfstests-git.install b/xfstests-git.install
new file mode 100644
index 00000000000..7f20ce83008
--- /dev/null
+++ b/xfstests-git.install
@@ -0,0 +1,8 @@
+# vim:set ts=2 sw=2 et filetype=sh:
+
+post_remove() {
+ if [ -d /var/lib/xfstests-git ]; then
+ echo "You may want to crean up your test result in /var/lib/xfstests-git"
+ fi
+}
+