# Maintainer: Tyler Langlois pkgname=packetbeat-bin _pkgbase=${pkgname%%-bin} pkgver=1.1.1 pkgrel=1 pkgdesc='An open source network packet analyzer that ships data to Elasticsearch (precompiled)' arch=('i686' 'x86_64') url="https://www.elastic.co/products/beats/$_pkgbase" license=('APACHE') backup=("etc/$_pkgbase/$_pkgbase.yml") optdepends=('elasticsearch: for running standalone installation') options=('!strip') provides=('packetbeat') conflicts=('packetbeat') source=("$_pkgbase.service") sha256sums=('e45629a37d5c305efa26e2b6a68561528762081681e547e312bb058cbff76125') source_i686=("https://download.elastic.co/beats/$_pkgbase/$_pkgbase-$pkgver-i686.tar.gz") source_x86_64=("https://download.elastic.co/beats/$_pkgbase/$_pkgbase-$pkgver-x86_64.tar.gz") sha256sums_i686=('08d80a5917e6206d1ef39953c50f95803f5d0b14fc8efe7934c3f610399e9f4c') sha256sums_x86_64=('a2cd9615eff9dd7af3c259a0d62e149bf831fba286a0e6e9880e104cc91d429e') package() { cd "$srcdir/$_pkgbase-$pkgver-$CARCH" install -D -m755 $_pkgbase "$pkgdir/usr/bin/$_pkgbase" install -D -m644 $_pkgbase.yml "$pkgdir/etc/$_pkgbase/$_pkgbase.yml" install -D -m644 $_pkgbase.template.json \ "$pkgdir/etc/$_pkgbase/$_pkgbase.template.json" install -D -m644 "$srcdir/$_pkgbase.service" \ "$pkgdir/usr/lib/systemd/system/$_pkgbase.service" }