summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikołaj Chwalisz2017-07-18 16:31:29 +0200
committerMikołaj Chwalisz2017-07-18 16:31:29 +0200
commit0788ee854174b7a4be056f264b6e70b32460cc9a (patch)
tree7415f333f15e41ea69f7f1b9f736e8d930aa3aec
downloadaur-0788ee854174b7a4be056f264b6e70b32460cc9a.tar.gz
omni v2.10 from git
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD31
-rw-r--r--omni-configure.run5
-rw-r--r--omni.run5
4 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..856024972b8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = geni-tools
+ pkgdesc = Omni is a GENI command line tool for reserving resources at GENI aggregate managers via the GENI AM API using user accounts issued by a GENI clearinghouse.
+ pkgver = 2.10
+ pkgrel = 1
+ url = https://github.com/GENI-NSF/geni-tools
+ arch = any
+ license = MIT
+ depends = python2
+ depends = python2-dateutil
+ depends = python2-pyopenssl
+ depends = python2-m2crypto
+ source = https://github.com/GENI-NSF/geni-tools/archive/v2.10.tar.gz
+ source = omni.run
+ source = omni-configure.run
+ sha256sums = add9bf5a8fe0b4e9d01ee26a99c6f58d1b34b2c88077690ce5165fc3121b8e1e
+ sha256sums = b60b09ef7a9bf22b3daf09fef1c4b8d604b343149846a29aae3a4805a3402687
+ sha256sums = 07d56412fb374c976309df9d8f549438fa2d2c320c7b2aac06f8e7c8fee8f2c0
+
+pkgname = geni-tools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2ee85ce6681
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Mikołaj Chwalisz <chwalisz@tkn.tu-berlin.de>
+
+pkgname=geni-tools
+pkgver=2.10
+pkgrel=1
+pkgdesc="Omni is a GENI command line tool for reserving resources at GENI aggregate managers via the GENI AM API using user accounts issued by a GENI clearinghouse."
+arch=(any)
+url="https://github.com/GENI-NSF/geni-tools"
+license=('MIT')
+depends=("python2" "python2-dateutil" "python2-pyopenssl" "python2-m2crypto")
+source=("https://github.com/GENI-NSF/$pkgname/archive/v$pkgver.tar.gz"
+ "omni.run"
+ "omni-configure.run"
+ )
+sha256sums=('add9bf5a8fe0b4e9d01ee26a99c6f58d1b34b2c88077690ce5165fc3121b8e1e'
+ 'b60b09ef7a9bf22b3daf09fef1c4b8d604b343149846a29aae3a4805a3402687'
+ '07d56412fb374c976309df9d8f549438fa2d2c320c7b2aac06f8e7c8fee8f2c0')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./autogen.sh
+ ./configure --prefix=/opt/$pkgname PYTHON=python2
+ make
+}
+
+package() {
+ install -m 755 -D "omni.run" "$pkgdir/usr/bin/omni"
+ install -m 755 -D "omni-configure.run" "$pkgdir/usr/bin/omni-configure"
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
diff --git a/omni-configure.run b/omni-configure.run
new file mode 100644
index 00000000000..e780f614378
--- /dev/null
+++ b/omni-configure.run
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+export PYTHONPATH="/opt/geni-tools/lib/python2.7/site-packages:$PYTHONPATH"
+
+/usr/bin/python2 /opt/geni-tools/bin/omni-configure $@
diff --git a/omni.run b/omni.run
new file mode 100644
index 00000000000..f2b58cf6e8f
--- /dev/null
+++ b/omni.run
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+export PYTHONPATH="/opt/geni-tools/lib/python2.7/site-packages:$PYTHONPATH"
+
+/usr/bin/python2 /opt/geni-tools/bin/omni $@