Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:go
golang-github-sni-lmd
golang-github-sni-lmd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File golang-github-sni-lmd.spec of Package golang-github-sni-lmd
# # spec file for package lmd # # Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if 0%{?suse_version} >= 01210 %bcond_without systemd %else %bcond_with systemd %endif %global provider github %global provider_tld com %global project sni %global repo lmd %global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} %global import_path %{provider_prefix} Name: golang-%{provider}-%{project}-%{repo} Version: 1.2.0 Release: 0 License: GPL-3.0 Summary: Livestatus Multitool Daemon - devel package Url: https://labs.consol.de/omd/packages/lmd/ Group: Development/Languages/Golang Source: %{repo}-%{version}.tar.gz Source1: lmd.service Source2: lmd.sysconfig AutoReqProv: Off BuildRequires: golang-packaging BuildRequires: golang(github.com/BurntSushi/toml) Requires: golang(github.com/BurntSushi/toml) BuildRequires: golang(github.com/kdar/factorlog) Requires: golang(github.com/kdar/factorlog) BuildRequires: golang(github.com/mgutz/ansi) Requires: golang(github.com/mgutz/ansi) BuildRequires: golang(github.com/prometheus/client_golang/prometheus) Requires: golang(github.com/prometheus/client_golang/prometheus) BuildRequires: golang(github.com/Jeffail/gabs) Requires: golang(github.com/Jeffail/gabs) BuildRequires: golang(github.com/julienschmidt/httprouter) Requires: golang(github.com/julienschmidt/httprouter) BuildRequires: golang(API) >= 1.5 Requires(post): %fillup_prereq %if %{with systemd} BuildRequires: systemd-rpm-macros %{?systemd_requires} %endif %{go_nostrip} %{go_provides} %description This is the development/sources package for LMD, the Livestatus Multitool Daemon. %package -n %{repo} Summary: Livestatus Multitool Daemon Group: System/Monitoring %{?systemd_requires} %{go_exclusivearch} %description -n %{repo} LMD fetches Livestatus data from one or multiple Livestatus sources and provides itself an aggregated Livestatus API. This makes the Thruk Gui faster, especcially when having many (remote) backends, because LMD caches the data locally and can directly respond to all Livestatus queries. %prep %setup -q -n %{repo}-%{version} %build %goprep %{import_path} %gobuild lmd/... %install %goinstall %gosrc %gofilelist install -D -m 644 lmd.ini.example %{buildroot}%{_sysconfdir}/lmd/lmd.ini %if %{with systemd} install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/lmd.service mkdir -p %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rclmd %endif install -D -m 644 %{SOURCE2} %{buildroot}/%{_var}/adm/fillup-templates/sysconfig.lmd %if %{with systemd} %pre -n %{repo} %service_add_pre lmd.service %endif %post -n %{repo} %if %{with systemd} %service_add_post lmd.service %endif %fillup_only %if %{with systemd} %preun -n %{repo} %service_del_preun lmd.service %postun -n %{repo} %service_del_postun lmd.service %endif %files -f file.lst %defattr(-,root,root) %doc Changes LICENSE README.md docs/ %files -n %{repo} %defattr(-,root,root) %doc Changes LICENSE README.md %dir %{_sysconfdir}/%{repo} %config(noreplace) %{_sysconfdir}/lmd/lmd.ini %{_bindir}/%{repo} %{_var}/adm/fillup-templates/sysconfig.lmd %if %{with systemd} %{_unitdir}/lmd.service %endif %{_sbindir}/rclmd %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor