netdata.spec.in 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. # SPDX-License-Identifier: GPL-3.0-or-later
  2. %global contentdir %{_datadir}/netdata
  3. %global version @PACKAGE_VERSION@
  4. #TODO: Temporary fix for the build-id error during go.d plugin set up
  5. %global _missing_build_ids_terminate_build 0
  6. # XXX: We are using automatic `Requires:` generation for libraries
  7. # whenever possible, DO NOT LIST LIBRARY DEPENDENCIES UNLESS THE RESULTANT
  8. # PACKAGE IS BROKEN WITHOUT THEM.
  9. AutoReqProv: yes
  10. # This is temporary and should eventually be resolved. This bypasses
  11. # the default rhel __os_install_post which throws a python compile
  12. # error.
  13. %global __os_install_post %{nil}
  14. # We don’t want LTO as it has a minimal performance impact at runtime
  15. # but a huge impact on build times (we want our CI to not take multiple
  16. # hours to finish).
  17. %global _lto_cflags %nil
  18. # Disable eBPF for architectures other than x86
  19. %ifarch x86_64 i386
  20. %global _have_ebpf 1
  21. %else
  22. %global _have_ebpf 0
  23. %endif
  24. # Mitigate the cross-distro mayhem by strictly defining the libexec destination
  25. %define _prefix /usr
  26. %define _sysconfdir /etc
  27. %define _localstatedir /var
  28. %define _libexecdir /usr/libexec
  29. %define _libdir /usr/lib
  30. # Redefine centos_ver to standardize on a single macro
  31. %{?rhel:%global centos_ver %rhel}
  32. #
  33. # Conditional build:
  34. %bcond_without systemd # systemd
  35. %bcond_with netns # build with netns support (cgroup-network)
  36. %if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1140
  37. %else
  38. %undefine with_systemd
  39. %undefine with_netns
  40. %endif
  41. %if %{with systemd}
  42. %if 0%{?suse_version}
  43. %global netdata_initd_buildrequires \
  44. BuildRequires: systemd-rpm-macros \
  45. %{nil}
  46. %global netdata_initd_requires \
  47. %{?systemd_requires} \
  48. %{nil}
  49. %global netdata_init_post %service_add_post netdata.service \
  50. /sbin/service netdata restart > /dev/null 2>&1 \
  51. %{nil}
  52. %global netdata_init_preun %service_del_preun netdata.service \
  53. /sbin/service netdata stop > /dev/null 2>&1 \
  54. %{nil}
  55. %global netdata_init_postun %service_del_postun netdata.service
  56. %else
  57. %global netdata_initd_buildrequires \
  58. BuildRequires: systemd
  59. %global netdata_initd_requires \
  60. Requires(preun): systemd-units \
  61. Requires(postun): systemd-units \
  62. Requires(post): systemd-units \
  63. %{nil}
  64. %global netdata_init_post %systemd_post netdata.service \
  65. /usr/bin/systemctl enable netdata.service \
  66. /usr/bin/systemctl daemon-reload \
  67. /usr/bin/systemctl restart netdata.service \
  68. %{nil}
  69. %global netdata_init_preun %systemd_preun netdata.service
  70. %global netdata_init_postun %systemd_postun_with_restart netdata.service
  71. %endif
  72. %else
  73. %global netdata_initd_buildrequires %{nil}
  74. %global netdata_initd_requires \
  75. Requires(post): chkconfig \
  76. %{nil}
  77. %global netdata_init_post \
  78. /sbin/chkconfig --add netdata \
  79. /sbin/service netdata restart > /dev/null 2>&1 \
  80. %{nil}
  81. %global netdata_init_preun %{nil} \
  82. if [ $1 = 0 ]; then \
  83. /sbin/service netdata stop > /dev/null 2>&1 \
  84. /sbin/chkconfig --del netdata \
  85. fi \
  86. %{nil}
  87. %global netdata_init_postun %{nil} \
  88. if [ $1 != 0 ]; then \
  89. /sbin/service netdata condrestart 2>&1 > /dev/null \
  90. fi \
  91. %{nil}
  92. %endif
  93. Summary: Real-time performance monitoring, done right!
  94. Name: netdata
  95. Version: %{version}
  96. Release: 1%{?dist}
  97. License: GPLv3+
  98. Group: Applications/System
  99. Source0: https://github.com/netdata/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
  100. URL: http://my-netdata.io
  101. # Remove conflicting EPEL packages
  102. Obsoletes: %{name}-conf
  103. Obsoletes: %{name}-data
  104. # #####################################################################
  105. # Core build/install/runtime dependencies
  106. # #####################################################################
  107. # Build dependencies
  108. #
  109. BuildRequires: gcc
  110. BuildRequires: gcc-c++
  111. BuildRequires: make
  112. BuildRequires: git-core
  113. BuildRequires: autoconf
  114. %if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1140
  115. BuildRequires: autoconf-archive
  116. BuildRequires: autogen
  117. %endif
  118. BuildRequires: automake
  119. BuildRequires: cmake
  120. BuildRequires: pkgconfig
  121. BuildRequires: curl
  122. BuildRequires: findutils
  123. BuildRequires: zlib-devel
  124. BuildRequires: libuuid-devel
  125. BuildRequires: libuv-devel >= 1
  126. BuildRequires: openssl-devel
  127. %if 0%{?fedora}
  128. BuildRequires: libwebsockets-devel >= 3.2
  129. %endif
  130. %if 0%{?suse_version}
  131. BuildRequires: judy-devel
  132. BuildRequires: liblz4-devel
  133. BuildRequires: libjson-c-devel
  134. %else
  135. %if 0%{?fedora}
  136. BuildRequires: Judy-devel
  137. BuildRequires: lz4-devel
  138. BuildRequires: json-c-devel
  139. %else
  140. BuildRequires: lz4-devel
  141. BuildRequires: json-c-devel
  142. %endif
  143. %endif
  144. # Core build requirements for service install
  145. %{netdata_initd_buildrequires}
  146. # Runtime dependencies
  147. #
  148. %if 0%{?centos_ver} == 7 || 0%{?centos_ver} == 6
  149. Requires: python
  150. %else
  151. %if 0%{?centos_ver} == 8
  152. Requires: python38
  153. %else
  154. Requires: python3
  155. %endif
  156. %endif
  157. # Core requirements for the install to succeed
  158. Requires(pre): /usr/sbin/groupadd
  159. Requires(pre): /usr/sbin/useradd
  160. %{netdata_initd_requires}
  161. # #####################################################################
  162. # Functionality-dependent package dependencies
  163. # #####################################################################
  164. # Note: Some or all of the Packages may be found in the EPEL repo,
  165. # rather than the standard ones
  166. # nfacct plugin dependencies
  167. BuildRequires: libmnl-devel
  168. %if 0%{?fedora} || 0%{?suse_version} >= 1140
  169. BuildRequires: libnetfilter_acct-devel
  170. %endif
  171. # end nfacct plugin dependencies
  172. # freeipmi plugin dependencies
  173. BuildRequires: freeipmi-devel
  174. # end - freeipmi plugin dependencies
  175. # CUPS plugin dependencies
  176. %if 0%{?centos_ver} != 6 && 0%{?centos_ver} != 7
  177. BuildRequires: cups-devel >= 1.7
  178. %endif
  179. # end - cups plugin dependencies
  180. # Prometheus remote write dependencies
  181. BuildRequires: snappy-devel
  182. BuildRequires: protobuf-devel
  183. %if 0%{?suse_version}
  184. BuildRequires: libprotobuf-c-devel
  185. %else
  186. BuildRequires: protobuf-c-devel
  187. %endif
  188. # end - prometheus remote write dependencies
  189. # #####################################################################
  190. # End of dependency management configuration
  191. # #####################################################################
  192. %description
  193. netdata is the fastest way to visualize metrics. It is a resource
  194. efficient, highly optimized system for collecting and visualizing any
  195. type of realtime timeseries data, from CPU usage, disk activity, SQL
  196. queries, API calls, web site visitors, etc.
  197. netdata tries to visualize the truth of now, in its greatest detail,
  198. so that you can get insights of what is happening now and what just
  199. happened, on your systems and applications.
  200. %prep
  201. %setup -q -n %{name}-%{version}
  202. export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-mosquitto.sh ${RPM_BUILD_DIR}/%{name}-%{version}
  203. %if 0%{!?fedora:1}
  204. export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-lws.sh ${RPM_BUILD_DIR}/%{name}-%{version}
  205. %endif
  206. # Only bundle libJudy if this isn't Fedora or SUSE
  207. %if 0%{!?fedora:1} && 0%{!?suse_version:1}
  208. export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-judy.sh ${RPM_BUILD_DIR}/%{name}-%{version}
  209. %endif
  210. %if 0%{?_have_ebpf}
  211. %if 0%{?centos_ver:1}
  212. %if %{centos_ver} < 8
  213. export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} centos7
  214. %else
  215. export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} centos8
  216. %endif
  217. %else
  218. export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} other
  219. %endif
  220. %endif
  221. %build
  222. # Conf step
  223. autoreconf -ivf
  224. %configure \
  225. %if 0%{!?_have_ebpf}
  226. --disable-ebpf
  227. %endif
  228. %if 0%{!?fedora:1} && 0%{!?suse_version:1}
  229. --with-bundled-libJudy \
  230. %endif
  231. %if 0%{?centos_ver} < 8 || 0%{!?fedora:1}
  232. --with-bundled-lws \
  233. %endif
  234. --prefix="%{_prefix}" \
  235. --sysconfdir="%{_sysconfdir}" \
  236. --localstatedir="%{_localstatedir}" \
  237. --libexecdir="%{_libexecdir}" \
  238. --libdir="%{_libdir}" \
  239. --with-zlib \
  240. --with-math \
  241. --with-user=netdata
  242. # Build step
  243. %{__make} %{?_smp_mflags}
  244. %install
  245. # ###########################################################
  246. # Clear the directory, if already exists and install
  247. rm -rf "${RPM_BUILD_ROOT}"
  248. %{__make} %{?_smp_mflags} DESTDIR="${RPM_BUILD_ROOT}" install
  249. install -m 644 -p system/netdata.conf "${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}"
  250. # ###########################################################
  251. # logrotate settings
  252. install -m 755 -d "${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d"
  253. install -m 644 -p system/netdata.logrotate "${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}"
  254. # ###########################################################
  255. # Install freeipmi
  256. install -m 4750 -p freeipmi.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/freeipmi.plugin"
  257. # ###########################################################
  258. # Install apps.plugin
  259. install -m 4750 -p apps.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/apps.plugin"
  260. # ###########################################################
  261. # Install perf.plugin
  262. install -m 4750 -p perf.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/perf.plugin"
  263. # ###########################################################
  264. # Install ebpf.plugin
  265. %if 0%{?_have_ebpf}
  266. install -m 4750 -p ebpf.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/ebpf.plugin"
  267. %endif
  268. # ###########################################################
  269. # Install cups.plugin
  270. %if 0%{?centos_ver} != 6 && 0%{?centos_ver} != 7
  271. install -m 0750 -p cups.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/cups.plugin"
  272. %endif
  273. # ###########################################################
  274. # Install slabinfo.plugin
  275. install -m 4750 -p slabinfo.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/slabinfo.plugin"
  276. # ###########################################################
  277. # Install cache and log directories
  278. install -m 755 -d "${RPM_BUILD_ROOT}%{_localstatedir}/cache/%{name}"
  279. install -m 755 -d "${RPM_BUILD_ROOT}%{_localstatedir}/log/%{name}"
  280. # ###########################################################
  281. # Install registry directory
  282. install -m 755 -d "${RPM_BUILD_ROOT}%{_localstatedir}/lib/%{name}/registry"
  283. # ###########################################################
  284. # Install netdata service
  285. %if %{with systemd}
  286. install -m 755 -d "${RPM_BUILD_ROOT}%{_unitdir}"
  287. install -m 644 -p system/netdata.service "${RPM_BUILD_ROOT}%{_unitdir}/netdata.service"
  288. %else
  289. # install SYSV init stuff
  290. install -d "${RPM_BUILD_ROOT}/etc/rc.d/init.d"
  291. install -m 755 system/netdata-init-d \
  292. "${RPM_BUILD_ROOT}/etc/rc.d/init.d/netdata"
  293. %endif
  294. # ############################################################
  295. # Package Go within netdata (TBD: Package it separately)
  296. safe_sha256sum() {
  297. # Within the context of the installer, we only use -c option that is common between the two commands
  298. # We will have to reconsider if we start non-common options
  299. if command -v sha256sum >/dev/null 2>&1; then
  300. sha256sum $@
  301. elif command -v shasum >/dev/null 2>&1; then
  302. shasum -a 256 $@
  303. else
  304. fatal "I could not find a suitable checksum binary to use"
  305. fi
  306. }
  307. download_go() {
  308. url="${1}"
  309. dest="${2}"
  310. if command -v curl >/dev/null 2>&1; then
  311. curl -sSL --connect-timeout 10 --retry 3 "${url}" > "${dest}"
  312. elif command -v wget >/dev/null 2>&1; then
  313. wget -T 15 -O - "${url}" > "${dest}"
  314. else
  315. echo >&2
  316. echo >&2 "Downloading go.d plugin from '${url}' failed because of missing mandatory packages."
  317. echo >&2 "Either add packages or disable it by issuing '--disable-go' in the installer"
  318. echo >&2
  319. exit 1
  320. fi
  321. }
  322. install_go() {
  323. # When updating this value, ensure correct checksums in packaging/go.d.checksums
  324. GO_PACKAGE_VERSION="$(cat packaging/go.d.version)"
  325. ARCH_MAP=(
  326. 'i386::386'
  327. 'i686::386'
  328. 'x86_64::amd64'
  329. 'aarch64::arm64'
  330. 'armv64::arm64'
  331. 'armv6l::arm'
  332. 'armv7l::arm'
  333. 'armv5tel::arm'
  334. )
  335. if [ -z "${NETDATA_DISABLE_GO+x}" ]; then
  336. echo >&2 "Install go.d.plugin"
  337. ARCH=$(uname -m)
  338. OS=$(uname -s | tr '[:upper:]' '[:lower:]')
  339. for index in "${ARCH_MAP[@]}" ; do
  340. KEY="${index%%::*}"
  341. VALUE="${index##*::}"
  342. if [ "$KEY" = "$ARCH" ]; then
  343. ARCH="${VALUE}"
  344. break
  345. fi
  346. done
  347. tmp=$(mktemp -d /tmp/netdata-go-XXXXXX)
  348. GO_PACKAGE_BASENAME="go.d.plugin-${GO_PACKAGE_VERSION}.${OS}-${ARCH}.tar.gz"
  349. download_go "https://github.com/netdata/go.d.plugin/releases/download/${GO_PACKAGE_VERSION}/${GO_PACKAGE_BASENAME}" "${tmp}/${GO_PACKAGE_BASENAME}"
  350. download_go "https://github.com/netdata/go.d.plugin/releases/download/${GO_PACKAGE_VERSION}/config.tar.gz" "${tmp}/config.tar.gz"
  351. if [ ! -f "${tmp}/${GO_PACKAGE_BASENAME}" ] || [ ! -f "${tmp}/config.tar.gz" ] || [ ! -s "${tmp}/config.tar.gz" ] || [ ! -s "${tmp}/${GO_PACKAGE_BASENAME}" ]; then
  352. echo >&2 "Either check the error or consider disabling it by issuing '--disable-go' in the installer"
  353. echo >&2
  354. return 1
  355. fi
  356. grep "${GO_PACKAGE_BASENAME}\$" "packaging/go.d.checksums" > "${tmp}/sha256sums.txt" 2>/dev/null
  357. grep "config.tar.gz" "packaging/go.d.checksums" >> "${tmp}/sha256sums.txt" 2>/dev/null
  358. # Checksum validation
  359. if ! (cd "${tmp}" && safe_sha256sum -c "sha256sums.txt"); then
  360. echo >&2 "go.d plugin checksum validation failure."
  361. echo >&2 "Either check the error or consider disabling it by issuing '--disable-go' in the installer"
  362. echo >&2
  363. echo "go.d.plugin package files checksum validation failed."
  364. exit 1
  365. fi
  366. # Install files
  367. tar -xf "${tmp}/config.tar.gz" -C "${RPM_BUILD_ROOT}%{_libdir}/%{name}/conf.d/"
  368. tar xf "${tmp}/${GO_PACKAGE_BASENAME}"
  369. mv "${GO_PACKAGE_BASENAME/\.tar\.gz/}" "go.d.plugin"
  370. rm -rf "${tmp}"
  371. fi
  372. return 0
  373. }
  374. install_go
  375. install -m 0640 -p go.d.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/go.d.plugin"
  376. %if 0%{?_have_ebpf}
  377. ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-ebpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d
  378. %endif
  379. %pre
  380. # User/Group creations, as needed
  381. getent group netdata >/dev/null || groupadd -r netdata
  382. getent group docker >/dev/null || groupadd -r docker
  383. getent passwd netdata >/dev/null || \
  384. useradd -r -g netdata -G docker -s /sbin/nologin \
  385. -d %{contentdir} -c "netdata" netdata
  386. %post
  387. %{netdata_init_post}
  388. %preun
  389. %{netdata_init_preun}
  390. %postun
  391. %{netdata_init_postun}
  392. %clean
  393. rm -rf "${RPM_BUILD_ROOT}"
  394. %files
  395. %doc README.md
  396. %{_sysconfdir}/%{name}
  397. %config(noreplace) %{_sysconfdir}/%{name}/netdata.conf
  398. %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
  399. %dir %{_libdir}/%{name}
  400. %dir %{_datadir}/%{name}
  401. %{_libdir}/%{name}
  402. %{_libdir}/%{name}/conf.d/
  403. %{_libexecdir}/%{name}
  404. %{_sbindir}/%{name}
  405. %{_sbindir}/netdatacli
  406. %{_sbindir}/netdata-claim.sh
  407. %if %{with systemd}
  408. %{_unitdir}/netdata.service
  409. %else
  410. %{_sysconfdir}/rc.d/init.d/netdata
  411. %endif
  412. %defattr(0750,root,netdata,0750)
  413. %dir %{_libexecdir}/%{name}/python.d
  414. %dir %{_libexecdir}/%{name}/charts.d
  415. %dir %{_libexecdir}/%{name}/plugins.d
  416. %dir %{_libexecdir}/%{name}/node.d
  417. %{_libexecdir}/%{name}/python.d
  418. %{_libexecdir}/%{name}/plugins.d
  419. %{_libexecdir}/%{name}/node.d
  420. %caps(cap_dac_read_search,cap_sys_ptrace=ep) %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/apps.plugin
  421. %if %{with netns}
  422. # cgroup-network detects the network interfaces of CGROUPs
  423. # it must be able to use setns() and run cgroup-network-helper.sh as root
  424. # the helper script reads /proc/PID/fdinfo/* files, runs virsh, etc.
  425. %attr(4750,root,netdata) %{_libexecdir}/%{name}/plugins.d/cgroup-network
  426. %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/cgroup-network-helper.sh
  427. %endif
  428. # perf plugin
  429. # This should be CAP_PERFMON once RPM finally learns about it, but needs to be CAP_SYS_ADMIN for now.
  430. # %caps(cap_perfmon=ep) %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/perf.plugin
  431. %caps(cap_sys_admin=ep) %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/perf.plugin
  432. # perf plugin
  433. %caps(cap_dac_read_search=ep) %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/slabinfo.plugin
  434. # freeipmi files
  435. %attr(4750,root,netdata) %{_libexecdir}/%{name}/plugins.d/freeipmi.plugin
  436. # Enforce 0644 for files and 0755 for directories
  437. # for the netdata web directory
  438. %defattr(0644,root,netdata,0755)
  439. %{_datadir}/%{name}/web
  440. # Enforce 0660 for files and 0770 for directories
  441. # for the netdata lib, cache and log dirs
  442. %defattr(0660,root,netdata,0770)
  443. %attr(0770,netdata,netdata) %dir %{_localstatedir}/cache/%{name}
  444. %attr(0755,netdata,root) %dir %{_localstatedir}/log/%{name}
  445. %attr(0770,netdata,netdata) %dir %{_localstatedir}/lib/%{name}
  446. %attr(0770,netdata,netdata) %dir %{_localstatedir}/lib/%{name}/registry
  447. # Free IPMI belongs to a different sub-package
  448. %exclude %{_libexecdir}/%{name}/plugins.d/freeipmi.plugin
  449. # CUPS belongs to a different sub package
  450. %if 0%{?centos_ver} != 6 && 0%{?centos_ver} != 7
  451. %exclude %{_libexecdir}/%{name}/plugins.d/cups.plugin
  452. %package plugin-cups
  453. Summary: The Common Unix Printing System plugin for netdata
  454. Group: Applications/System
  455. Requires: cups >= 1.7
  456. Requires: netdata = %{version}
  457. %description plugin-cups
  458. This is the Common Unix Printing System plugin for the netdata daemon.
  459. Use this plugin to enable metrics collection from cupsd, the daemon running when CUPS is enabled on the system
  460. %files plugin-cups
  461. %attr(0750,root,netdata) %{_libexecdir}/%{name}/plugins.d/cups.plugin
  462. %endif
  463. %package plugin-freeipmi
  464. Summary: FreeIPMI - The Intelligent Platform Management System
  465. Group: Applications/System
  466. Requires: freeipmi
  467. Requires: netdata = %{version}
  468. %description plugin-freeipmi
  469. The IPMI specification defines a set of interfaces for platform management.
  470. It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
  471. are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).
  472. %files plugin-freeipmi
  473. %attr(4750,root,netdata) %{_libexecdir}/%{name}/plugins.d/freeipmi.plugin
  474. %changelog
  475. * Wed Sep 16 2020 Austin Hemmelgarn <austin@netdata.cloud> 0.0.0-14
  476. - Convert to using 'AutoReq: yes' for library dependencies.
  477. * Thu Feb 13 2020 Austin Hemmelgarn <austin@netdata.cloud> 0.0.0-13
  478. - Add handling for custom libmosquitto fork
  479. * Wed Jan 01 2020 Austin Hemmelgarn <austin@netdata.cloud> 0.0.0-12
  480. - Add explicit installation of log and cache directories
  481. - Clean up build dependencies.
  482. * Thu Dec 19 2019 Austin Hemmelgarn <austin@netdata.cloud> 0.0.0-11
  483. - Fix remaining ownership and permissions issues.
  484. * Mon Nov 04 2019 Konstantinos Natsakis <konstantinos.natsakis@gmail.com> 0.0.0-10
  485. - Fix /etc/netdata permissions
  486. * Mon Sep 23 2019 Konstantinos Natsakis <konstantinos.natsakis@gmail.com> 0.0.0-9
  487. - Do not build CUPS plugin subpackage on CentOS 6 and CentOS 7
  488. * Tue Aug 20 2019 Pavlos Emm. Katsoulakis <paul@netdat.acloud> - 0.0.0-8
  489. - Split CUPS functionality on separate package
  490. * Fri Jun 28 2019 Pavlos Emm. Katsoulakis <paul@netdata.cloud> - 0.0.0-7
  491. - Raise the path overrides to the spec file level, not just the configure.
  492. - Adjust tighter permissions on some folders, based on what we did on our installer
  493. - Introduce go.d plugin download and install, to include it on the package (Temporarily, to become separate package on next iteration)
  494. * Tue Jun 25 2019 Pavlos Emm. Katsoulakis <paul@netdata.cloud> - 0.0.0-6
  495. - Adjust dependency list: Some packages are missing on some distros, adopt to build successfully
  496. * Mon Jun 24 2019 Pavlos Emm. Katsoulakis <paul@netdata.cloud> - 0.0.0-5
  497. Another pass on cleaning up pre/post installation steps
  498. - Sync permission and ownership on files and directories
  499. * Sun Jun 16 2019 Pavlos Emm. Katsoulakis <paul@netdata.cloud> - 0.0.0-4
  500. First draft refactor on package dependencies section
  501. - Remove freeipmi/nfacct plugin flags. We auto-detect all plugins by decision
  502. - Start refactor of package dependencies
  503. - Add missing dependencies, with respect to distro peculiarities
  504. - Adjust existing dependencies, so that distro-specific package names is applied
  505. * Wed Jan 02 2019 Pawel Krupa <pkrupa@redhat.com> - 0.0.0-3
  506. - Temporary set version statically
  507. - Fix changelog ordering
  508. - Comment-out node.d configuration directory
  509. * Wed Jan 02 2019 Pawel Krupa <pkrupa@redhat.com> - 0.0.0-2
  510. - Fix permissions for log files
  511. * Sun Nov 15 2015 Alon Bar-Lev <alonbl@redhat.com> - 0.0.0-1
  512. - Initial add.