aboutsummaryrefslogtreecommitdiffstats
path: root/testing/filebeat
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-04-17 10:36:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-04-17 10:37:24 +0000
commitb1c8fbcc254f0f10f91571fd39163f061c3119ea (patch)
tree0c4760bc2828e9d53e17dd9ff67c96163e4be9de /testing/filebeat
parent09a9e1e77cb2033f483f8d298d79f1c851184ab0 (diff)
testing/filebeat: upgrade to 6.2.3 and modernize
Diffstat (limited to 'testing/filebeat')
-rw-r--r--testing/filebeat/APKBUILD28
1 files changed, 9 insertions, 19 deletions
diff --git a/testing/filebeat/APKBUILD b/testing/filebeat/APKBUILD
index afbda665357..04e70b2a3a0 100644
--- a/testing/filebeat/APKBUILD
+++ b/testing/filebeat/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
# Maintainer: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
pkgname=filebeat
-pkgver=5.6.3
+pkgver=6.2.3
pkgrel=0
pkgdesc="Lightweight Shipper for Logs"
pkgusers="root"
@@ -11,7 +11,7 @@ license="Apache-2.0"
depends=""
makedepends="go"
install=""
-subpackages=""
+subpackages="$pkgname-openrc"
source="beats-${pkgver}.tar.gz::https://github.com/elastic/beats/archive/v$pkgver.tar.gz
filebeat.initd
filebeat.confd
@@ -21,34 +21,24 @@ builddir="$srcdir/src/github.com/elastic/beats/$pkgname"
prepare() {
mkdir -p "$srcdir/src/github.com/elastic/"
- mv "$srcdir/beats-${pkgver}" "$srcdir/src/github.com/elastic/beats" || return 1
+ mv "$srcdir/beats-${pkgver}" "$srcdir/src/github.com/elastic/beats"
default_prepare
}
build() {
cd "$builddir"
- GOPATH="$srcdir" go build -v || return 1
+ GOPATH="$srcdir" go build -v
}
package() {
cd "$builddir"
- install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
- install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname || return 1
- install -Dm644 "$builddir"/filebeat.template.json "$pkgdir/etc/$pkgname/filebeat.template.json" || return 1
- install -Dm644 "$builddir"/filebeat.template-es2x.json "$pkgdir/etc/$pkgname/filebeat.template-es2x.json" || return 1
- install -Dm644 "$srcdir/filebeat.yml" "$pkgdir/etc/$pkgname/filebeat.yml" || return 1
- install -Dm755 "$builddir/filebeat" "$pkgdir/usr/bin/filebeat" || return 1
+ install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ install -Dm644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+ install -Dm644 "$srcdir/filebeat.yml" "$pkgdir/etc/$pkgname/filebeat.yml"
+ install -Dm755 "$builddir/filebeat" "$pkgdir/usr/bin/filebeat"
}
-md5sums="e0ca8e9835eedaf0f861ce602e84b743 beats-5.6.3.tar.gz
-57712ca4cea6a05e852511c27c8d85bd filebeat.initd
-a65117f047e595e1f544d384a8fb2458 filebeat.confd
-4ef2573383a066ba1070482016527cc4 filebeat.yml"
-sha256sums="52a4c9094287f725a089e161dc71d9cdf0caf73595e8835a5d0636d3ad333bbe beats-5.6.3.tar.gz
-eaa21f4937139c86b34489867590f006220757b3af8d7ef0fffafce937640930 filebeat.initd
-ea4f0b98a695d7044d62c97e03eb8310fc30b52917e0dde01f3567cc42858544 filebeat.confd
-d406ef8860873cea1aef5546147f8ccadeb3796c0c81a0e62e4d91bc50a379e5 filebeat.yml"
-sha512sums="6b3d61f18b1bd45db4ba5d08e92b94f1fb48610658237c91f4404a4074f82badbac2ab9bc236c1f64567a0dd1f62022c3d092a9017073069b4497c01f1b1d94b beats-5.6.3.tar.gz
+sha512sums="b0628bc8df6460ac6b1610d7bb6cc2bb93898887f0617324d79727dbeca5cce6de28dc8b584663c66888fc23912ced1b3e231c046ecb343e09899df3026c997e beats-6.2.3.tar.gz
ea49bc4da6f66e01ad2b563d9179a992c6dc07410c8ad107f7c5ce65426ee6010871b1cbf9634310765aa5d2da0261eb2aee2c93bbe11de5f0d6d7e903402d15 filebeat.initd
25321037cd036f05186c21c73889e9b2716bbfa30597edcf90a110fca761396f30df20142e025d6175ae6ed743f08c574fa54e8df8577c1bf416bce17bec7170 filebeat.confd
b0d5fa1d37041a4f1383451107abcdab1ce15ed537f702f55756f59c2110445dcddaf7c58f2a0561e18b83e3cab72fceb9d931bae9267f1acd9d35135555d6f7 filebeat.yml"