summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron France2015-09-02 18:24:22 +0200
committerAaron France2015-09-02 18:24:22 +0200
commitaa03190ebbe174f309224c29d65a061dc81d6067 (patch)
tree808765d2793fdde2abaf622c82dae972af9d2798
downloadaur-aa03190ebbe174f309224c29d65a061dc81d6067.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD38
-rw-r--r--README.md4
-rwxr-xr-xkairosdb2
-rw-r--r--kairosdb.service14
6 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..062800e1da4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = kairosdb
+ pkgdesc = a fast distributed scalable time series database written on top of Cassandra.
+ pkgver = 0.9.6
+ pkgrel = 1
+ url = https://github.com/kairosdb/kairosdb
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = deb2targz
+ depends = cassandra
+ provides = kairosdb
+ source = https://github.com/kairosdb/kairosdb/releases/download/v0.9.4/kairosdb_0.9.4-6_all.deb
+ source = kairosdb.service
+ source = kairosdb
+ md5sums = f0f656f58b0b3b0b9cb26d3c573b98fb
+ md5sums = 3f957c6bfc4e1206dba09c049baa10a0
+ md5sums = ab930d18b8f13ee662a1f7d6380573a0
+
+pkgname = kairosdb
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b45c61b058a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.xz
+*.deb
+*.gz
+/pkg/
+/src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..624025041cf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: <aaron.l.france@gmail.com>
+pkgname=kairosdb
+pkgver=0.9.6
+pkgrel=1
+pkgdesc="a fast distributed scalable time series database written on top of Cassandra."
+arch=('i686' 'x86_64')
+url="https://github.com/kairosdb/kairosdb"
+license=('Apache')
+depends=('cassandra')
+makedepends=('deb2targz')
+provides=('kairosdb')
+source=('https://github.com/kairosdb/kairosdb/releases/download/v0.9.4/kairosdb_0.9.4-6_all.deb'
+ 'kairosdb.service'
+ 'kairosdb')
+md5sums=('f0f656f58b0b3b0b9cb26d3c573b98fb'
+ '3f957c6bfc4e1206dba09c049baa10a0'
+ 'ab930d18b8f13ee662a1f7d6380573a0')
+
+build() {
+ deb2targz $srcdir/kairosdb_0.9.4-6_all.deb > /dev/null 2>&1
+ tar zxvf $srcdir/kairosdb_0.9.4-6_all.tar.gz > /dev/null 2>&1
+}
+
+package() {
+ sed -i 's/\(kairosdb.service.datastore=org.kairosdb.datastore.h2.H2Module\)/#\1/g' \
+ $srcdir/opt/kairosdb/conf/kairosdb.properties
+ sed -i 's/#\(kairosdb.service.datastore=org.kairosdb.datastore.cassandra.CassandraModule\)/\1/g' \
+ $srcdir/opt/kairosdb/conf/kairosdb.properties
+
+ mv $srcdir/opt/ $pkgdir/opt/
+ mkdir -p ${pkgdir}/{etc/kairosdb,var/log/kairosdb}
+
+ install -Dm644 ${srcdir}/kairosdb.service ${pkgdir}/lib/systemd/system/kairosdb.service
+ install -Dm644 ${srcdir}/kairosdb ${pkgdir}/usr/bin/kairosdb
+ chmod +x ${pkgdir}/usr/bin/kairosdb
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/README.md b/README.md
new file mode 100644
index 00000000000..b0a705a0c80
--- /dev/null
+++ b/README.md
@@ -0,0 +1,4 @@
+kairosdb-pkgbuild
+=================
+
+An archlinux PKGBUILD for kairosdb
diff --git a/kairosdb b/kairosdb
new file mode 100755
index 00000000000..0da13e3fc35
--- /dev/null
+++ b/kairosdb
@@ -0,0 +1,2 @@
+#!/usr/bin/sh
+/opt/kairosdb/bin/kairosdb.sh run \ No newline at end of file
diff --git a/kairosdb.service b/kairosdb.service
new file mode 100644
index 00000000000..77b28fb981f
--- /dev/null
+++ b/kairosdb.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=KairosDB is a fast distributed scalable time series database written on top of Cassandra.
+Requires=cassandra.service
+After=cassandra.service
+
+[Service]
+Type=forking
+User=root
+PIDFile=/var/run/kairosdb.pid
+ExecStart=/opt/kairosdb/bin/kairosdb.sh start
+ExecStop=/opt/kairosdb/bin/kairosdb.sh stop
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file