aboutsummaryrefslogtreecommitdiffstats
path: root/testing/numactl
diff options
context:
space:
mode:
authorDaniel Sabogal <dsabogalcc@gmail.com>2016-11-12 13:59:24 -0500
committerDaniel Sabogal <dsabogalcc@gmail.com>2016-11-15 15:22:39 -0500
commit0592b128c71c3e70d493bc7a13caed0d7fae91dd (patch)
tree476da39eb52c157e7a5be99eb0897caed463aa1d /testing/numactl
parent35f5f2a46d5de54e3891f409f7d0f9f0eae892f9 (diff)
downloadaports-0592b128c71c3e70d493bc7a13caed0d7fae91dd.tar.bz2
aports-0592b128c71c3e70d493bc7a13caed0d7fae91dd.tar.xz
testing/numactl: new aport
http://oss.sgi.com/projects/libnuma/ Simple NUMA policy support
Diffstat (limited to 'testing/numactl')
-rw-r--r--testing/numactl/APKBUILD46
-rw-r--r--testing/numactl/musl.patch21
2 files changed, 67 insertions, 0 deletions
diff --git a/testing/numactl/APKBUILD b/testing/numactl/APKBUILD
new file mode 100644
index 0000000000..2408de5a34
--- /dev/null
+++ b/testing/numactl/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
+# Maintainer:
+pkgname=numactl
+pkgver=2.0.11
+pkgrel=0
+pkgdesc="Simple NUMA policy support"
+url="http://oss.sgi.com/projects/libnuma/"
+arch="x86 x86_64"
+license="GPL2 LGPL2"
+depends=""
+makedepends="linux-headers"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools:_tools"
+source="ftp://oss.sgi.com/www/projects/libnuma/download/$pkgname-$pkgver.tar.gz
+ musl.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+
+ # provided by linux man-pages
+ rm -r "$pkgdir"/usr/share/man/man2
+}
+
+_tools() {
+ pkgdesc="NUMA policy control tools"
+
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr || return 1
+}
+
+md5sums="d3bc88b7ddb9f06d60898f4816ae9127 numactl-2.0.11.tar.gz
+1a9aceeb5ac9c933afc87ee614172c16 musl.patch"
+sha256sums="450c091235f891ee874a8651b179c30f57a1391ca5c4673354740ba65e527861 numactl-2.0.11.tar.gz
+1b8803d47ece79b5411b4d442e55f45e88b106ac2ac0b53001e1bcfabc060b20 musl.patch"
+sha512sums="1969d7ee0ff3de0d6f1fa42ec089a17cdb3f92cb35d453b8f8b2eec49724c43787ecbd213357013a8f2500a260b0df9844d515815ca3a0376314a0eed050a0d4 numactl-2.0.11.tar.gz
+c24affa5a8a8ea83d7f0ee384dc0629e17a5c4201357132f770f894ad4236772116d96d8389d54fb99095af40d1ccbffc3170b5fb9cc88cfca39179f50bee9c9 musl.patch"
diff --git a/testing/numactl/musl.patch b/testing/numactl/musl.patch
new file mode 100644
index 0000000000..009233f630
--- /dev/null
+++ b/testing/numactl/musl.patch
@@ -0,0 +1,21 @@
+--- numactl-2.0.11/syscall.c.orig
++++ numactl-2.0.11/syscall.c
+@@ -115,14 +115,16 @@
+
+ #endif
+
+-#if defined(__GLIBC__) && __GLIBC_PREREQ(2, 11)
++#if defined(__GLIBC__)
++# if __GLIBC_PREREQ(2,11)
+
+ /* glibc 2.11 seems to have working 6 argument sycall. Use the
+ glibc supplied syscall in this case.
+ The version cut-off is rather arbitary and could be probably
+ earlier. */
+
+-#define syscall6 syscall
++# define syscall6 syscall
++#endif
+ #elif defined(__x86_64__)
+ /* 6 argument calls on x86-64 are often buggy in both glibc and
+ asm/unistd.h. Add a working version here. */