aboutsummaryrefslogtreecommitdiffstats
path: root/testing/filebeat
diff options
context:
space:
mode:
authorRamanathan Sivagurunathan <ramzthecoder@gmail.com>2016-09-22 05:32:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-09-22 08:35:52 +0000
commitc68d9a3da9a6997932a06385b0426a0292756f7e (patch)
treeb035fc2ebdaf2186e04f60f3a815c12a1af7749e /testing/filebeat
parente6fd4a5cf8d0ee7990a3c37d088e9b48f6245b95 (diff)
downloadaports-c68d9a3da9a6997932a06385b0426a0292756f7e.tar.bz2
aports-c68d9a3da9a6997932a06385b0426a0292756f7e.tar.xz
testing/filebeat: new aport
https://www.elastic.co/products/beats/filebeat Lightweight Shipper for Log Data
Diffstat (limited to 'testing/filebeat')
-rw-r--r--testing/filebeat/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/filebeat/APKBUILD b/testing/filebeat/APKBUILD
new file mode 100644
index 0000000000..cea6350914
--- /dev/null
+++ b/testing/filebeat/APKBUILD
@@ -0,0 +1,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"