2800a3c
Name:           prelude-lml-rules
2800a3c
Version:        3.1.0
2800a3c
Release:        1%{?dist}
2800a3c
Summary:        Prelude LML community ruleset
2800a3c
License:        GPLv2+
2800a3c
URL:            https://www.prelude-siem.org/
2800a3c
Source0:        https://www.prelude-siem.org/pkg/src/3.1.0/%{name}-%{version}.tar.gz
2800a3c
BuildArch:      noarch
2800a3c
Requires:       prelude-lml
2800a3c
2800a3c
%description
2800a3c
Rules for Prelude LML contributed by the community.
2800a3c
2800a3c
%prep
2800a3c
%setup -q
2800a3c
2800a3c
%install
2800a3c
mkdir -p %{buildroot}%{_bindir}
2800a3c
install -m 0755 src/%{name}-check %{buildroot}%{_bindir}/
2800a3c
2800a3c
mkdir -p %{buildroot}%{_sysconfdir}/prelude-lml/ruleset
2800a3c
cp -pr ruleset/* %{buildroot}%{_sysconfdir}/prelude-lml/ruleset/
2800a3c
2800a3c
sed -i 's|#!/usr/bin/env perl|#!/usr/bin/perl|' %{buildroot}%{_bindir}/%{name}-check
2800a3c
2800a3c
%build
2800a3c
# No build action
2800a3c
2800a3c
%check
2800a3c
test -z "`%{buildroot}%{_bindir}/%{name}-check %{buildroot}%{_sysconfdir}/prelude-lml/ruleset/*.rules 2>&1 | grep WARNING`"
2800a3c
2800a3c
%files
2800a3c
%license COPYING
2800a3c
%doc NEWS README AUTHORS
2800a3c
%{_bindir}/%{name}-check
2800a3c
%dir %{_sysconfdir}/prelude-lml/ruleset
2800a3c
%dir %{_sysconfdir}/prelude-lml/ruleset/unsupported
2800a3c
%config(noreplace) %{_sysconfdir}/prelude-lml/ruleset/*.rules
2800a3c
%config(noreplace) %{_sysconfdir}/prelude-lml/ruleset/unsupported/*.rules
2800a3c
2800a3c
2800a3c
%changelog
2800a3c
* Fri Feb 17 2017 Thomas Andrejak <thomas.andrejak@gmail.com> - 3.1.0-1
2800a3c
- Initial package