42 lines
2.2 KiB
Bash
42 lines
2.2 KiB
Bash
|
# Maintainer: Trey Blancher $(base64 -d <<< dHJleUBibGFuY2hlci5uZXQK)
|
||
|
pkgname=newrelic-infra-bin
|
||
|
_pkg=${pkgname//-bin/}
|
||
|
pkgver=1.48.1
|
||
|
pkgrel=1
|
||
|
pkgdesc="New Relic - All-in-On Observability - infrastructure agent"
|
||
|
arch=('aarch64' 'armv7h' 'x86_64')
|
||
|
url="https://github.com/newrelic/infrastructure-agent/"
|
||
|
license=('Apache')
|
||
|
groups=('newrelic')
|
||
|
provides=('newrelic-infra')
|
||
|
conflicts=('newrelic-infra')
|
||
|
changelog="CHANGELOG"
|
||
|
backup=('etc/newrelic-infra/newrelic-infra.yml')
|
||
|
source=('https://raw.githubusercontent.com/newrelic/infrastructure-agent/master/assets/examples/infrastructure/newrelic-infra-template.yml.example')
|
||
|
sha256sums=('60f2a31b2d461f029c786a18f1feb393c1a5e43beac520b1c7d5e12b45590ae0')
|
||
|
source_aarch64=("https://github.com/newrelic/infrastructure-agent/releases/download/${pkgver}/${_pkg}_linux_${pkgver}_arm64.tar.gz"{,.asc})
|
||
|
source_armv7h=("https://github.com/newrelic/infrastructure-agent/releases/download/${pkgver}/${_pkg}_linux_${pkgver}_arm.tar.gz"{,.asc})
|
||
|
source_x86_64=("https://github.com/newrelic/infrastructure-agent/releases/download/${pkgver}/${_pkg}_linux_${pkgver}_amd64.tar.gz"{,.asc})
|
||
|
validpgpkeys=('A758B3FBCD43BE8D123A3476BB29EE038ECCE87C')
|
||
|
sha256sums=('SKIP')
|
||
|
|
||
|
package() {
|
||
|
# create destination directories
|
||
|
mkdir -p ${pkgdir}/etc/${_pkg}
|
||
|
mkdir -p ${pkgdir}/usr/bin
|
||
|
mkdir -p ${pkgdir}/usr/lib/systemd/system/
|
||
|
mkdir -p ${pkgdir}/var/db/${_pkg}/{custom-integrations,integrations.d,newrelic-integrations}
|
||
|
|
||
|
install -m u=rw,go=r ${srcdir}/${_pkg}-template.yml.example ${pkgdir}/etc/${_pkg}/${_pkg}.yml
|
||
|
install -m u=rw,go=r ${srcdir}/${_pkg}/etc/init_scripts/systemd/${_pkg}.service ${pkgdir}/usr/lib/systemd/system/
|
||
|
install -m u=rwx,go=rx ${srcdir}/${_pkg}/usr/bin/* ${pkgdir}/usr/bin/
|
||
|
install -m u=rw,go=r ${srcdir}/${_pkg}/var/db/${_pkg}/LICENSE.txt ${pkgdir}/var/db/${_pkg}/
|
||
|
}
|
||
|
sha256sums=('60f2a31b2d461f029c786a18f1feb393c1a5e43beac520b1c7d5e12b45590ae0')
|
||
|
sha256sums_aarch64=('5796cb7b93ad417db3794b01a8ef7c3a1113102ccdd20423a58de57e370d3cf1'
|
||
|
'SKIP')
|
||
|
sha256sums_armv7h=('4803bf4c160f835d3025fbcf7040777d90fe300b68ab7db5f2252293feaf016a'
|
||
|
'SKIP')
|
||
|
sha256sums_x86_64=('7603d2629494fc23effe43ca4bf0e22bc1eb3f60e94453e88d9313f0b85a482b'
|
||
|
'SKIP')
|