aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thin-provisioning-tools
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-04-02 09:18:37 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2014-04-02 09:19:14 +0000
commit9331f94d9d89dfba9b93caf9d4ce178ba7ea0b41 (patch)
tree72e2ea00acc3ea34738dbfd1eacc8923d1c00000 /testing/thin-provisioning-tools
parenta6621078bd8a969178a96d408fdb8c021e4a35d7 (diff)
downloadaports-9331f94d9d89dfba9b93caf9d4ce178ba7ea0b41.tar.bz2
aports-9331f94d9d89dfba9b93caf9d4ce178ba7ea0b41.tar.xz
testing/thin-provisioning-tools: new aport
Diffstat (limited to 'testing/thin-provisioning-tools')
-rw-r--r--testing/thin-provisioning-tools/APKBUILD58
-rw-r--r--testing/thin-provisioning-tools/qualify-btiset.patch25
2 files changed, 83 insertions, 0 deletions
diff --git a/testing/thin-provisioning-tools/APKBUILD b/testing/thin-provisioning-tools/APKBUILD
new file mode 100644
index 0000000000..6bbe1503f7
--- /dev/null
+++ b/testing/thin-provisioning-tools/APKBUILD
@@ -0,0 +1,58 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=thin-provisioning-tools
+pkgver=0.3.1
+pkgrel=0
+pkgdesc="A suite of tools for manipulating the metadata of the dm-thin device-mapper target"
+url="https://github.com/jthornber/thin-provisioning-tools"
+arch="all"
+license="GPL3"
+depends=""
+depends_dev="expat-dev boost-dev"
+makedepends="$depends_dev autoconf automake libtool"
+install=""
+subpackages="$pkgname-doc"
+source="thin-provisioning-tools-$pkgver.tar.gz::https://github.com/jthornber/thin-provisioning-tools/archive/v${pkgver}.tar.gz
+ qualify-btiset.patch"
+
+_builddir="$srcdir"/thin-provisioning-tools-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ autoreconf || return 1
+ export CXXFLAGS="$CXXFLAGS -fpermissive"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --with-optimisation='' \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" \
+ BINDIR="${pkgdir}"/sbin \
+ MANDIR=/usr/share/man \
+ install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="2e4c7f9fea79a84e0cb99e5f042dd74a thin-provisioning-tools-0.3.1.tar.gz
+d8bc62fe2ee45857f80f8349a7fac224 qualify-btiset.patch"
+sha256sums="461c3035262aeb41f26a4f97b04af801154613ad009bf4d89820b5971e912eca thin-provisioning-tools-0.3.1.tar.gz
+5bbdc02183ec7602853264feac6eb1727812bcb48a6dfedb82f0bfbec91f6fd7 qualify-btiset.patch"
+sha512sums="aeff2a9b118df2c721a32a5addf7289a312ff42b44d298073b506273ea6a5e9cd3efd7584b25d0fca511fa4c865665ba7f9e852392bbae0daa0ce30b77ec9d00 thin-provisioning-tools-0.3.1.tar.gz
+aae266aed288e8aada374a35f11d12460f522fe82f7877cfdbc0a825c4fd97f2c8e6c346166d50446abb98865f8743df7bc5b0ffa543daf873dbde72ca0691b2 qualify-btiset.patch"
diff --git a/testing/thin-provisioning-tools/qualify-btiset.patch b/testing/thin-provisioning-tools/qualify-btiset.patch
new file mode 100644
index 0000000000..1c9c94139b
--- /dev/null
+++ b/testing/thin-provisioning-tools/qualify-btiset.patch
@@ -0,0 +1,25 @@
+From 7eabc78d6dc4fc8e5b96adeb80e6b2edc150b18e Mon Sep 17 00:00:00 2001
+From: Joe Thornber <ejt@redhat.com>
+Date: Tue, 1 Apr 2014 17:43:15 +0100
+Subject: [PATCH] [era] qualify btiset
+
+---
+ era/writeset_tree.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/era/writeset_tree.cc b/era/writeset_tree.cc
+index 763427e..2fe47fe 100644
+--- a/era/writeset_tree.cc
++++ b/era/writeset_tree.cc
+@@ -54,7 +54,7 @@
+
+ void visit(btree_path const &path, era_detail const &era) {
+ era_ = path[0];
+- bitset bs(tm_, era.writeset_root, era.nr_bits);
++ persistent_data::bitset bs(tm_, era.writeset_root, era.nr_bits);
+ writeset_v_.writeset_begin(era_, era.nr_bits);
+ bs.walk_bitset(*this);
+ writeset_v_.writeset_end();
+--
+1.9.1
+