Projects
home:rottame:mail
crowdsec_helper
crowdsec_helper.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File crowdsec_helper.spec of Package crowdsec_helper (Revision 4)
Currently displaying revision
4
,
Show latest
# # spec file for package crowdsec_helper # # Copyright (c) 2026 SUSE LLC # # 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 package itself (unless the license # for the file is specified differently in the file). # # This file is generated from information provided by the package maintainer. # Name: crowdsec_helper Version: 0.1.0 Release: 0 Summary: CrowdSec helper - whitelist of known good IPs License: LicenseRef-SUSE-NonFree Group: System/Daemons URL: https://example.invalid/crowdsec_helper Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.zst Source2: crowdsec_helper.service Source3: sysconfig.crowdsec_helper Source4: crowdsec_helper.tmpfiles Source5: crowdsec_helper.sysusers BuildRequires: golang(API) = 1.26 BuildRequires: golang-packaging BuildRequires: zstd BuildRequires: sysuser-tools BuildRequires: systemd-rpm-macros BuildRequires: fillup Requires: systemd %sysusers_requires BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_ordering} %description CrowdSec helper stores and manages a whitelist of known good IPs for CrowdSec. It receives IPs via HTTP, stores them in a SQLite database with a TTL, and generates CrowdSec whitelist NDJSON files (one per scope) that CrowdSec can use to ignore legitimate IPs. %prep %autosetup -p1 -a1 %build export CGO_ENABLED=0 go build -mod=vendor -buildmode=pie -trimpath -ldflags "-s -w" -o crowdsec_helper . %sysusers_generate_pre %{SOURCE5} %{name} %{name}.conf %check go test -mod=vendor ./... %install install -D -m 0755 crowdsec_helper %{buildroot}%{_sbindir}/crowdsec_helper install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/crowdsec_helper.service install -D -m 0644 %{SOURCE3} %{buildroot}%{_fillupdir}/sysconfig.crowdsec_helper install -D -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/crowdsec_helper.conf install -D -m 0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/crowdsec_helper.conf install -d -m 0750 %{buildroot}%{_localstatedir}/lib/crowdsec_helper %pre -f crowdsec_helper.pre %service_add_pre crowdsec_helper.service %post %service_add_post crowdsec_helper.service %tmpfiles_create crowdsec_helper.conf %fillup_only crowdsec_helper %preun %service_del_preun crowdsec_helper.service %postun %service_del_postun crowdsec_helper.service %files %defattr(-,root,root) %{_sbindir}/crowdsec_helper %{_unitdir}/crowdsec_helper.service %{_fillupdir}/sysconfig.crowdsec_helper %{_tmpfilesdir}/crowdsec_helper.conf %{_sysusersdir}/crowdsec_helper.conf %dir %attr(0750,crowdsec-helper,crowdsec-helper) %{_localstatedir}/lib/crowdsec_helper %doc README.md %changelog * Thu Aug 27 2026 Maintainer <maintainer@example.com> - 0.1.0 - Initial package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.