summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD16
1 files changed, 9 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a3286de2cfa..1e4851f08f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,26 +12,28 @@ provides=('kairosdb')
source=('https://github.com/kairosdb/kairosdb/releases/download/v1.2.2/kairosdb-1.2.2-1.tar.gz'
'kairosdb.service'
'kairosdb')
+noextract=('kairosdb-1.2.2-1.tar.gz')
md5sums=('269076a61419397b22bc35c6dfa0af17'
'3f957c6bfc4e1206dba09c049baa10a0'
'ab930d18b8f13ee662a1f7d6380573a0')
-build() {
- tar zxvf $srcdir/kairosdb-1.2.2-1.tar.gz
+prepare() {
+ mkdir $srcdir/tarfiles
+ tar zxvf $srcdir/kairosdb-1.2.2-1.tar.gz --directory $srcdir/tarfiles/
}
package() {
sed -i 's/\(kairosdb.service.datastore=org.kairosdb.datastore.h2.H2Module\)/#\1/g' \
- $srcdir/kairosdb/conf/kairosdb.properties
+ $srcdir/tarfiles/kairosdb/conf/kairosdb.properties
sed -i 's/#\(kairosdb.service.datastore=org.kairosdb.datastore.cassandra.CassandraModule\)/\1/g' \
- $srcdir/kairosdb/conf/kairosdb.properties
+ $srcdir/tarfiles/kairosdb/conf/kairosdb.properties
mkdir -p ${pkgdir}/{etc/kairosdb,var/log/kairosdb,opt}
- cp -r $srcdir/kairosdb $pkgdir/opt/kairosdb
+ cp -r $srcdir/tarfiles/kairosdb $pkgdir/opt/kairosdb
install -Dm644 ${srcdir}/kairosdb.service ${pkgdir}/usr/lib/systemd/system/kairosdb.service
- install -Dm644 ${srcdir}/kairosdb/bin/kairosdb.sh ${pkgdir}/opt/kairosdb/bin/kairosdb
- chmod +x ${pkgdir}/opt/kairosdb/bin/kairosdb
+ install -Dm644 ${srcdir}/kairosdb ${pkgdir}/usr/bin/kairosdb
+ chmod +x ${pkgdir}/usr/bin/kairosdb
}
# vim:set ts=2 sw=2 et: