summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Bogusz2016-10-16 13:32:45 (GMT)
committerJakub Bogusz2016-10-16 13:32:45 (GMT)
commita1bb2e7869ea8399f9ab849d7622b32d6fb4adc6 (patch)
tree8d695cfb46fe7b66ca9e5003c4dd2be999244422
downloadprelude-lml-rules-a1bb2e7869ea8399f9ab849d7622b32d6fb4adc6.zip
prelude-lml-rules-a1bb2e7869ea8399f9ab849d7622b32d6fb4adc6.tar.gz
- initial
-rw-r--r--prelude-lml-rules.spec46
1 files changed, 46 insertions, 0 deletions
diff --git a/prelude-lml-rules.spec b/prelude-lml-rules.spec
new file mode 100644
index 0000000..fa0828b
--- /dev/null
+++ b/prelude-lml-rules.spec
@@ -0,0 +1,46 @@
+%include /usr/lib/rpm/macros.perl
+Summary: Ruleset for Prelude LML pcre plugin
+Summary(pl.UTF-8): Zestaw reguł dla wtyczki pcre Prelude LML
+Name: prelude-lml-rules
+Version: 3.1.0
+Release: 1
+License: GPL v2+
+Group: Applications/Networking
+#Source0Download: https://www.prelude-siem.org/projects/prelude/files
+Source0: https://www.prelude-siem.org/attachments/download/725/%{name}-%{version}.tar.gz
+# Source0-md5: c1c52d819aca17eccf8647c625f9d91d
+URL: https://www.prelude-siem.org/
+BuildRequires: rpm-perlprov
+BuildRequires: sed >= 4.0
+Requires: prelude-lml >= %{version}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Ruleset for Prelude LML pcre plugin (<https://www.prelude-siem.org/>).
+These rules are brought to you by CS and the Prelude Community.
+
+%description -l pl.UTF-8
+Zestaw reguł dla wtyczki pcre systemu Prelude LML
+(<https://www.prelude-siem.org/>). Zostały udostępnione przez CS oraz
+Społeczność Prelude.
+
+%prep
+%setup -q
+
+%{__sed} -i -e '1s,/usr/bin/env perl,%{__perl},' src/prelude-lml-rules-check
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/prelude-lml,%{_bindir}}
+
+cp -r ruleset $RPM_BUILD_ROOT%{_sysconfdir}/prelude-lml
+cp -p src/prelude-lml-rules-check $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README
+%attr(755,root,root) %{_bindir}/prelude-lml-rules-check
+%{_sysconfdir}/prelude-lml/ruleset