diff options
author | Ben Reedy <breed808@breed808.com> | 2016-12-21 22:50:08 +1000 |
---|---|---|
committer | Ben Reedy <breed808@breed808.com> | 2016-12-26 08:40:42 +1000 |
commit | 2d3ef107d388edbb067057ea4b76d8e0cb98aab4 (patch) | |
tree | 8ed890f67877cf04afc2fd62ac5f40ea39156010 /netdata.spec.in | |
parent | 0fafcb8806b35718d0b78929ee3eee3086b1c1c9 (diff) |
spec: Build changes
Added automake/autoconf build dependencies
Modified %files entries
Add setcap/setuid to %post scriptlet
Diffstat (limited to 'netdata.spec.in')
-rw-r--r-- | netdata.spec.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/netdata.spec.in b/netdata.spec.in index f829f8737a..53afcb983b 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -35,6 +35,8 @@ Group: Applications/System Source0: http://firehol.org/download/netdata/releases/v@PACKAGE_VERSION@/%{name}-@PACKAGE_VERSION@.tar.xz URL: http://my-netdata.io/ %distro_buildrequires +BuildRequires: /usr/bin/autoconf +BuildRequires: /usr/bin/automake BuildRequires: pkgconfig BuildRequires: xz BuildRequires: zlib-devel @@ -79,6 +81,7 @@ happened, on your systems and applications. %setup -q %build +./autogen.sh %configure \ --with-zlib \ --with-math \ @@ -115,6 +118,7 @@ install -m755 system/netdata-init-d \ %post %distro_post +setcap cap_dac_read,cap_sys_ptrace+ep /usr/libexec/netdata/plugins.d/apps.plugin || chmod 1755 /usr/libexec/netdata/plugins.d/apps.plugin %preun %distro_preun @@ -131,6 +135,7 @@ getent passwd netdata >/dev/null || \ exit 0 %post +setcap cap_dac_read,cap_sys_ptrace+ep /usr/libexec/netdata/plugins.d/apps.plugin || chmod 1755 /usr/libexec/netdata/plugins.d/apps.plugin # Register the netdata service /sbin/chkconfig --add netdata # Only gets run on initial install (not upgrades or uninstalls) @@ -160,17 +165,21 @@ exit 0 rm -rf $RPM_BUILD_ROOT %files +%doc README.md %defattr(-,root,root) %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/*.conf -#%config(noreplace) %{_sysconfdir}/%{name}/charts.d/*.conf +%config(noreplace) %{_sysconfdir}/%{name}/charts.d/*.conf %config(noreplace) %{_sysconfdir}/%{name}/health.d/*.conf -#%config(noreplace) %{_sysconfdir}/%{name}/node.d/*.conf +%config(noreplace) %{_sysconfdir}/%{name}/node.d/*.conf %config(noreplace) %{_sysconfdir}/%{name}/python.d/*.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} +# To be eventually moved to %%_defaultdocdir +%{_sysconfdir}/%{name}/node.d/*.md + %{_libexecdir}/%{name} %{_sbindir}/%{name} |