blob: 95266bbe617629df77538ff65a45fda1f8c3e506 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Contributor: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
# Maintainer: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
pkgname=filebeat
pkgver=5.1.2
pkgrel=0
pkgdesc="Beats - Lightweight shippers for Elasticsearch & Logstash"
pkgusers="root"
url="https://www.elastic.co/products/beats"
arch="all"
license="ASL 2.0"
depends=""
makedepends="go"
install=""
subpackages=""
source="beats-${pkgver}.tar.gz::https://github.com/elastic/beats/archive/v$pkgver.tar.gz
filebeat.initd
filebeat.confd
filebeat.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
}
build() {
cd "$builddir"
GOPATH="$srcdir" go build -v || return 1
}
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
}
md5sums="89ba4e5eca07454f5d83debbf4ff48d6 beats-5.1.2.tar.gz
57712ca4cea6a05e852511c27c8d85bd filebeat.initd
a65117f047e595e1f544d384a8fb2458 filebeat.confd
4ef2573383a066ba1070482016527cc4 filebeat.yml"
sha256sums="7cd554f8be6b02290ebbc17c9820acde3dc59108672ced7a0cf5486faa3e23ce beats-5.1.2.tar.gz
eaa21f4937139c86b34489867590f006220757b3af8d7ef0fffafce937640930 filebeat.initd
ea4f0b98a695d7044d62c97e03eb8310fc30b52917e0dde01f3567cc42858544 filebeat.confd
d406ef8860873cea1aef5546147f8ccadeb3796c0c81a0e62e4d91bc50a379e5 filebeat.yml"
sha512sums="f5ade54c3a2471680067fc5f6861ddcc052177c473f40d2135ba281e63172a4ba386368f77e5e4ba77b60c88ee20e5cd0095705aa3ed6e2588fda034de6b116f beats-5.1.2.tar.gz
ea49bc4da6f66e01ad2b563d9179a992c6dc07410c8ad107f7c5ce65426ee6010871b1cbf9634310765aa5d2da0261eb2aee2c93bbe11de5f0d6d7e903402d15 filebeat.initd
25321037cd036f05186c21c73889e9b2716bbfa30597edcf90a110fca761396f30df20142e025d6175ae6ed743f08c574fa54e8df8577c1bf416bce17bec7170 filebeat.confd
b0d5fa1d37041a4f1383451107abcdab1ce15ed537f702f55756f59c2110445dcddaf7c58f2a0561e18b83e3cab72fceb9d931bae9267f1acd9d35135555d6f7 filebeat.yml"
|