summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2012-06-26 11:29:00 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2012-07-07 20:25:55 +0000
commit5783c9d4e4fddff672d89f8ae097f82491c74a12 (patch)
treefef489b32afda9b07168db812e7b61f86e761eed
parent22e97ea43b49a104422bcb2750b4d5197e6cd7c0 (diff)
downloadaports-5783c9d4e4fddff672d89f8ae097f82491c74a12.tar.bz2
aports-5783c9d4e4fddff672d89f8ae097f82491c74a12.tar.xz
testing/userspace-rcu: new aport
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data synchronization library provides read-side access which scales linearly with the number of cores. It does so by allowing multiples copies of a given data structure to live at the same time, and by monitoring the data structure accesses to detect grace periods after which memory reclamation is possible. liburcu-cds provides efficient data structures based on RCU and lock-free algorithms. Those structures include hash tables, queues, stacks, and doubly- linked lists. http://lttng.org/urcu/
-rw-r--r--testing/userspace-rcu/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/userspace-rcu/APKBUILD b/testing/userspace-rcu/APKBUILD
new file mode 100644
index 000000000..e9885f7bb
--- /dev/null
+++ b/testing/userspace-rcu/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=userspace-rcu
+pkgver=0.7.3
+pkgrel=0
+pkgdesc="A userspace RCU (read-copy-update) library"
+url="http://lttng.org/urcu/"
+arch="all"
+license="LGPL2+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://lttng.org/files/urcu/$pkgname-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$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"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+# Tests are extremly time-consuming
+# make check || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="c40b726f13bff80982c1ffa1bc2db31d userspace-rcu-0.7.3.tar.bz2"