forked from NethServer/nethserver-suricata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nethserver-suricata.spec
90 lines (63 loc) · 2.72 KB
/
nethserver-suricata.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Summary: NethServer Suricata IPS module
Name: nethserver-suricata
Version: 1.3.1
Release: 1%{?dist}
License: GPL
Source0: %{name}-%{version}.tar.gz
# Build Source1 by executing prep-sources
Source1: %{name}-ui.tar.gz
BuildArch: noarch
Requires: suricata
Requires: nethserver-firewall-base > 3.9.4
Requires: nethserver-pulledpork
Conflicts: nethserver-snort
BuildRequires: nethserver-devtools
%description
Snort IPS module for NethServer.
%prep
%setup -q
%build
%{makedocs}
perl createlinks
sed -i 's/_RELEASE_/%{version}/' %{name}.json
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/cockpit/%{name}/
mkdir -p %{buildroot}/usr/share/cockpit/nethserver/applications/
mkdir -p %{buildroot}/usr/libexec/nethserver/api/%{name}/
tar xf %{SOURCE1} -C %{buildroot}/usr/share/cockpit/%{name}/
cp -a %{name}.json %{buildroot}/usr/share/cockpit/nethserver/applications/
cp -a api/* %{buildroot}/usr/libexec/nethserver/api/%{name}/
(cd root ; find . -depth -print | cpio -dump %{buildroot})
%{genfilelist} %{buildroot} --file /etc/sudoers.d/50_nsapi_nethserver_suricata 'attr(0440,root,root)' > %{name}-%{version}-%{release}-filelist
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
%post
%preun
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}-%{version}-%{release}-filelist
%defattr(-,root,root)
%dir %{_nseventsdir}/%{name}-update
/usr/libexec/nethserver/api/%{name}/
%attr(0440,root,root) /etc/sudoers.d/20_nethserver_suricata
%changelog
* Mon Oct 28 2019 Giacomo Sanchietti <[email protected]> - 1.3.1-1
- Logs page in Cockpit - Bug NethServer/dev#5866
* Tue Oct 01 2019 Giacomo Sanchietti <[email protected]> - 1.3.0-1
- Sudoers based authorizations for Cockpit UI - NethServer/dev#5805
* Tue Sep 03 2019 Giacomo Sanchietti <[email protected]> - 1.2.2-1
- Cockpit. List correct application version - Nethserver/dev#5819
* Wed Jul 17 2019 Giacomo Sanchietti <[email protected]> - 1.2.1-1
- Cockpit: fix IPS enable/disable action (#15)
- Cockpit: update JavaScript dependencies for security issues
- Cockpit: remember last visited route
* Tue May 28 2019 Giacomo Sanchietti <[email protected]> - 1.2.0-1
- IPS Cockpit UI - NethServer/dev#5756
* Wed Nov 08 2017 Giacomo Sanchietti <[email protected]> - 1.1.1-1
- Suricata rules download error - Bug NethServer/dev#5370
* Fri Oct 06 2017 Giacomo Sanchietti <[email protected]> - 1.1.0-1
- EveBox - NethServer/dev#5346
* Wed Jun 07 2017 Giacomo Sanchietti <[email protected]> - 1.0.1-1
- suricata HOME_NET should contain RED interfaces - NethServer/dev#5152
* Wed Sep 28 2016 Giacomo Sanchietti <[email protected]> - 1.0.0-1
- Replace Snort with Suricata - NethServer/dev#5104