mirror of
https://abf.rosa.ru/djam/node_exporter.git
synced 2025-02-23 03:22:45 +00:00
Imported from SRPM
This commit is contained in:
commit
6936ab0c0d
2 changed files with 40 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
node_exporter-1.1.1.tar.gz: c4b9b729cd0a705bd0bcdedf8d7f6030be0c4524
|
38
node_exporter.spec
Normal file
38
node_exporter.spec
Normal file
|
@ -0,0 +1,38 @@
|
|||
%define debug %nil
|
||||
%define debug_package %nil
|
||||
|
||||
Name: node_exporter
|
||||
Version: 1.1.1
|
||||
Release: 1
|
||||
Summary: Exporter for machine metrics
|
||||
URL: https://prometheus.io
|
||||
Source0: https://github.com/prometheus/node_exporter/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
License: ASL 2.0
|
||||
Group: Development/Other
|
||||
BuildRequires: go >= 1.11
|
||||
BuildRequires: git-core
|
||||
BuildRequires: upx
|
||||
|
||||
%description
|
||||
Exporter for machine metrics
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
make build
|
||||
upx %{name}
|
||||
|
||||
%install
|
||||
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -Dm0644 examples/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
|
||||
install -Dm0644 examples/systemd/sysconfig.node_exporter %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||
|
||||
#/var/lib/node_exporter/textfile_collector
|
||||
|
||||
%files
|
||||
%doc README.md LICENSE
|
||||
%{_bindir}/%{name}
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_sysconfdir}/sysconfig/%{name}
|
||||
|
Loading…
Add table
Reference in a new issue