Skip to content
Snippets Groups Projects
Commit 6d63d91a authored by Kevin Daudt's avatar Kevin Daudt :computer:
Browse files

testing/metricbeat: upgrade to 7.13.1 and modernize

parent 6ec5a1eb
No related branches found
No related tags found
No related merge requests found
# Contributor: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
# Maintainer: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
pkgname=metricbeat
pkgver=6.2.3
pkgrel=3
pkgver=7.13.1
pkgrel=0
pkgdesc="MetricBeat - Lightweight shipper for system and service statistics"
pkgusers="root"
url="https://www.elastic.co/products/beats"
arch="all !aarch64 !armhf !armv7"
license="ASL 2.0"
depends=""
license="Apache-2.0"
makedepends="go"
install=""
subpackages=""
source="beats-${pkgver}.tar.gz::https://github.com/elastic/beats/archive/v$pkgver.tar.gz
subpackages="$pkgname-openrc"
source="beats-$pkgver.tar.gz::https://github.com/elastic/beats/archive/v$pkgver.tar.gz
metricbeat.initd
metricbeat.confd
metricbeat.yml
"
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
default_prepare
}
builddir="$srcdir/beats-$pkgver"
export GOPATH="$srcdir/go"
export GOCACHE="$srcdir/go-build"
export GOTEMPDIR="$srcdir/go"
export GOFLAGS="$GOFLAGS -modcacherw"
build() {
cd "$builddir"
GOPATH="$srcdir" go build -v || return 1
mkdir -p bin
go build -o bin/ -v github.com/elastic/beats/v7/metricbeat
}
check() {
go test -v github.com/elastic/beats/v7/metricbeat
}
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 "$srcdir/metricbeat.yml" "$pkgdir/etc/$pkgname/metricbeat.yml" || return 1
install -Dm755 "$builddir/metricbeat" "$pkgdir/usr/bin/metricbeat" || 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/metricbeat.yml" "$pkgdir/etc/$pkgname/metricbeat.yml"
install -Dm755 "bin/metricbeat" "$pkgdir/usr/bin/metricbeat"
}
sha512sums="b0628bc8df6460ac6b1610d7bb6cc2bb93898887f0617324d79727dbeca5cce6de28dc8b584663c66888fc23912ced1b3e231c046ecb343e09899df3026c997e beats-6.2.3.tar.gz
sha512sums="
25b3b0f7dc27777b5cb934163291060a0dbdeadc2b64e36913ff56de57d8b25578db2fda7d093c4041bf9a04776c970e039402f9c0022cca0cf1cd045fc257c0 beats-7.13.1.tar.gz
a846db44732077c38fd0699592ad27371af75ee8a53419c79197c4e5d727e1745c5145ebefd21073304cb624c5947686626f693e87406b122892f99cebe38f5b metricbeat.initd
91fad211c1ac8b3bb97848f1ff97f7e708cfd100b174ae1839c4dd60d501cd8b7b4e9f0f4dbb936134c4ef19595bf39c53b256990f08f003c3e88893e0c94212 metricbeat.confd
b05e083c2ea2337cebd650f2898385ff40fb7f4fe2d7d46109cec3e960d80566129756e8a45e71ed53ec40c33539295453d363feafb60caec8747ae8d09f9124 metricbeat.yml"
b05e083c2ea2337cebd650f2898385ff40fb7f4fe2d7d46109cec3e960d80566129756e8a45e71ed53ec40c33539295453d363feafb60caec8747ae8d09f9124 metricbeat.yml
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment