summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPaul Severance2015-08-01 04:36:28 +0000
committerPaul Severance2015-08-01 04:36:28 +0000
commitd77c11c1464c83e3205508188863e364cb8c55cf (patch)
treebdd210f230dbc5cc7780e62a453673cb9939d40e /PKGBUILD
downloadaur-d77c11c1464c83e3205508188863e364cb8c55cf.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..195532ed7b5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Preston <pentie [at] gmail.com>
+
+pkgname=newrelic-sysmond
+pkgver=2.1.0.124
+pkgrel=1
+pkgdesc="system monitor services provided by newrelic"
+arch=('i686' 'x86_64')
+url="http://newrelic.com/"
+license=('non-free')
+depends=('glibc' 'bash')
+makedepends=('binutils')
+backup=('etc/newrelic/nrsysmond.cfg')
+install=newrelic-sysmond.install
+source=("http://download.newrelic.com/server_monitor/archive/${pkgver}/${pkgname}"-"${pkgver}"-"linux.tar.gz"
+ "newrelic-sysmond.service"
+ "newrelic-sysmond.install")
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver-linux"
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver-linux"
+ mkdir -p "$pkgdir"/usr/bin/ \
+ "$pkgdir"/etc/newrelic/ \
+ "$pkgdir"/etc/default/ \
+ "$pkgdir"/usr/share/doc/newrelic/ \
+ "$pkgdir"/usr/lib/systemd/system/;
+
+ if [ $CARCH == i686 ]; then
+ install -v -Dm755 ./daemon/nrsysmond.x86 "$pkgdir"/usr/bin/nrsysmond
+ else
+ install -v -Dm755 ./daemon/nrsysmond.x64 "$pkgdir"/usr/bin/nrsysmond
+ fi
+
+ install -v -Dm644 ./nrsysmond.cfg "$pkgdir"/etc/newrelic/
+ install -v -Dm755 ./scripts/nrsysmond-config "$pkgdir"/usr/bin/
+ install -v -Dm644 ./scripts/newrelic-sysmond.default.debian "$pkgdir"/etc/default/newrelic-sysmond
+ install -v -Dm644 INSTALL.txt LICENSE.txt "$pkgdir"/usr/share/doc/newrelic/
+ install -v -Dm644 ../newrelic-sysmond.service "$pkgdir"/usr/lib/systemd/system/
+}
+
+md5sums=('b18f27bec4c9e5a5cf524225e41a7d15'
+ 'f4ebc44c550896309d6121455a8669f3'
+ 'aa0022b03b291c97f5f4b3cb2d24104d')