netdata: fix edit-config issue

Fixed edit-config issue having wrong paths, reported on https://github.com/netdata/netdata/issues/6165
Also added extra configure flags, to comply with the netdata way of configuring.

Closes #42330.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
Paul Emm. Katsoulakis 2019-07-23 12:25:44 +02:00 committed by Chongyu Zhu
parent 08b23acb0b
commit 28501c560d
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -16,13 +16,19 @@ class Netdata < Formula
depends_on "openssl" if MacOS.version <= :sierra
def install
system "autoreconf", "-ivf"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--localstatedir=#{var}",
"--libexecdir=#{libexec}",
"--with-math",
"--with-zlib",
"--with-user=netdata",
"UUID_CFLAGS=-I/usr/include",
"UUID_LIBS=-lc"
system "make", "clean"
system "make", "install"
(etc/"netdata").install "system/netdata.conf"