@cryptotaxi247 / netdata-1 / commits / 059e114cb

Remove contrib now that we use cpack for DEB packages (#17614)

vkalintiris committed May 8, 2024 at 13:55 UTC 059e114cb4c16d3742768beb7cef7cd4685ed40b
51 files changed -1278
.codacy.yml
-1
@@ -4,7 +4,6 @@ exclude_paths:
4 - src/collectors/python.d.plugin/python_modules/pyyaml3/**
5 - src/collectors/python.d.plugin/python_modules/urllib3/**
6 - src/collectors/python.d.plugin/python_modules/third_party/**
7 - - contrib/**
7 - packaging/makeself/**
8 - src/web/gui/css/**
9 - src/web/gui/lib/**
.github/CODEOWNERS
-1
@@ -7,7 +7,6 @@
7 # Ownership by directory structure
8 .github/ @netdata/agent-sre
9 src/aclk/ @stelfrag
10 -contrib/debian @netdata/agent-sre
10 src/collectors/ @thiagoftsm
11 src/collectors/ebpf.plugin/ @thiagoftsm
12 src/collectors/charts.d.plugin/ @ilyam8 @Ferroin
.github/labeler.yml
-1
@@ -252,7 +252,6 @@ area/packaging:
252 - any:
253 - changed-files:
254 - any-glob-to-any-file:
255 - - contrib/**
255 - packaging/**
256 - system/**
257 - Dockerfile*
.github/workflows/packaging.yml
-1
@@ -53,7 +53,6 @@ jobs:
53 **/*.patch
54 **/*.cmake
55 netdata.spec.in
56 - contrib/debian/
56 CMakeLists.txt
57 .github/data/distros.yml
58 .github/workflows/packaging.yml
contrib/README.md deleted
-65
@@ -1,65 +0,0 @@
1 -<!--
2 -title: "Netdata contrib"
3 -custom_edit_url: https://github.com/netdata/netdata/edit/master/contrib/README.md
4 -sidebar_label: "Netdata contrib"
5 -learn_status: "Published"
6 -learn_topic_type: "References"
7 -learn_rel_path: "Developers"
8 --->
9 -
10 -# Netdata contrib
11 -
12 -## Building .deb packages
13 -
14 -The `contrib/debian/` directory contains basic rules to build a
15 -Debian package. It has been tested on Debian Jessie and Wheezy,
16 -but should work, possibly with minor changes, if you have other
17 -dpkg-based systems such as Ubuntu or Mint.
18 -
19 -To build Netdata for a Debian Jessie system, the debian directory
20 -has to be available in the root of the Netdata source. The easiest
21 -way to do this is with a symlink:
22 -
23 -```sh
24 -ln -s contrib/debian
25 -```
26 -
27 -Edit the `debian/changelog` file to reflect the package version and
28 -the build time:
29 -
30 -```sh
31 -netdata (1.21.0) unstable; urgency=medium
32 -
33 - * Initial Release
34 -
35 - -- Netdata Builder <bot@netdata.cloud> Tue, 12 May 2020 10:36:52 +0200
36 -```
37 -
38 -Then build the debian package:
39 -
40 -```sh
41 -dpkg-buildpackage -us -uc -rfakeroot
42 -```
43 -
44 -This should give a package that can be installed in the parent
45 -directory, which you can install manually with dpkg.
46 -
47 -```sh
48 -ls -1 ../*.deb
49 -../netdata_1.21.0_amd64.deb
50 -../netdata-dbgsym_1.21.0_amd64.deb
51 -../netdata-plugin-cups_1.21.0_amd64.deb
52 -../netdata-plugin-cups-dbgsym_1.21.0_amd64.deb
53 -../netdata-plugin-freeipmi_1.21.0_amd64.deb
54 -../netdata-plugin-freeipmi-dbgsym_1.21.0_amd64.deb
55 -sudo dpkg -i ../netdata_1.21.0_amd64.deb
56 -```
57 -
58 -### Reinstalling Netdata
59 -
60 -The recommended way to upgrade Netdata packages built from this
61 -source is to remove the current package from your system, then
62 -install the new package. Upgrading on wheezy is known to not
63 -work cleanly; Jessie may behave as expected.
64 -
65 -
contrib/debian/changelog deleted
-6
@@ -1,6 +0,0 @@
1 -netdata (PREVIOUS_PACKAGE_VERSION) unstable; urgency=medium
2 -
3 - * Initial Release
4 -
5 - -- Netdata Builder <bot@netdata.cloud> PREVIOUS_PACKAGE_DATE
6 -
contrib/debian/compat deleted
-1
@@ -1 +0,0 @@
1 -10
contrib/debian/conffiles deleted
-5
@@ -1,5 +0,0 @@
1 -/etc/default/netdata
2 -/etc/init.d/netdata
3 -/etc/logrotate.d/netdata
4 -/etc/netdata/netdata.conf
5 -/etc/netdata/netdata-updater.conf
contrib/debian/control deleted
-237
@@ -1,237 +0,0 @@
1 -Source: netdata
2 -Build-Depends: debhelper (>= 10),
3 - dpkg-dev (>= 1.13.19),
4 - bison,
5 - cmake,
6 - curl,
7 - flex,
8 - golang (>= 1.21),
9 - libcups2-dev,
10 - libcurl4-openssl-dev,
11 - libelf-dev,
12 - libipmimonitoring-dev,
13 - libjson-c-dev,
14 - liblz4-dev,
15 - libmnl-dev,
16 - libmongoc-dev,
17 - libnetfilter-acct-dev,
18 - libpcre2-dev,
19 - libprotobuf-dev,
20 - libprotoc-dev,
21 - libsnappy-dev,
22 - libssl-dev,
23 - libsystemd-dev,
24 - libuv1-dev,
25 - libyaml-dev,
26 - pkg-config,
27 - protobuf-compiler,
28 - uuid-dev,
29 - zlib1g-dev
30 -Section: net
31 -Priority: optional
32 -Maintainer: Netdata Builder <bot@netdata.cloud>
33 -Standards-Version: 3.9.6
34 -Homepage: https://netdata.cloud
35 -
36 -Package: netdata
37 -Architecture: any
38 -Depends: openssl,
39 - ${misc:Depends},
40 - ${shlibs:Depends},
41 - netdata-plugin-ebpf (= ${source:Version}) [amd64],
42 - netdata-plugin-apps (= ${source:Version}),
43 - netdata-plugin-pythond (= ${source:Version}),
44 - netdata-plugin-go (= ${source:Version}),
45 - netdata-plugin-debugfs (= ${source:Version}),
46 - netdata-plugin-nfacct (= ${source:Version}),
47 - netdata-plugin-chartsd (= ${source:Version}),
48 - netdata-plugin-slabinfo (= ${source:Version}),
49 - netdata-plugin-perf (= ${source:Version})
50 -Pre-Depends: adduser,
51 - dpkg (>= 1.17.14),
52 - libcap2-bin (>=1:2.0),
53 - lsb-base (>= 3.1-23.2)
54 -Conflicts: netdata-core,
55 - netdata-plugins-bash,
56 - netdata-plugins-python,
57 - netdata-web
58 -Suggests: netdata-plugin-cups (= ${source:Version}),
59 - netdata-plugin-freeipmi (= ${source:Version})
60 -Recommends: netdata-plugin-systemd-journal (= ${source:Version}),
61 - netdata-plugin-logs-management (= ${source:Version}),
62 - netdata-plugin-network-viewer (= ${source:Version})
63 -Description: real-time charts for system monitoring
64 - Netdata is a daemon that collects data in realtime (per second)
65 - and presents a web site to view and analyze them. The presentation
66 - is also real-time and full of interactive charts that precisely
67 - render all collected values.
68 -
69 -Package: netdata-plugin-cups
70 -Architecture: any
71 -Depends: cups,
72 - ${shlibs:Depends},
73 - netdata (= ${source:Version})
74 -Pre-Depends: adduser
75 -Description: The CUPS metrics collection plugin for the Netdata Agent
76 - This plugin allows the Netdata Agent to collect metrics from the Common
77 - UNIX Printing System.
78 -
79 -Package: netdata-plugin-freeipmi
80 -Architecture: any
81 -Depends: freeipmi,
82 - ${shlibs:Depends},
83 - netdata (= ${source:Version})
84 -Pre-Depends: adduser
85 -Description: The FreeIPMI metrics collection plugin for the Netdata Agent
86 - This plugin allows the Netdata Agent to collect metrics from hardware
87 - using FreeIPMI.
88 -
89 -Package: netdata-plugin-nfacct
90 -Architecture: any
91 -Depends: ${shlibs:Depends},
92 - netdata (= ${source:Version})
93 -Pre-Depends: adduser
94 -Conflicts: netdata (<< ${source:Version})
95 -Description: The NFACCT metrics collection plugin for the Netdata Agent
96 - This plugin allows the Netdata Agent to collect metrics from the firewall
97 - using NFACCT objects.
98 -
99 -Package: netdata-plugin-chartsd
100 -Architecture: all
101 -Depends: bash,
102 - netdata (= ${source:Version})
103 -Pre-Depends: adduser
104 -Conflicts: netdata (<< ${source:Version})
105 -Suggests: apcupsd, iw, sudo
106 -Description: The charts.d metrics collection plugin for the Netdata Agent
107 - This plugin adds a selection of additional collectors written in shell
108 - script to the Netdata Agent. It includes collectors for APCUPSD,
109 - LibreSWAN, OpenSIPS, and Wireless access point statistics.
110 -
111 -Package: netdata-plugin-ebpf
112 -Architecture: amd64
113 -Depends: ${shlibs:Depends},
114 - netdata (= ${source:Version}),
115 - netdata-ebpf-code-legacy (= ${source:Version})
116 -Pre-Depends: adduser
117 -Recommends: netdata-plugin-apps (= ${source:Version})
118 -Conflicts: netdata (<< ${source:Version})
119 -Description: The eBPF metrics collection plugin for the Netdata Agent
120 - This plugin allows the Netdata Agent to use eBPF code to collect more
121 - detailed kernel-level metrics for the system.
122 -
123 -Package: netdata-ebpf-code-legacy
124 -Architecture: amd64
125 -Depends: netdata-plugin-ebpf (= ${source:Version})
126 -Pre-Depends: adduser
127 -Conflicts: netdata (<< ${source:Version})
128 -Description: Compiled eBPF legacy code for the Netdata eBPF plugin
129 - This package provides the pre-compiled eBPF legacy code for use by
130 - the Netdata eBPF plugin. This code is only needed when using the eBPF
131 - plugin with kernel that do not include BTF support (mostly kernel
132 - versions lower than 5.10)..
133 -
134 -Package: netdata-plugin-pythond
135 -Architecture: all
136 -Depends: netdata (= ${source:Version})
137 -Pre-Depends: adduser
138 -Suggests: sudo
139 -Conflicts: netdata (<< ${source:Version})
140 -Description: The python.d metrics collection plugin for the Netdata Agent
141 - Many of the collectors provided by this package are also available
142 - in netdata-plugin-god. In msot cases, you probably want to use those
143 - versions instead of the Python versions.
144 -
145 -Package: netdata-plugin-go
146 -Architecture: any
147 -Depends: ${shlibs:Depends},
148 - netdata (= ${source:Version})
149 -Pre-Depends: libcap2-bin, adduser
150 -Suggests: nvme-cli, sudo
151 -Conflicts: netdata (<< ${source:Version})
152 -Description: The go.d metrics collection plugin for the Netdata Agent
153 - This plugin adds a selection of additional collectors written in Go to
154 - the Netdata Agent. A significant percentage of the application specific
155 - collectors provided by Netdata are part of this plugin, so most users
156 - will want it installed.
157 -
158 -Package: netdata-plugin-apps
159 -Architecture: any
160 -Depends: ${shlibs:Depends},
161 - netdata (= ${source:Version})
162 -Pre-Depends: libcap2-bin, adduser
163 -Conflicts: netdata (<< ${source:Version})
164 -Description: The per-application metrics collection plugin for the Netdata Agent
165 - This plugin allows the Netdata Agent to collect per-application and
166 - per-user metrics without using cgroups.
167 -
168 -Package: netdata-plugin-slabinfo
169 -Architecture: any
170 -Depends: ${shlibs:Depends},
171 - netdata (= ${source:Version})
172 -Pre-Depends: libcap2-bin, adduser
173 -Conflicts: netdata (<< ${source:Version})
174 -Description: The slabinfo metrics collector for the Netdata Agent
175 - This plugin allows the Netdata Agent to collect perfromance and
176 - utilization metrics for the Linux kernel’s SLAB allocator.
177 -
178 -Package: netdata-plugin-perf
179 -Architecture: any
180 -Depends: ${shlibs:Depends},
181 - netdata (= ${source:Version})
182 -Pre-Depends: libcap2-bin, adduser
183 -Conflicts: netdata (<< ${source:Version})
184 -Description: The perf metrics collector for the Netdata Agent
185 - This plugin allows the Netdata to collect metrics from the Linux perf
186 - subsystem.
187 -
188 -Package: netdata-plugin-debugfs
189 -Architecture: any
190 -Depends: ${shlibs:Depends},
191 - netdata (= ${source:Version})
192 -Pre-Depends: libcap2-bin, adduser
193 -Conflicts: netdata (<< ${source:Version})
194 -Description: The debugfs metrics collector for the Netdata Agent
195 - This plugin allows the Netdata Agent to collect Linux kernel metrics
196 - exposed through debugfs.
197 -
198 -Package: netdata-plugin-systemd-journal
199 -Architecture: any
200 -Depends: ${shlibs:Depends},
201 - netdata (= ${source:Version})
202 -Pre-Depends: libcap2-bin, adduser
203 -Conflicts: netdata (<< ${source:Version})
204 -Description: The systemd-journal collector for the Netdata Agent
205 - This plugin allows the Netdata Agent to present logs from the systemd
206 - journal on Netdata Cloud or the local Agent dashboard.
207 -
208 -Package: netdata-plugin-xenstat
209 -Architecture: amd64 arm64
210 -Depends: ${shlibs:Depends},
211 - netdata (= ${source:Version})
212 -Pre-Depends: adduser
213 -Conflicts: netdata (<< ${source:Version})
214 -Description: The xenstat plugin for the Netdata Agent
215 - This plugin allows the Netdata Agent to collect metrics from the Xen
216 - Hypervisor.
217 -
218 -Package: netdata-plugin-logs-management
219 -Architecture: any
220 -Depends: ${shlibs:Depends},
221 - netdata (= ${source:Version})
222 -Pre-Depends: libcap2-bin, adduser
223 -Conflicts: netdata (<< ${source:Version})
224 -Description: The logs-management plugin for the Netdata Agent
225 - This plugin allows the Netdata Agent to collect logs from the system
226 - and parse them to extract metrics.
227 -
228 -Package: netdata-plugin-network-viewer
229 -Architecture: any
230 -Depends: ${shlibs:Depends},
231 - netdata (= ${source:Version})
232 -Pre-Depends: libcap2-bin, adduser
233 -Recommends: netdata-plugin-ebpf (= ${source:Version}) [amd64]
234 -Conflicts: netdata (<< ${source:Version})
235 -Description: The network viewer plugin for the Netdata Agent
236 - This plugin allows the Netdata Agent to provide network connection
237 - mapping functionality for use in netdata Cloud.
contrib/debian/copyright deleted
-10
@@ -1,10 +0,0 @@
1 -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2 -Upstream-Name: Netdata
3 -Upstream-Contact: Costa Tsaousis <costa@tsaousis.gr>
4 -Source: https://github.com/netdata/netdata
5 -
6 -Files: *
7 -Copyright: 2014-2016, Costa Tsaousis
8 -License: GPL-3+
9 - On Debian systems, the complete text of the GNU General Public
10 - License version 3 can be found in /usr/share/common-licenses/GPL-3.
contrib/debian/netdata-ebpf-code-legacy.postinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - grep /usr/libexec/netdata /var/lib/dpkg/info/netdata-ebpf-code-legacy.list | xargs -n 30 chown root:netdata
8 - ;;
9 -esac
10 -
11 -#DEBHELPER#
12 -
13 -exit 0
contrib/debian/netdata-ebpf-code-legacy.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-apps.postinst deleted
-17
@@ -1,17 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/apps.plugin
8 - chmod 0750 /usr/libexec/netdata/plugins.d/apps.plugin
9 - if ! setcap "cap_dac_read_search=eip cap_sys_ptrace=eip" /usr/libexec/netdata/plugins.d/apps.plugin; then
10 - chmod -f 4750 /usr/libexec/netdata/plugins.d/apps.plugin
11 - fi
12 - ;;
13 -esac
14 -
15 -#DEBHELPER#
16 -
17 -exit 0
contrib/debian/netdata-plugin-apps.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-chartsd.postinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - grep /usr/libexec/netdata /var/lib/dpkg/info/netdata-plugin-chartsd.list | xargs -n 30 chown root:netdata
8 - ;;
9 -esac
10 -
11 -#DEBHELPER#
12 -
13 -exit 0
contrib/debian/netdata-plugin-chartsd.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-cups.postinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/cups.plugin
8 - ;;
9 -esac
10 -
11 -#DEBHELPER#
12 -
13 -exit 0
contrib/debian/netdata-plugin-cups.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
\ No newline at end of file
contrib/debian/netdata-plugin-debugfs.postinst deleted
-17
@@ -1,17 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/debugfs.plugin
8 - chmod 0750 /usr/libexec/netdata/plugins.d/debugfs.plugin
9 - if ! setcap "cap_dac_read_search=eip" /usr/libexec/netdata/plugins.d/debugfs.plugin; then
10 - chmod -f 4750 /usr/libexec/netdata/plugins.d/debugfs.plugin
11 - fi
12 - ;;
13 -esac
14 -
15 -#DEBHELPER#
16 -
17 -exit 0
contrib/debian/netdata-plugin-debugfs.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-ebpf.postinst deleted
-14
@@ -1,14 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - grep /usr/libexec/netdata /var/lib/dpkg/info/netdata-plugin-ebpf.list | xargs -n 30 chown root:netdata
8 - chmod -f 4750 /usr/libexec/netdata/plugins.d/ebpf.plugin
9 - ;;
10 -esac
11 -
12 -#DEBHELPER#
13 -
14 -exit 0
contrib/debian/netdata-plugin-ebpf.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-freeipmi.postinst deleted
-14
@@ -1,14 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/freeipmi.plugin
8 - chmod -f 4750 /usr/libexec/netdata/plugins.d/freeipmi.plugin
9 - ;;
10 -esac
11 -
12 -#DEBHELPER#
13 -
14 -exit 0
contrib/debian/netdata-plugin-freeipmi.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-go.postinst deleted
-17
@@ -1,17 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/go.d.plugin
8 - chmod 0750 /usr/libexec/netdata/plugins.d/go.d.plugin
9 - if ! setcap "cap_dac_read_search+epi cap_net_admin=eip cap_net_raw=eip" /usr/libexec/netdata/plugins.d/go.d.plugin; then
10 - chmod -f 4750 /usr/libexec/netdata/plugins.d/go.d.plugin
11 - fi
12 - ;;
13 -esac
14 -
15 -#DEBHELPER#
16 -
17 -exit 0
contrib/debian/netdata-plugin-go.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-logs-management.postinst deleted
-17
@@ -1,17 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - grep /usr/libexec/netdata /var/lib/dpkg/info/netdata-plugin-logs-management.list | xargs -n 30 chown root:netdata
8 - chmod 0750 /usr/libexec/netdata/plugins.d/logs-management.plugin
9 - if ! setcap "cap_dac_read_search=eip cap_syslog=eip" /usr/libexec/netdata/plugins.d/logs-management.plugin; then
10 - chmod -f 4750 /usr/libexec/netdata/plugins.d/logs-management.plugin
11 - fi
12 - ;;
13 -esac
14 -
15 -#DEBHELPER#
16 -
17 -exit 0
contrib/debian/netdata-plugin-logs-management.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-network-viewer.postinst deleted
-17
@@ -1,17 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/network-viewer.plugin
8 - chmod 0750 /usr/libexec/netdata/plugins.d/network-viewer.plugin
9 - if ! setcap "cap_dac_read_search,cap_sys_admin,cap_sys_ptrace=eip" /usr/libexec/netdata/plugins.d/network-viewer.plugin; then
10 - chmod -f 4750 /usr/libexec/netdata/plugins.d/network-viewer.plugin
11 - fi
12 - ;;
13 -esac
14 -
15 -#DEBHELPER#
16 -
17 -exit 0
contrib/debian/netdata-plugin-network-viewer.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-nfacct.postinst deleted
-14
@@ -1,14 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/nfacct.plugin
8 - chmod -f 4750 /usr/libexec/netdata/plugins.d/nfacct.plugin
9 - ;;
10 -esac
11 -
12 -#DEBHELPER#
13 -
14 -exit 0
contrib/debian/netdata-plugin-nfacct.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-perf.postinst deleted
-20
@@ -1,20 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/perf.plugin
8 - chmod 0750 /usr/libexec/netdata/plugins.d/perf.plugin
9 -
10 - if ! setcap cap_perfmon+ep /usr/libexec/netdata/plugins.d/perf.plugin 2>/dev/null; then
11 - if ! setcap cap_sys_admin+ep /usr/libexec/netdata/plugins.d/perf.plugin 2>/dev/null; then
12 - chmod -f 4750 /usr/libexec/netdata/plugins.d/perf.plugin
13 - fi
14 - fi
15 - ;;
16 -esac
17 -
18 -#DEBHELPER#
19 -
20 -exit 0
contrib/debian/netdata-plugin-perf.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-pythond.postinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - grep /usr/libexec/netdata /var/lib/dpkg/info/netdata-plugin-pythond.list | xargs -n 30 chown root:netdata
8 - ;;
9 -esac
10 -
11 -#DEBHELPER#
12 -
13 -exit 0
contrib/debian/netdata-plugin-pythond.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-slabinfo.postinst deleted
-17
@@ -1,17 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/slabinfo.plugin
8 - chmod 0750 /usr/libexec/netdata/plugins.d/slabinfo.plugin
9 - if ! setcap "cap_dac_read_search=eip" /usr/libexec/netdata/plugins.d/slabinfo.plugin; then
10 - chmod -f 4750 /usr/libexec/netdata/plugins.d/slabinfo.plugin
11 - fi
12 - ;;
13 -esac
14 -
15 -#DEBHELPER#
16 -
17 -exit 0
contrib/debian/netdata-plugin-slabinfo.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-systemd-journal.postinst deleted
-17
@@ -1,17 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/systemd-journal.plugin
8 - chmod 0750 /usr/libexec/netdata/plugins.d/systemd-journal.plugin
9 - if ! setcap "cap_dac_read_search=eip" /usr/libexec/netdata/plugins.d/systemd-journal.plugin; then
10 - chmod -f 4750 /usr/libexec/netdata/plugins.d/systemd-journal.plugin
11 - fi
12 - ;;
13 -esac
14 -
15 -#DEBHELPER#
16 -
17 -exit 0
contrib/debian/netdata-plugin-systemd-journal.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata-plugin-xenstat.postinst deleted
-14
@@ -1,14 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - chown root:netdata /usr/libexec/netdata/plugins.d/xenstat.plugin
8 - chmod -f 4750 /usr/libexec/netdata/plugins.d/xenstat.plugin
9 - ;;
10 -esac
11 -
12 -#DEBHELPER#
13 -
14 -exit 0
contrib/debian/netdata-plugin-xenstat.preinst deleted
-13
@@ -1,13 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 - ;;
11 -esac
12 -
13 -#DEBHELPER#
contrib/debian/netdata.default deleted
-3
@@ -1,3 +0,0 @@
1 -# Extra arguments to pass to netdata
2 -#
3 -EXTRA_OPTS="-P /var/run/netdata/netdata.pid"
contrib/debian/netdata.docs deleted
-1
@@ -1 +0,0 @@
1 -CHANGELOG.md
contrib/debian/netdata.init deleted
-56
@@ -1,56 +0,0 @@
1 -#!/bin/sh
2 -# Start/stop the netdata daemon.
3 -#
4 -### BEGIN INIT INFO
5 -# Provides: netdata
6 -# Required-Start: $remote_fs
7 -# Required-Stop: $remote_fs
8 -# Should-Start: $network
9 -# Should-Stop: $network
10 -# Default-Start: 2 3 4 5
11 -# Default-Stop:
12 -# Short-Description: Real-time charts for system monitoring
13 -# Description: Netdata is a daemon that collects data in realtime (per second)
14 -# and presents a web site to view and analyze them. The presentation
15 -# is also real-time and full of interactive charts that precisely
16 -# render all collected values.
17 -### END INIT INFO
18 -
19 -PATH=/bin:/usr/bin:/sbin:/usr/sbin
20 -DESC="netdata daemon"
21 -NAME=netdata
22 -DAEMON=/usr/sbin/netdata
23 -PIDFILE=/var/run/netdata/netdata.pid
24 -SCRIPTNAME=/etc/init.d/"$NAME"
25 -
26 -test -f $DAEMON || exit 0
27 -
28 -. /lib/lsb/init-functions
29 -
30 -[ -r /etc/default/netdata ] && . /etc/default/netdata
31 -
32 -case "$1" in
33 -start) log_daemon_msg "Starting real-time system monitoring" "netdata"
34 - start_daemon -p $PIDFILE $DAEMON -P $PIDFILE $EXTRA_OPTS
35 - log_end_msg $?
36 - ;;
37 -stop) log_daemon_msg "Stopping real-time system monitoring" "netdata"
38 - killproc -p $PIDFILE $DAEMON
39 - RETVAL=$?
40 - [ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
41 - log_end_msg $RETVAL
42 - # wait for plugins to exit
43 - sleep 1
44 - ;;
45 -restart|force-reload) log_daemon_msg "Restarting real-time system monitoring" "netdata"
46 - $0 stop
47 - $0 start
48 - ;;
49 -status)
50 - status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
51 - ;;
52 -*) log_action_msg "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}"
53 - exit 2
54 - ;;
55 -esac
56 -exit 0
contrib/debian/netdata.install deleted
-1
@@ -1 +0,0 @@
1 -debian/netdata.conf /etc/netdata/
contrib/debian/netdata.postinst deleted
-40
@@ -1,40 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - configure|reconfigure)
7 - if ! dpkg-statoverride --list /var/lib/netdata > /dev/null 2>&1; then
8 - dpkg-statoverride --update --add netdata netdata 0755 /var/lib/netdata
9 - fi
10 -
11 - if ! dpkg-statoverride --list /var/cache/netdata > /dev/null 2>&1; then
12 - dpkg-statoverride --update --add netdata netdata 0755 /var/cache/netdata
13 - fi
14 -
15 - if ! dpkg-statoverride --list /var/run/netdata > /dev/null 2>&1; then
16 - dpkg-statoverride --update --add netdata netdata 0755 /var/run/netdata
17 - fi
18 -
19 - if ! dpkg-statoverride --list /var/log/netdata > /dev/null 2>&1; then
20 - dpkg-statoverride --update --add netdata adm 02750 /var/log/netdata
21 - fi
22 -
23 - if ! dpkg-statoverride --list /usr/share/netdata/www > /dev/null 2>&1; then
24 - dpkg-statoverride --update --add root netdata 0755 /usr/share/netdata/www
25 - fi
26 -
27 - dpkg-statoverride --force --update --add root netdata 0775 /var/lib/netdata/registry > /dev/null 2>&1
28 -
29 - grep /usr/libexec/netdata /var/lib/dpkg/info/netdata.list | xargs -n 30 chown root:netdata
30 -
31 - for f in ndsudo cgroup-network local-listeners ioping.plugin; do
32 - chmod 4750 "/usr/libexec/netdata/plugins.d/${f}" || true
33 - done
34 -
35 - ;;
36 -esac
37 -
38 -#DEBHELPER#
39 -
40 -exit 0
contrib/debian/netdata.postrm deleted
-44
@@ -1,44 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - remove) ;;
7 -
8 - purge)
9 - if dpkg-statoverride --list | grep -qw /var/cache/netdata; then
10 - dpkg-statoverride --remove /var/cache/netdata
11 - fi
12 -
13 - if dpkg-statoverride --list | grep -qw /var/lib/netdata/www; then
14 - dpkg-statoverride --remove /var/lib/netdata/www
15 - fi
16 -
17 - if dpkg-statoverride --list | grep -qw /usr/share/netdata/www; then
18 - dpkg-statoverride --remove /usr/share/netdata/www
19 - fi
20 -
21 - if dpkg-statoverride --list | grep -qw /var/lib/netdata/registry; then
22 - dpkg-statoverride --remove /var/lib/netdata/registry
23 - fi
24 -
25 - if dpkg-statoverride --list | grep -qw /var/lib/netdata; then
26 - dpkg-statoverride --remove /var/lib/netdata
27 - fi
28 -
29 - if dpkg-statoverride --list | grep -qw /var/run/netdata; then
30 - dpkg-statoverride --remove /var/run/netdata
31 - fi
32 -
33 - if dpkg-statoverride --list | grep -qw /var/log/netdata; then
34 - dpkg-statoverride --remove /var/log/netdata
35 - fi
36 - ;;
37 -
38 - *) ;;
39 -
40 -esac
41 -
42 -#DEBHELPER#
43 -
44 -exit 0
contrib/debian/netdata.preinst deleted
-28
@@ -1,28 +0,0 @@
1 -#!/bin/sh
2 -
3 -set -e
4 -
5 -case "$1" in
6 - install)
7 - if ! getent group netdata > /dev/null; then
8 - addgroup --quiet --system netdata
9 - fi
10 -
11 - if ! getent passwd netdata > /dev/null; then
12 - adduser --quiet --system --ingroup netdata --home /var/lib/netdata --no-create-home netdata
13 - fi
14 -
15 - for item in docker nginx varnish haproxy adm nsd proxy squid ceph nobody I2C; do
16 - if getent group $item > /dev/null 2>&1; then
17 - usermod -a -G $item netdata
18 - fi
19 - done
20 - # Netdata must be able to read /etc/pve/qemu-server/* and /etc/pve/lxc/*
21 - # for reading VMs/containers names, CPU and memory limits on Proxmox.
22 - if [ -d "/etc/pve" ] && getent group "www-data" > /dev/null 2>&1; then
23 - usermod -a -G www-data netdata
24 - fi
25 - ;;
26 -esac
27 -
28 -#DEBHELPER#
contrib/debian/rules deleted
-321
@@ -1,321 +0,0 @@
1 -#!/usr/bin/make -f
2 -
3 -# Find the arch we are building for, as this determines
4 -# the location of plugins in /usr/lib
5 -SRC_DIR = /usr/src/netdata
6 -TOP = $(CURDIR)/debian/netdata
7 -TEMPTOP = $(CURDIR)/debian/tmp
8 -BUILDDIR = $(CURDIR)/debian/build
9 -
10 -BASE_CONFIG = system/netdata.conf
11 -
12 -SYSTEMD_VERSION = $(shell /bin/sh -c "systemd --version 2>&1 | head -n 1 | cut -f 2 -d ' '")
13 -
14 -ifeq ($(shell test $(SYSTEMD_VERSION) -gt 235 && echo "1"), 1)
15 -SYSTEMD_UNIT = $(BUILDDIR)/system/systemd/netdata.service
16 -else
17 -SYSTEMD_UNIT = $(BUILDDIR)/system/systemd/netdata.service.v235
18 -endif
19 -
20 -ifeq ($(shell test ${DEB_TARGET_ARCH} != "amd64" && echo "1"), 1)
21 -HAVE_EBPF = 0
22 -EBPF_CONFIG = -DENABLE_PLUGIN_EBPF=Off
23 -else
24 -HAVE_EBPF = 1
25 -EBPF_CONFIG = -DENABLE_PLUGIN_EBPF=On
26 -endif
27 -
28 -ifeq ($(shell test ${DEB_TARGET_ARCH} != "amd64" && echo "1"), 1)
29 -ifeq ($(shell test ${DEB_TARGET_ARCH} != "arm64" && echo "1"), 1)
30 -HAVE_XENSTAT = 0
31 -XENSTAT_CONFIG = -DENABLE_PLUGIN_XENSTAT=Off
32 -else
33 -HAVE_XENSTAT = 1
34 -XENSTAT_CONFIG = -DENABLE_PLUGIN_XENSTAT=On
35 -endif
36 -else
37 -HAVE_XENSTAT = 1
38 -XENSTAT_CONFIG = -DENABLE_PLUGIN_XENSTAT=On
39 -endif
40 -
41 -ifeq ($(ENABLE_SENTRY),true)
42 - RELEASE_PIPELINE ?= Unknown
43 - VERSION ?= Unknown
44 - BUILD_DESTINATION ?= Unknown
45 - SENTRY_CONFIG := -DENABLE_SENTRY=On \
46 - -DNETDATA_SENTRY_ENVIRONMENT=$(RELEASE_PIPELINE) \
47 - -DNETDATA_SENTRY_RELEASE=$(VERSION) \
48 - -DNETDATA_SENTRY_DIST=$(BUILD_DESTINATION) \
49 - -DNETDATA_SENTRY_DSN=$(SENTRY_DSN)
50 -else
51 - SENTRY_CONFIG := -DENABLE_SENTRY=Off
52 -endif
53 -
54 -
55 -%:
56 - dh $@ --builddirectory=$(BUILDDIR)
57 -
58 -override_dh_installinit:
59 - echo "SystemD Version: $(SYSTEMD_VERSION)"
60 - echo "Using SystemD Unit: $(SYSTEMD_UNIT)"
61 - cp -v $(SYSTEMD_UNIT) debian/netdata.service
62 -
63 - dh_systemd_enable
64 - dh_installinit
65 -
66 -override_dh_auto_configure:
67 - dh_auto_configure -- -G Ninja \
68 - -DCMAKE_BUILD_TYPE=RelWithDebInfo \
69 - -DCMAKE_INSTALL_PREFIX=/ \
70 - -DWEB_DIR=/var/lib/netdata/www \
71 - -DCMAKE_C_FLAGS='-ffile-prefix-map=${SRC_DIR}=${SRC_DIR}' \
72 - -DENABLE_ACLK=On \
73 - -DENABLE_CLOUD=On \
74 - -DENABLE_DBENGINE=On \
75 - -DENABLE_H2O=On \
76 - -DENABLE_ML=On \
77 - -DENABLE_PLUGIN_APPS=On \
78 - -DENABLE_PLUGIN_CGROUP_NETWORK=On \
79 - -DENABLE_PLUGIN_DEBUGFS=On \
80 - $(EBPF_CONFIG) \
81 - -DENABLE_PLUGIN_FREEIPMI=On \
82 - -DENABLE_PLUGIN_GO=On \
83 - -DENABLE_PLUGIN_LOCAL_LISTENERS=On \
84 - -DENABLE_PLUGIN_LOGS_MANAGEMENT=On \
85 - -DENABLE_PLUGIN_NFACCT=On \
86 - -DENABLE_PLUGIN_PERF=On \
87 - -DENABLE_PLUGIN_SLABINFO=On \
88 - -DENABLE_PLUGIN_SYSTEMD_JOURNAL=On \
89 - $(XENSTAT_CONFIG) \
90 - -DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=On \
91 - -DENABLE_EXPORTER_MONGODB=On \
92 - -DENABLE_BUNDLED_PROTOBUF=Off \
93 - -DENABLE_BUNDLED_JSONC=Off \
94 - ${SENTRY_CONFIG} \
95 - -DENABLE_BUNDLED_YAML=Off
96 -
97 -override_dh_auto_test:
98 - true
99 -
100 -override_dh_strip:
101 - if [ "${ENABLE_SENTRY}" = "true" ] && [ "${UPLOAD_SENTRY}" = "true" ]; then \
102 - sentry-cli debug-files upload -o netdata-inc -p netdata-agent --force-foreground --log-level=debug --wait --include-sources /usr/src/netdata/debian/netdata/usr/sbin/netdata; \
103 - fi
104 - dh_strip
105 -
106 -override_dh_install:
107 - cp -v $(BASE_CONFIG) debian/netdata.conf
108 -
109 - dh_install
110 -
111 - # Set the CUPS plugin install rule
112 - #
113 - mkdir -p $(TOP)-plugin-cups/usr/libexec/netdata/plugins.d
114 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/cups.plugin \
115 - $(TOP)-plugin-cups/usr/libexec/netdata/plugins.d/cups.plugin
116 -
117 - # Add free IPMI plugin install rules
118 - #
119 - mkdir -p $(TOP)-plugin-freeipmi/usr/libexec/netdata/plugins.d
120 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/freeipmi.plugin \
121 - $(TOP)-plugin-freeipmi/usr/libexec/netdata/plugins.d/freeipmi.plugin
122 -
123 - # Add NFACCT plugin install rules
124 - #
125 - mkdir -p $(TOP)-plugin-nfacct/usr/libexec/netdata/plugins.d
126 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/nfacct.plugin \
127 - $(TOP)-plugin-nfacct/usr/libexec/netdata/plugins.d/nfacct.plugin
128 -
129 - # Add charts.d plugin install rules
130 - #
131 - mkdir -p $(TOP)-plugin-chartsd/usr/libexec/netdata/plugins.d/
132 - mkdir -p $(TOP)-plugin-chartsd/usr/lib/netdata/conf.d/
133 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/charts.d.plugin \
134 - $(TOP)-plugin-chartsd/usr/libexec/netdata/plugins.d/charts.d.plugin
135 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/charts.d.dryrun-helper.sh \
136 - $(TOP)-plugin-chartsd/usr/libexec/netdata/plugins.d/charts.d.dryrun-helper.sh
137 - mv -f $(TEMPTOP)/usr/libexec/netdata/charts.d \
138 - $(TOP)-plugin-chartsd/usr/libexec/netdata/charts.d
139 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/charts.d.conf \
140 - $(TOP)-plugin-chartsd/usr/lib/netdata/conf.d/charts.d.conf
141 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/charts.d \
142 - $(TOP)-plugin-chartsd/usr/lib/netdata/conf.d/charts.d
143 -
144 - # Add ebpf plugin install rules
145 - if [ $(HAVE_EBPF) -eq 1 ]; then \
146 - mkdir -p $(TOP)-plugin-ebpf/usr/libexec/netdata/plugins.d/; \
147 - mkdir -p $(TOP)-plugin-ebpf/usr/lib/netdata/conf.d/; \
148 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/ebpf.plugin $(TOP)-plugin-ebpf/usr/libexec/netdata/plugins.d/ebpf.plugin; \
149 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/ebpf.d.conf $(TOP)-plugin-ebpf/usr/lib/netdata/conf.d/ebpf.d.conf; \
150 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/ebpf.d $(TOP)-plugin-ebpf/usr/lib/netdata/conf.d/ebpf.d; \
151 - mkdir -p $(TOP)-ebpf-code-legacy/usr/libexec/netdata/plugins.d/; \
152 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/ebpf.d $(TOP)-ebpf-code-legacy/usr/libexec/netdata/plugins.d/ebpf.d; \
153 - fi
154 -
155 - # Add python plugin install rules
156 - mkdir -p $(TOP)-plugin-pythond/usr/libexec/netdata/plugins.d/
157 - mkdir -p $(TOP)-plugin-pythond/usr/lib/netdata/conf.d/
158 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/python.d.plugin \
159 - $(TOP)-plugin-pythond/usr/libexec/netdata/plugins.d/python.d.plugin
160 - mv -f $(TEMPTOP)/usr/libexec/netdata/python.d \
161 - $(TOP)-plugin-pythond/usr/libexec/netdata/python.d
162 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/python.d.conf \
163 - $(TOP)-plugin-pythond/usr/lib/netdata/conf.d/python.d.conf
164 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/python.d \
165 - $(TOP)-plugin-pythond/usr/lib/netdata/conf.d/python.d
166 -
167 - # Add apps plugin install rules
168 - mkdir -p $(TOP)-plugin-apps/usr/libexec/netdata/plugins.d/
169 - mkdir -p $(TOP)-plugin-apps/usr/lib/netdata/conf.d/
170 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/apps.plugin \
171 - $(TOP)-plugin-apps/usr/libexec/netdata/plugins.d/apps.plugin
172 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/apps_groups.conf \
173 - $(TOP)-plugin-apps/usr/lib/netdata/conf.d/apps_groups.conf
174 -
175 - # Add slabinfo plugin install rules
176 - mkdir -p $(TOP)-plugin-slabinfo/usr/libexec/netdata/plugins.d/
177 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/slabinfo.plugin \
178 - $(TOP)-plugin-slabinfo/usr/libexec/netdata/plugins.d/slabinfo.plugin
179 -
180 - # Add perf plugin install rules
181 - mkdir -p $(TOP)-plugin-perf/usr/libexec/netdata/plugins.d/
182 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/perf.plugin \
183 - $(TOP)-plugin-perf/usr/libexec/netdata/plugins.d/perf.plugin
184 -
185 - # Add debugfs plugin install rules
186 - mkdir -p $(TOP)-plugin-debugfs/usr/libexec/netdata/plugins.d/
187 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/debugfs.plugin \
188 - $(TOP)-plugin-debugfs/usr/libexec/netdata/plugins.d/debugfs.plugin
189 -
190 - # Add systemd-journal plugin install rules
191 - mkdir -p $(TOP)-plugin-systemd-journal/usr/libexec/netdata/plugins.d/
192 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/systemd-journal.plugin \
193 - $(TOP)-plugin-systemd-journal/usr/libexec/netdata/plugins.d/systemd-journal.plugin
194 -
195 - # Add logs-management plugin install rules
196 - mkdir -p $(TOP)-plugin-logs-management/usr/libexec/netdata/plugins.d/
197 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/logs-management.plugin \
198 - $(TOP)-plugin-logs-management/usr/libexec/netdata/plugins.d/logs-management.plugin
199 - mkdir -p $(TOP)-plugin-logs-management/usr/lib/netdata/conf.d/
200 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/logsmanagement.d.conf \
201 - $(TOP)-plugin-logs-management/usr/lib/netdata/conf.d/logsmanagement.d.conf
202 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/logsmanagement.d/ \
203 - $(TOP)-plugin-logs-management/usr/lib/netdata/conf.d/logsmanagement.d/
204 -
205 - # Add xenstat plugin install rules
206 - if [ $(HAVE_XENSTAT) -eq 1 ]; then \
207 - mkdir -p $(TOP)-plugin-xenstat/usr/libexec/netdata/plugins.d/ ; \
208 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/xenstat.plugin \
209 - $(TOP)-plugin-xenstat/usr/libexec/netdata/plugins.d/xenstat.plugin; \
210 - fi
211 -
212 - # Install go to it's own package directory
213 - #
214 - mkdir -p $(TOP)-plugin-go/usr/libexec/netdata/plugins.d
215 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/go.d.plugin \
216 - $(TOP)-plugin-go/usr/libexec/netdata/plugins.d/go.d.plugin
217 - mkdir -p $(TOP)-plugin-go/usr/lib/netdata/conf.d
218 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/go.d.conf \
219 - $(TOP)-plugin-go/usr/lib/netdata/conf.d/go.d.conf
220 - mv -f $(TEMPTOP)/usr/lib/netdata/conf.d/go.d \
221 - $(TOP)-plugin-go/usr/lib/netdata/conf.d/go.d
222 -
223 - # Add network-viewer plugin install rules
224 - mkdir -p $(TOP)-plugin-network-viewer/usr/libexec/netdata/plugins.d/
225 - mv -f $(TEMPTOP)/usr/libexec/netdata/plugins.d/network-viewer.plugin \
226 - $(TOP)-plugin-network-viewer/usr/libexec/netdata/plugins.d/network-viewer.plugin
227 -
228 - # Set the rest of the software in the main package
229 - #
230 - cp -rp $(TEMPTOP)/usr $(TOP)
231 - cp -rp $(TEMPTOP)/var $(TOP)
232 - cp -rp $(TEMPTOP)/etc $(TOP)
233 - mkdir -p "$(TOP)/var/log/netdata"
234 - mkdir -p "$(TOP)/var/cache/netdata"
235 - mkdir -p "$(TOP)/var/run/netdata"
236 -
237 - # Copy the updater script
238 - #
239 - cp -v packaging/installer/netdata-updater.sh $(TOP)/usr/libexec/netdata/netdata-updater.sh
240 -
241 -
242 -override_dh_installdocs:
243 - dh_installdocs
244 -
245 - find . \
246 - -name README.md \
247 - -not -path './debian/*' \
248 - -not -path './contrib/*' \
249 - -exec cp \
250 - --parents \
251 - --target $(TOP)/usr/share/doc/netdata/ \
252 - {} \;
253 -
254 -override_dh_fixperms:
255 - dh_fixperms
256 -
257 - # Updater script should be executable
258 - #
259 - chmod 0755 $(TOP)/usr/libexec/netdata/netdata-updater.sh
260 -
261 - # debugfs plugin
262 - chmod 0750 $(TOP)-plugin-debugfs/usr/libexec/netdata/plugins.d/debugfs.plugin
263 -
264 - # apps.plugin should only be runnable by the netdata user. It will be
265 - # given extra capabilities in the postinst script.
266 - chmod 0750 $(TOP)-plugin-apps/usr/libexec/netdata/plugins.d/apps.plugin
267 -
268 - # slabinfo package
269 - chmod 0750 $(TOP)-plugin-slabinfo/usr/libexec/netdata/plugins.d/slabinfo.plugin
270 -
271 - # perf package
272 - chmod 0750 $(TOP)-plugin-perf/usr/libexec/netdata/plugins.d/perf.plugin
273 -
274 - # Go plugin package
275 - chmod 0750 $(TOP)-plugin-go/usr/libexec/netdata/plugins.d/go.d.plugin
276 -
277 - # CUPS plugin package
278 - chmod 0750 $(TOP)-plugin-cups/usr/libexec/netdata/plugins.d/cups.plugin
279 -
280 - # freeIPMI plugin package
281 - chmod 4750 $(TOP)-plugin-freeipmi/usr/libexec/netdata/plugins.d/freeipmi.plugin
282 -
283 - # NFACCT plugin package
284 - chmod 4750 $(TOP)-plugin-nfacct/usr/libexec/netdata/plugins.d/nfacct.plugin
285 -
286 - # cgroup-network
287 - chmod 4750 $(TOP)/usr/libexec/netdata/plugins.d/cgroup-network
288 -
289 - # local-listeners
290 - chmod 4750 $(TOP)/usr/libexec/netdata/plugins.d/local-listeners
291 -
292 - # network-viewer
293 - chmod 4750 $(TOP)-plugin-network-viewer/usr/libexec/netdata/plugins.d/network-viewer.plugin
294 -
295 - # systemd-journal
296 - chmod 4750 $(TOP)-plugin-systemd-journal/usr/libexec/netdata/plugins.d/systemd-journal.plugin
297 -
298 - # xenstat
299 - if [ $(HAVE_XENSTAT) -eq 1 ]; then \
300 - chmod 4750 $(TOP)-plugin-xenstat/usr/libexec/netdata/plugins.d/xenstat.plugin; \
301 - fi
302 -
303 - # logs-management
304 - chmod 4750 $(TOP)-plugin-logs-management/usr/libexec/netdata/plugins.d/logs-management.plugin
305 -
306 -override_dh_installlogrotate:
307 - cp $(BUILDDIR)/system/logrotate/netdata debian/netdata.logrotate
308 - dh_installlogrotate
309 -
310 -override_dh_installdeb:
311 - dh_installdeb
312 - @echo "Recreating conffiles without auto-adding /etc files"
313 - @cp $(CURDIR)/debian/conffiles $(CURDIR)/debian/netdata/DEBIAN/conffiles
314 -
315 -override_dh_clean:
316 - dh_clean
317 -
318 - # Tidy up copied/generated files
319 - #
320 - [ -r $(CURDIR)/debian/netdata.logrotate ] && rm $(CURDIR)/debian/netdata.logrotate ; true
321 - [ -r $(CURDIR)/debian/netdata.conffiles ] && rm $(CURDIR)/debian/netdata.conffiles ; true
contrib/debian/source/format deleted
-1
@@ -1 +0,0 @@
1 -3.0 (native)