[arch-commits] Commit in netdata/repos (6 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Thu Apr 21 12:00:15 UTC 2016
Date: Thursday, April 21, 2016 @ 14:00:14
Author: svenstaro
Revision: 171506
archrelease: copy trunk to community-i686, community-x86_64
Added:
netdata/repos/community-i686/
netdata/repos/community-i686/PKGBUILD
(from rev 171505, netdata/trunk/PKGBUILD)
netdata/repos/community-i686/netdata.install
(from rev 171505, netdata/trunk/netdata.install)
netdata/repos/community-x86_64/
netdata/repos/community-x86_64/PKGBUILD
(from rev 171505, netdata/trunk/PKGBUILD)
netdata/repos/community-x86_64/netdata.install
(from rev 171505, netdata/trunk/netdata.install)
----------------------------------+
community-i686/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++
community-i686/netdata.install | 25 ++++++++++++++++++++++
community-x86_64/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++
community-x86_64/netdata.install | 25 ++++++++++++++++++++++
4 files changed, 132 insertions(+)
Copied: netdata/repos/community-i686/PKGBUILD (from rev 171505, netdata/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2016-04-21 12:00:14 UTC (rev 171506)
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: SanskritFritz (gmail)
+
+pkgname=netdata
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Real-time performance monitoring, in the greatest possible detail, over the web."
+url="https://github.com/firehol/netdata/wiki"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('libmnl' 'libnetfilter_acct' 'zlib')
+optdepends=('nodejs: Webbox plugin')
+source=("http://firehol.org/download/netdata/releases/v$pkgver/netdata-$pkgver.tar.xz")
+backup=('etc/netdata/netdata.conf' 'etc/netdata/charts.d.conf' 'etc/netdata/apps_groups.conf')
+install="$pkgname.install"
+md5sums=('19e6d2b142906f824d0951428d0c030e')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./autogen.sh
+ ./configure \
+ --prefix="/usr" \
+ --sbindir="/usr/bin" \
+ --sysconfdir="/etc" \
+ --libexecdir="/usr/lib" \
+ --localstatedir="/var" \
+ --with-zlib --with-math --with-user=netdata
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ touch "$pkgdir/etc/netdata/netdata.conf"
+
+ install -Dm0644 "system/netdata.service" "$pkgdir/usr/lib/systemd/system/netdata.service"
+}
+
Copied: netdata/repos/community-i686/netdata.install (from rev 171505, netdata/trunk/netdata.install)
===================================================================
--- community-i686/netdata.install (rev 0)
+++ community-i686/netdata.install 2016-04-21 12:00:14 UTC (rev 171506)
@@ -0,0 +1,25 @@
+chown_netdata() {
+ chown -R netdata:netdata /var/log/netdata
+ chown -R netdata:netdata /var/cache/netdata
+ chown -R netdata:netdata /usr/share/netdata/web
+ chown -R netdata:netdata /etc/netdata
+}
+
+post_install() {
+ getent group netdata > /dev/null || groupadd -g 134 netdata 1>/dev/null
+ getent passwd netdata > /dev/null || useradd -u 134 -d /var/cache/netdata -g netdata -s /bin/nologin netdata 1>/dev/null
+
+ chown_netdata
+
+ echo
+ echo "After the daemon has been started for the first time,"
+ echo "download the default config file from"
+ echo "http://127.0.0.1:19999/netdata.conf"
+ echo
+ echo "Copy it to /etc/netdata/ and modify it."
+ echo
+}
+
+post_upgrade() {
+ chown_netdata
+}
Copied: netdata/repos/community-x86_64/PKGBUILD (from rev 171505, netdata/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2016-04-21 12:00:14 UTC (rev 171506)
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: SanskritFritz (gmail)
+
+pkgname=netdata
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Real-time performance monitoring, in the greatest possible detail, over the web."
+url="https://github.com/firehol/netdata/wiki"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('libmnl' 'libnetfilter_acct' 'zlib')
+optdepends=('nodejs: Webbox plugin')
+source=("http://firehol.org/download/netdata/releases/v$pkgver/netdata-$pkgver.tar.xz")
+backup=('etc/netdata/netdata.conf' 'etc/netdata/charts.d.conf' 'etc/netdata/apps_groups.conf')
+install="$pkgname.install"
+md5sums=('19e6d2b142906f824d0951428d0c030e')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./autogen.sh
+ ./configure \
+ --prefix="/usr" \
+ --sbindir="/usr/bin" \
+ --sysconfdir="/etc" \
+ --libexecdir="/usr/lib" \
+ --localstatedir="/var" \
+ --with-zlib --with-math --with-user=netdata
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ touch "$pkgdir/etc/netdata/netdata.conf"
+
+ install -Dm0644 "system/netdata.service" "$pkgdir/usr/lib/systemd/system/netdata.service"
+}
+
Copied: netdata/repos/community-x86_64/netdata.install (from rev 171505, netdata/trunk/netdata.install)
===================================================================
--- community-x86_64/netdata.install (rev 0)
+++ community-x86_64/netdata.install 2016-04-21 12:00:14 UTC (rev 171506)
@@ -0,0 +1,25 @@
+chown_netdata() {
+ chown -R netdata:netdata /var/log/netdata
+ chown -R netdata:netdata /var/cache/netdata
+ chown -R netdata:netdata /usr/share/netdata/web
+ chown -R netdata:netdata /etc/netdata
+}
+
+post_install() {
+ getent group netdata > /dev/null || groupadd -g 134 netdata 1>/dev/null
+ getent passwd netdata > /dev/null || useradd -u 134 -d /var/cache/netdata -g netdata -s /bin/nologin netdata 1>/dev/null
+
+ chown_netdata
+
+ echo
+ echo "After the daemon has been started for the first time,"
+ echo "download the default config file from"
+ echo "http://127.0.0.1:19999/netdata.conf"
+ echo
+ echo "Copy it to /etc/netdata/ and modify it."
+ echo
+}
+
+post_upgrade() {
+ chown_netdata
+}
More information about the arch-commits
mailing list