Commit 40fafb64 authored by Leo's avatar Leo

testing/netdata: enable https:// support

parent 2b8804b3
......@@ -2,13 +2,14 @@
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=netdata
pkgver=1.18.1
pkgrel=1
pkgrel=2
pkgdesc="Real-time performance monitoring"
url="https://www.netdata.cloud/"
license="GPL-3.0-or-later"
arch="all"
depends="bash"
makedepends="zlib-dev e2fsprogs-dev linux-headers libcap-dev automake autoconf"
makedepends="zlib-dev e2fsprogs-dev linux-headers libcap-dev automake autoconf
openssl-dev"
pkgusers="netdata"
pkggroups="netdata"
subpackages="$pkgname-openrc $pkgname-nodejs::noarch $pkgname-python::noarch"
......@@ -16,14 +17,19 @@ install="$pkgname.pre-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/netdata/netdata/archive/v$pkgver.tar.gz
$pkgname.initd"
build() {
prepare() {
default_prepare
autoreconf -i
}
build() {
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-zlib \
--with-math \
--enable-https \
--with-webdir=/usr/share/webapss/netdata \
--with-user=netdata
make
......@@ -45,6 +51,10 @@ package() {
# cap needed for disk I/O utilization reporting
setcap cap_dac_read_search,cap_sys_ptrace+ep \
"$pkgdir"/usr/libexec/netdata/plugins.d/apps.plugin
install -d -Dm0750 -o netdata -g netdata "$pkgdir"/var/lib/netdata
install -d -Dm0750 -o netdata -g netdata "$pkgdir"/var/log/netdata
install -d -Dm0750 -o netdata -g netdata "$pkgdir"/var/cache/netdata
}
nodejs() {
......@@ -86,4 +96,4 @@ python() {
}
sha512sums="fb72f4729e05ab83fe9462e31b10fc40243472ea9f6cbb9421e2ca549810f2f80b28b05e886faa66e15c53b317ee559a3e0fb3d382c36a424dd39fec779918d9 netdata-1.18.1.tar.gz
0cc96162524bec0562e7ba0449d7d39ca6edd1928e2c1ac9f579a1fe5ea442f8ce670d04e84d2cac7c09843a9df7ed8151a6a3d2377713ffba4c86b43b8d9096 netdata.initd"
98dd8f188dfffe1221d05a4dd369e8f4f8dc2bf7a722ac8769afd351324b53b37c5675e705a4d42d20ce93ea9497fda9eb2457edaa500d4e72c9f1350b1d4652 netdata.initd"
......@@ -10,3 +10,9 @@ depend() {
need net
after apache2 squid nginx mysql named opensips hostapd postfix lm_sensors
}
start_pre() {
checkpath --directory --owner netdata:netdata --mode 0750 /var/lib/netdata
checkpath --directory --owner netdata:netdata --mode 0750 /var/log/netdata
checkpath --directory --owner netdata:netdata --mode 0750 /var/cache/netdata
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment