Created
April 2, 2016 16:57
-
-
Save andyshinn/15fd7ab5c0d118c59b864802a6ecaaf5 to your computer and use it in GitHub Desktop.
netdata Alpine Linux package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Andy Shinn <andys@andyshinn.as> | |
# Maintainer: Andy Shinn <andys@andyshinn.as> | |
pkgname=netdata | |
pkgver=1.0.1 | |
pkgrel=0 | |
pkgdesc="Real-time performance monitoring, done right!" | |
url="https://github.com/firehol/netdata" | |
license="GPL" | |
arch="all" | |
depends="bash nodejs" | |
makedepends="autoconf automake libtool zlib-dev" | |
install="$pkgname.pre-install" | |
source="$pkgname-$pkgver.tar.gz::https://github.com/firehol/netdata/archive/0791ed37d0e6af03a7721231ad1684184204df50.tar.gz" | |
_builddir="$srcdir"/$pkgname-master | |
prepare() { | |
cd "$_builddir" | |
autoreconf -vif | |
} | |
build() { | |
cd "$_builddir" | |
./configure \ | |
--prefix=/usr \ | |
--sysconfdir=/etc \ | |
--localstatedir=/var \ | |
--with-zlib \ | |
--with-math \ | |
--with-user=netdata || return 1 | |
make || return 1 | |
} | |
package() { | |
cd "$_builddir" | |
make DESTDIR="$pkgdir" install || return 1 | |
chmod u-s "$pkgdir/usr/libexec/netdata/plugins.d/apps.plugin" | |
} | |
md5sums="a98dace5facb4daa4b88dccdf8b7c4a8 netdata-1.0.1.tar.gz" | |
sha256sums="783299001731ddd9c170c9b3e2cacd6f92e40caab42a82760cb97caaccd9c5c9 netdata-1.0.1.tar.gz" | |
sha512sums="4e83f459b9700cc5711f66623ad844b612037bbefaec4f4824b331bfda9e9fc3016eafdfa404a4db194fc6cc3050ffae47687291a02cb15f44ad95ecb021c6f7 netdata-1.0.1.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
adduser -S -H -s /sbin/nologin -D netdata 2>/dev/null | |
addgroup -S netdata | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment