Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:loosi
logstash-forwarder
logstash-forwarder.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File logstash-forwarder.spec of Package logstash-forwarder
# # Copyright (c) 2014, James Mason <jmason@suse.com> # # 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. %define forwarder_user logstash %define forwarder_grup logstash %define forwarder_dir /usr/share/logstash-forwarder Name: logstash-forwarder Version: X Release: 20150612-0 License: Apache-2.0 Summary: Forward events to a logstash instance, using lumberjack protocol Url: https://github.com/elasticsearch/logstash-forwarder Group: System/Monitoring Source0: %{name}-%{version}.tar.gz Source2: %{name}.sysconfig Source3: %{name}.1 Source4: %{name}.service BuildRequires: go >= 1.2 BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %fillup_prereq Requires(pre): /usr/sbin/useradd, /usr/bin/getent Requires(post): systemd Requires(preun): systemd Requires(postun): /usr/sbin/userdel Requires(postun): systemd BuildRequires: systemd %{?systemd_requires} %description ♫ I'm a lumberjack and I'm ok! I sleep when idle, then I ship logs all day! I parse your logs, I eat the JVM agent for lunch! ♫ (This project was recently renamed from 'lumberjack' to 'logstash-forwarder' to make its intended use clear. The 'lumberjack' name now remains as the network protocol, and 'logstash-forwarder' is the name of the program. It's still the same lovely log forwarding program you love.) %prep %setup -q %build go build -v gzip --stdout %{S:3} > %{S:3}.gz %install install -d $RPM_BUILD_ROOT{/usr/sbin,%{_bindir},%{_sysconfdir}/{%{name},sysconfig,init.d},/var/adm/fillup-templates,/%{_mandir}/man1}/ install -m 755 %{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name} install -m 644 %{S:2} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.%{name} install -m 644 %{name}.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.json.example install -m 644 %{S:3}.gz $RPM_BUILD_ROOT%{_mandir}/man1/ mkdir -p %{buildroot}%{_unitdir}/ %{__install} -D -m644 %{S:4} %{buildroot}%{_unitdir}/%{name}.service %pre %service_add_pre %{name}.service /usr/bin/getent group %{forwarder_user} || /usr/sbin/groupadd %{forwarder_user} /usr/bin/getent passwd %{forwarder_user} || /usr/sbin/useradd -g %{forwarder_user} -M -r -d /usr/share/logstash -s /sbin/nologin %{forwarder_user} /usr/bin/mkdir -p %{forwarder_dir} %preun %stop_on_removal %{name} %service_del_preun %{name}.service %postun %restart_on_update %{name} %{insserv_cleanup} %service_del_postun %{name}.service /usr/sbin/userdel %{forwarder_user} %clean rm -rf $RPM_BUILD_ROOT %post %{fillup_only} %service_add_pre %{name}.service mkdir -p /usr/share/logstash %files %defattr(-,root,root,-) %{_bindir}/%{name} /var/adm/fillup-templates/sysconfig.%{name} %config(noreplace) %{_sysconfdir}/%{name} %{_mandir}/man1/%{name}.1.gz %{_unitdir}/%{name}.service %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