-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathreporting-agent.spec
More file actions
92 lines (71 loc) · 2.95 KB
/
reporting-agent.spec
File metadata and controls
92 lines (71 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Summary: An agent gathering statistics from Open Edge Platform installations
Name: reporting-agent
Version: 0.1.2
Release: 1%{?dist}
License: Apache-2.0
Vendor: Intel Corporation
Distribution: Edge Microvisor Toolkit
URL: https://github.com/open-edge-platform/edge-node-agents
Source0: %{url}/archive/refs/tags/%{name}/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: %{name}.conf
Source2: edge-node-metrics.cron
BuildRequires: golang < 1.26
BuildRequires: golang >= 1.25.5
BuildRequires: systemd-rpm-macros
Requires(pre): %{_bindir}/systemd-sysusers
Requires: cronie
Requires: dmidecode
Requires: lsb-release
Requires: lshw
Requires: util-linux
%global debug_package %{nil}
%global _build_id_links none
%description
Reporting agent gathering statistics from Open Edge Platform installations. This agent is triggered by a cron job hourly and at system startup.
%prep
%setup -q
%build
make build
%install
# Create user
mkdir -p %{buildroot}%{_sysusersdir}
cp %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
# Install binary from the build directory
install -Dm755 build/%{name} %{buildroot}%{_bindir}/%{name}
# Install cron job
mkdir -p %{buildroot}%{_sysconfdir}/cron.d
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.d/edge-node-metrics.cron
# Install sudoers file
mkdir -p %{buildroot}%{_sysconfdir}/sudoers.d
cp config/sudoers.d/reporting-agent %{buildroot}%{_sysconfdir}/sudoers.d/
# Create metrics and log directories with correct permissions
install -d -m 755 %{buildroot}%{_sysconfdir}/edge-node/metrics
install -d -m 755 %{buildroot}%{_var}/log/edge-node
# Install config file
install -m 644 config/reporting-agent.yaml %{buildroot}%{_sysconfdir}/edge-node/metrics/reporting-agent.yaml
# Copy license
mkdir -p %{buildroot}%{_defaultlicensedir}/%{name}
cp copyright %{buildroot}%{_defaultlicensedir}/%{name}
%files
%{_sysusersdir}/%{name}.conf
%{_bindir}/reporting-agent
%config %{_sysconfdir}/sudoers.d/reporting-agent
%config %{_sysconfdir}/cron.d/edge-node-metrics.cron
%dir %attr(0755,reporting-agent,bm-agents) %{_sysconfdir}/edge-node/metrics
%config(noreplace) %{_sysconfdir}/edge-node/metrics/reporting-agent.yaml
%dir %attr(0755,reporting-agent,bm-agents) %{_var}/log/edge-node
%license %{_defaultlicensedir}/%{name}/copyright
%pre
%sysusers_create_package %{name} %{SOURCE1}
%changelog
* Fri Feb 20 2026 Rajeev Ranjan <rajeev2.ranjan@intel.com> - 0.1.2-1
- Update to golang 1.25.7
* Thu Feb 19 2026 Basavarajx unniche <basavarajx.unniche@intel.com> - 0.1.1-1
- Update golang to 1.25.5
* Thu Nov 20 2025 Rajeev Ranjan <rajeev2.ranjan@intel.com> - 0.1.0-1
- Update to golang 1.24.9
- Fix CVE-2025-47913
* Tue Sep 2 2025 Polmoorx shiva kumar <polmoorx.shiva.kumar@intel.com> - 0.0.4-2
- Update go version to use above 1.24.4
* Wed Jun 11 2025 Jakub Sikorski <jakub.sikorski@intel.com> - 0.0.4-1
- Original version for Edge Microvisor Toolkit. License verified