diff options
author | Kiswono Prayogo | 2017-03-13 14:28:26 +0700 |
---|---|---|
committer | Kiswono Prayogo | 2017-03-13 14:28:26 +0700 |
commit | c684a6496bd8349438aa9e59ce32e56c95ba3477 (patch) | |
tree | 66b35c3760ce3807bc14e71d484e2d00b8cde70c | |
download | aur-c684a6496bd8349438aa9e59ce32e56c95ba3477.tar.gz |
initial pkg for scylla 1.6.1
-rw-r--r-- | .SRCINFO | 52 | ||||
-rw-r--r-- | PKGBUILD | 112 |
2 files changed, 164 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3825985c9710 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,52 @@ +pkgbase = scylla + pkgdesc = NoSQL data store using the Seastar framework, compatible with Apache Cassandra + pkgver = 1.6.1 + pkgrel = 1 + url = http://www.scylladb.com/ + arch = x86_64 + license = AGPL + makedepends = git + makedepends = gcc + depends = antlr3 + depends = libantlr3c + depends = libyaml + depends = yaml-cpp + depends = lz4 + depends = zlib + depends = snappy + depends = jsoncpp + depends = gnutls + depends = ninja + depends = ragel + depends = libaio + depends = crypto++ + depends = xfsprogs + depends = numactl + depends = hwloc + depends = libpciaccess + depends = libxml2 + depends = python-pyparsing + depends = lksctp-tools + depends = protobuf + depends = libunwind + depends = systemtap-git + depends = dpkg + depends = xmlcutty-bin + provides = scylla + source = git+https://github.com/scylladb/scylla.git + source = git+https://github.com/scylladb/scylla-ami.git + source = git+https://github.com/scylladb/scylla-swagger-ui.git + source = git+https://github.com/scylladb/seastar.git + source = git+https://github.com/scylladb/fmt.git + source = git+https://github.com/scylladb/dpdk.git + source = git+https://github.com/scylladb/c-ares.git + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + +pkgname = scylla + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ae2e007c541b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,112 @@ +pkgname=scylla +pkgver=1.6.1 +pkgrel=1 +pkgdesc="NoSQL data store using the Seastar framework, compatible with Apache Cassandra" +arch=('x86_64') +url="http://www.scylladb.com/" +license=('AGPL') +depends=('antlr3' 'libantlr3c' 'libyaml' 'yaml-cpp' 'lz4' 'zlib' 'snappy' + 'jsoncpp' 'gnutls' 'ninja' 'ragel' 'libaio' 'crypto++' 'xfsprogs' + 'numactl' 'hwloc' 'libpciaccess' 'libxml2' 'python-pyparsing' + 'lksctp-tools' 'protobuf' 'libunwind' 'systemtap-git' 'dpkg' 'xmlcutty-bin') +makedepends=('git' 'gcc') +provides=('scylla') +source=('git+https://github.com/scylladb/scylla.git' +'git+https://github.com/scylladb/scylla-ami.git' +'git+https://github.com/scylladb/scylla-swagger-ui.git' +'git+https://github.com/scylladb/seastar.git' +'git+https://github.com/scylladb/fmt.git' +'git+https://github.com/scylladb/dpdk.git' +'git+https://github.com/scylladb/c-ares.git' +) +md5sums=('SKIP' +'SKIP' +'SKIP' +'SKIP' +'SKIP' +'SKIP' +'SKIP' +) + +prepare() { + # downgrade thrift + wget -c 'http://ala.seblu.net/packages/t/thrift/thrift-0.9.1-3-x86_64.pkg.tar.xz' + sudo pacman -U thrift-0.9.1-3-x86_64.pkg.tar.xz + + # install antlr3++ headers + DST=$srcdir/antlr3 + if [ ! -d "$DST/.git" ]; then + rm -rf antlr3 + git clone --depth 1 https://github.com/antlr/antlr3.git + sudo cp antlr3/runtime/Cpp/include/* /usr/include/ + fi + + cd $pkgname + git submodule init + git config submodule.seastar.url $srcdir/seastar + git config submodule.swagger-ui.url $srcdir/scylla-swagger-ui + git config submodule.dist/ami/files/scylla-ami.url $srcdir/scylla-ami + git submodule update --init + + cd seastar + git submodule init + git config submodule.dpdk.url $srcdir/dpdk + git config submodule.fmt.url $srcdir/fmt + git config submodule.c-ares.url $srcdir/c-ares + git submodule update --init + + cd .. + URL=http://downloads.scylladb.com.s3.amazonaws.com/ + wget -c $URL -O pkgs.xml + + xmlcutty -path /ListBucketResult/Contents/Key -rename '\n' pkgs.xml | grep .deb | grep trusty_backup/scylladb-1.6/ | grep -v '~rc' | grep -v '\-dbg' > pkgs.txt + + mkdir -p dpkg + cat pkgs.txt | cut -d '/' -f 8 | cut -d '_' -f 1 | uniq > pkgs-unique.txt + cat pkgs-unique.txt | while read line; do + FURL="$URL"`cat pkgs.txt | grep $line | tail -n 1` + wget -c "$FURL"; + FNAME=`echo "$FURL" | cut -d '/' -f 11` + echo "extracting $FNAME" + dpkg-deb -x "$FNAME" dpkg/ + done +} + +build() { + cd "$pkgname" + ./configure.py --mode=release --with=scylla --disable-xen --static + CORES=`lscpu | grep 0- | tail -n 1 | cut -d '-' -f 2` + ninja build/release/iotune -j${CORES} + ninja build/release/scylla -j${CORES} +} + +package() { + src="$srcdir/$pkgname/dpkg" + + # config + dst="$pkgdir/etc" + mkdir -p ${dst} + cp -Rv --preserve=timestamps "$src/etc/"* ${dst} + + src="$src/usr" + + # usr/share + dst="$pkgdir/usr/share" + mkdir -p ${dst} + cp -Rv --preserve=timestamps "$src/share/"* ${dst} + + # usr/lib + dst="$pkgdir/usr/lib" + mkdir -p ${dst} + cp -Rv --preserve=timestamps "$src/lib/"* ${dst} + + # usr/bin + dst="$pkgdir/usr/bin" + mkdir -p ${dst} + cp -Rv --preserve=timestamps "$src/bin/"* ${dst} + + src="$srcdir/$pkgname/build/release" + + install -p -m755 "$src/scylla" ${dst} + install -p -m755 "$src/iotune" ${dst} +} |