-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollectd-sensubility.spec
76 lines (57 loc) · 2.5 KB
/
collectd-sensubility.spec
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
%global golang_namespace github.com/infrawatch
%undefine _debugsource_packages
Name: collectd-sensubility
Version: 0.2.2
Release: 1%{?dist}
Summary: collectd-exec extension enabling collectd to bahave like sensu-client
License: ASL 2.0
URL: https://%{golang_namespace}/%{name}
Source0: https://%{golang_namespace}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: example-config.conf
BuildRequires: gcc
BuildRequires: golang >= 1.2-7
BuildRequires: golang(github.com/infrawatch/apputils) >= 0.7
Requires: util-linux
%description
This project aims provide possibility to switch from Sensu based availability monitoring solution to monitoring solution based on collectd with AMQP-1.0 messaging bus.
%prep
%autosetup -n %{name}-%{version}
%build
mkdir -p src/github.com/infrawatch
ln -s ../../../ src/github.com/infrawatch/collectd-sensubility
export GOPATH=$(pwd):%{gopath}
rm -f go.mod
GO111MODULE=off go build -a -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" -v -x -o collectd-sensubility main/main.go
%install
install -d %{buildroot}%{_bindir}
install -p -m 0755 ./collectd-sensubility %{buildroot}%{_bindir}/collectd-sensubility
chmod a+x %{buildroot}%{_bindir}/collectd-sensubility
install -d %{buildroot}%{_sysconfdir}
install -p -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/collectd-sensubility.conf
%files
%doc README.md
%license LICENSE
%{_bindir}/collectd-sensubility
%{_sysconfdir}/collectd-sensubility.conf
%changelog
* Mon May 13 2024 Martin Magr <[email protected]> - 0.2.2-1
- Rebuild with new apputils
* Thu Feb 03 2022 Emma Foley <[email protected]> - 0.1.9-2
- Bump release to trigger rebuild for Centos Stream 8 & 9
* Fri Oct 29 2021 Martin Magr <[email protected]> - 0.1.9-1
- Recreate log file according to config
- Rebuild with newest apputils
* Thu Apr 08 2021 Martin Magr <[email protected]> - 0.1.8-4
- Rebuild with newest apputils and golang-qpid-apache
* Thu Feb 25 2021 Martin Magr <[email protected]> - 0.1.8-3
- Rebuild with newest apputils and golang-qpid-apache
* Tue Oct 13 2020 Martin Magr <[email protected]> - 0.1.8-2
- Rebuild with fixed apputils
* Wed Sep 02 2020 Martin Mágr <[email protected]> - 0.1.8-1
- Updated to latest upstream release
* Tue May 12 2020 Martin Mágr <[email protected]> - 0.1.5-1
- Fix config issue (rhbz#1827023)
* Wed Aug 21 2019 Martin Mágr <[email protected]> - 0.1.4-1
- Unbundled dependencies
* Fri Jul 19 2019 Martin Mágr <[email protected]> - 0.1.1-1
- Initial build