summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Danilov2018-05-09 16:55:00 +0300
committerAnthony Danilov2018-05-09 16:55:00 +0300
commitb753819231808cd09231d6c897faead4411238e7 (patch)
tree1192359f143099b22555dc4ff91017c4b8820641
parent3622cd2e98e018dc0b0fe6a96d0cdd545c16b622 (diff)
downloadaur-b753819231808cd09231d6c897faead4411238e7.tar.gz
up to 3.15.3.6
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD69
2 files changed, 48 insertions, 46 deletions
diff --git a/.SRCINFO b/.SRCINFO
index afc6d218b2a..89323e6ad25 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,25 @@
pkgbase = aerospike-tools-bin
pkgdesc = Tools for Aerospike
- pkgver = 3.15.0.3
+ pkgver = 3.15.3.6
pkgrel = 1
url = http://www.aerospike.com/
arch = x86_64
license = AGPLv3
- makedepends = binutils
- depends = python2-argparse
- depends = python2-bcrypt
- depends = python2-pyopenssl
- depends = python2-pexpect
- depends = python2-ply
- source = http://www.aerospike.com/download/tools/3.15.0.3/artifact/ubuntu16
- sha256sums = e582f5390e8853eb0faa9996e028ab7a46251626d629447bf6c8f11b95c290a7
+ depends = java-runtime
+ depends = python2
+ depends = openssl
+ depends = readline>=7.0.0
+ depends = readline<8.0.0
+ optdepends = python2-argparse: non default option parser
+ optdepends = python2-bcrypt: connect to an Aerospike Cluster with security enabled
+ optdepends = python2-pexpect: collect system statistics for remote hosts
+ optdepends = python2-toml: configuration files support
+ optdepends = python2-jsonschema: configuration files support
+ optdepends = python2-pyopenssl: connect to an Aerospike Cluster using SSL
+ optdepends = python2-pyasn1: connect to an Aerospike Cluster using SSL
+ backup = etc/aerospike/astools.conf
+ source = http://www.aerospike.com/download/tools/3.15.3.6/artifact/ubuntu16
+ sha256sums = bdc177068dcbed5320d2e26f8afb72cdf78fa479af2ccf52e9b3e9cbfff9fb08
pkgname = aerospike-tools-bin
diff --git a/PKGBUILD b/PKGBUILD
index e989a56082e..19a2bc0566a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,57 +1,52 @@
-#Maintainer: nutz <nutz[äT]noova(O)de>
+# Maintainer: nutz <nutz[äT]noova(O)de>
+# Maintainer: Anthony Danilov <grinderz@protonmail.com>
pkgname=aerospike-tools-bin
pkgrealname=aerospike-tools
-pkgver=3.15.0.3
+pkgver=3.15.3.6
pkgrel=1
pkgdesc="Tools for Aerospike"
arch=('x86_64')
url="http://www.aerospike.com/"
license=('AGPLv3')
depends=(
- 'python2-argparse'
- 'python2-bcrypt'
- 'python2-pyopenssl'
- 'python2-pexpect'
- 'python2-ply'
+ 'java-runtime'
+ 'python2'
+ 'openssl'
+ 'readline>=7.0.0'
+ 'readline<8.0.0'
)
-makedepends=('binutils')
-sha256sums=('e582f5390e8853eb0faa9996e028ab7a46251626d629447bf6c8f11b95c290a7')
-source=("http://www.aerospike.com/download/tools/${pkgver}/artifact/ubuntu16"
- )
+optdepends=(
+ 'python2-argparse: non default option parser'
+ 'python2-bcrypt: connect to an Aerospike Cluster with security enabled'
+ 'python2-pexpect: collect system statistics for remote hosts'
+ 'python2-toml: configuration files support'
+ 'python2-jsonschema: configuration files support'
+ 'python2-pyopenssl: connect to an Aerospike Cluster using SSL'
+ 'python2-pyasn1: connect to an Aerospike Cluster using SSL'
+)
+
+
+sha256sums=('bdc177068dcbed5320d2e26f8afb72cdf78fa479af2ccf52e9b3e9cbfff9fb08')
+source=("http://www.aerospike.com/download/tools/${pkgver}/artifact/ubuntu16")
prepare() {
cd ${srcdir}/${pkgrealname}-${pkgver}-ubuntu16.04/
- ar xv ${pkgrealname}-${pkgver}.ubuntu16.04.x86_64.deb 1>/dev/null
+ ar x ${pkgrealname}-${pkgver}.ubuntu16.04.x86_64.deb
tar xf data.tar.xz
}
-#pkgver() {}
-
-#build() {}
-
-#check() {}
-
package() {
- mkdir -p -m 755 "${pkgdir}/opt/aerospike/bin"
- mkdir -p -m 755 "${pkgdir}/usr/bin"
- cd ${srcdir}/${pkgrealname}-${pkgver}-ubuntu16.04/opt/aerospike
- for file in $(ls bin); do
- # TODO: aql bla.
- install -m 0755 bin/$file "${pkgdir}/opt/aerospike/bin/${file}"
- ln -s "/opt/aerospike/bin/${file}" "${pkgdir}/usr/bin/${file}"
- sed -i "1s/python/python2/" ${pkgdir}/opt/aerospike/bin/${file}
+ cd "${srcdir}/${pkgrealname}-${pkgver}-ubuntu16.04"
+
+ cp -ar etc "${pkgdir}/etc"
+ cp -ar opt "${pkgdir}/opt"
+ cp -ar usr "${pkgdir}/usr"
+
+ for file in {add_python_path,aerospike_nagios.py,asadm,asgraphite,remove_python_path,ssl_context.py,asinfo,asloglatency}; do
+ sed -i '1s/python/python2/' "${pkgdir}/opt/aerospike/bin/${file}"
done
- mkdir -p -m 755 "${pkgdir}/opt/aerospike/lib/python"
- install -m 0755 lib/python/citrusleaf.py "${pkgdir}/opt/aerospike/lib/python/citrusleaf.py"
-
-
- for path in $(find doc/ | sort); do
- if [ -d ${path} ]; then
- mkdir -p -m 755 "${pkgdir}/opt/aerospike/${path}"
- else
- install -m 0644 $path "${pkgdir}/opt/aerospike/${path}"
- fi
- done
+ sed -i '1s/python/python2/' "${pkgdir}/opt/aerospike/lib/python/citrusleaf.py"
+ sed -i 's/libreadline.so.6/libreadline.so.7/g' "$pkgdir/opt/aerospike/bin/aql"
}