aboutsummaryrefslogtreecommitdiffstats
path: root/testing/filebeat/APKBUILD
blob: cea6350914cb9c4316bcad131b84bbaca5ea3679 (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
# Contributor: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
# Maintainer: Ramanathan Sivagurunathan <ramzthecoder@gmail.com>
pkgname=filebeat
pkgver=1.3.1
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=""
depends_dev="go bash"
makedepends="$depends_dev"
install=""
subpackages=""
source="beats-${pkgver}.tar.gz::https://github.com/elastic/beats/archive/v$pkgver.tar.gz"
builddir="$srcdir/github.com/elastic/beats/filebeat"

prepare() {
    mkdir -p "$srcdir/github.com/elastic/"
    mv "beats-${pkgver}" "$srcdir/github.com/elastic/beats"
}

build() {
    export GOPATH="$srcdir/../"
    cd "$builddir"
    make || return 1
}

package() {
    mkdir -p "$pkgdir"
    cd "$pkgdir"
    install -Dm644 "$builddir"/etc/filebeat.template.json ./etc/$pkgname/filebeat.template.json
    install -Dm644 "$builddir/etc/filebeat.yml" ./etc/$pkgname/filebeat.yml
    install -Dm755 "$builddir/filebeat" ./usr/bin/filebeat
}

md5sums="349e289a7f39e8e10a64204fcb014e09  beats-1.3.1.tar.gz"
sha256sums="1d8e41b42a0b2dd59403795ff07cbfd8a9a76477731c38122aa9242b47b054e0  beats-1.3.1.tar.gz"
sha512sums="60f6d4ae93bb01e74311d7ccc3d367707f888f58898b89a0ea7512c96b6e1369edf7dc2afe3615df97e8c311629d9fc1e9fc2f1abe8edcbb5bc5bcf47c82107c  beats-1.3.1.tar.gz"