summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGoliathLabs2020-04-25 21:44:50 +0200
committerGoliathLabs2020-04-25 21:44:50 +0200
commitc98cae4d98f8ec4239af9ae439d7c1ea640a9295 (patch)
tree5f07cc7275abf2d6fd39c3438813fb72199d5d99 /PKGBUILD
parentb450c58ec5a5e84b4dcb52517abc9ec3ccae1bd7 (diff)
downloadaur-logstash-xpack.tar.gz
Updated: 7.6.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 44 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a7ac117f68e..744855a8c49 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,15 @@
-# Maintainer: Eric Liu <eric@hnws.me>
+# Maintainer: Felix Golatofski <contact@xdfr.de>
+# Contributor: Eric Liu <eric@hnws.me>
# Official repo maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Official repo maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=logstash-xpack
_pkgname=logstash
-pkgver=7.5.1
-pkgrel=2
+pkgver=7.6.2
+_jrubyver=9.2.7.0
+pkgrel=1
pkgdesc='Tool for managing events and logs'
-url='https://www.elastic.co/products/logstash/'
+url='https://www.elastic.co/logstash'
arch=('x86_64')
license=('Apache')
depends=('java-runtime-headless>=8' 'ruby' 'ruby-bundler' 'coreutils' 'awk')
@@ -19,13 +21,19 @@ backup=('etc/conf.d/logstash'
'etc/logstash/log4j2.properties'
'etc/logstash/logstash.yml'
'etc/logstash/pipelines.yml')
-source=(https://artifacts.elastic.co/downloads/logstash/$_pkgname-$pkgver.tar.gz
+_jrubydist=jruby-dist-${_jrubyver}-bin.tar.gz
+source=(https://github.com/elastic/logstash/archive/v${pkgver}/${_pkgname}-${pkgver}.tar.gz
+ https://repo1.maven.org/maven2/org/jruby/jruby-dist/${_jrubyver}/${_jrubydist}
+ build.patch
logstash.service
logstash@.service
logstash-sysuser.conf
logstash-tmpfile.conf
bundle.config)
-sha256sums=('72f9454c82e8ddd509b5e8d41de0b5089c8722041181963e70de60fd38558606'
+noextract=(${_jrubydist})
+sha256sums=('3e0c920c4d2a3ea0ac5a5990cd163ef232d363b622012a545a640b2b7bede1e8'
+ 'da7c1a5ce90015c0bafd4bca0352294e08fe1c9ec049ac51e82fe57ed50e1348'
+ '9ae56b463b465f16363f60670c7da4e84a9bf03c17324c4364c089d7a480cb4b'
'2b8b29297202334c784fdd7f2eb8d7e776c24c783b3c9f8387b500ab0039335c'
'a01ea29d4f53d785f6eb926ebfe445e64ed5b3dab5d0418848589dd79502d876'
'18a68a59ddb0ce19778e83b65e68dd568d65b7180bf45b4cf298fb332d69eb26'
@@ -39,7 +47,37 @@ prepare() {
sed -e '1i [ -f /etc/profile.d/jre.sh ] && . /etc/profile.d/jre.sh' -i bin/logstash.lib.sh
# remove deprecated JVM options
+ sed 's|"-XX:+UseParNewGC", ||g' -i logstash-core/benchmarks/build.gradle
sed 's|-XX:+UseParNewGC||g' -i config/jvm.options
+
+ # patch -p1 -i "$srcdir"/build.patch
+
+ # Use system gradle (currently not working)
+ # sed 's;./gradlew;gradle;g' -i rakelib/*.rake
+
+ # Skip downloadAndInstallJRuby task in the bootstrap process
+ sed /downloadAndInstallJRuby/d -i rakelib/vendor.rake
+
+ mkdir -p vendor/_/
+ cd vendor/_/
+ ln -s "$srcdir"/${_jrubydist}
+}
+
+build() {
+ cd $_pkgname-${pkgver}
+ export PATH="/usr/lib/jvm/java-10-openjdk/bin:$PWD/vendor/jruby/bin:$PATH"
+
+ # gradle -x :logstash-core:javadoc bootstrap (system gradle currently not working)
+ RELEASE=1 OSS=1 ./gradlew -x :logstash-core:javadoc installDefaultGems
+
+ rm -r build ci logstash-core/{build,src,spec} qa pkg spec rakelib tools .gradle \
+ vendor/_ vendor/bundle/jruby/*/cache vendor/jruby/lib/ruby/gems/shared/cache
+
+ cd vendor/jruby/lib
+ mv jni jni-temp
+ mkdir jni
+ mv jni-temp/x86_64-Linux jni/
+ rm -rf jni-temp
}
package() {