]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - suricata/suricata.nm
gobject-introspection: Update to 1.39.3.
[people/ms/ipfire-3.x.git] / suricata / suricata.nm
CommitLineData
c6c409aa 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
c6c409aa
SS
4###############################################################################
5
9ecbd3d5 6name = suricata
fdf22456 7version = 1.3.2
1c47d86a 8release = 3
802ea3af
MT
9
10groups = Networking/IDS
11url = http://www.openinfosecfoundation.org/
12license = GPLv2
13summary = Open Source Next Generation Intrusion Detection and Prevention Engine.
14
15description
16 The suricata engine is not intended to just replace or emulate the
17 existing tools in the industry, but provides new ideas and
18 technologies.
19end
20
21source_dl = http://www.openinfosecfoundation.org/download/
22
23build
24 requires
f5a18d67 25 file-devel
802ea3af
MT
26 libcap-ng-devel
27 libnfnetlink-devel
28 libnetfilter_queue-devel
29 libnet-devel
30 libpcap-devel
31 libyaml-devel
69e53adb 32 libhtp-devel
802ea3af
MT
33 pcre-devel
34 pkg-config
40505164 35 zlib-devel>=1.2.5-2
802ea3af
MT
36 end
37
38 configure_options += \
39 --enable-gccprotect \
40 --enable-nfqueue \
ee9ea526 41 --disable-gccmarch-native \
1c47d86a
SS
42 --disable-static \
43 --enable-non-bundled-htp \
44 --with-libhtp-includes=%{includedir}/htp \
45 --with-libhtp-libraries=%{libdir}
272bae8f
CS
46
47 install_cmds
fdf22456
KB
48 mkdir -pv %{BUILDROOT}%{sysconfdir}
49 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata
50 mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata/rules
51 cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}%{sysconfdir}/suricata
52 mkdir -pv %{BUILDROOT}%{localstatedir}/log/suricata
272bae8f
CS
53 end
54
802ea3af
MT
55end
56
57
58packages
59 package %{name}
74e6b01b
CS
60
61 prerquires = systemd-units
62
63 configfiles
fdf22456 64 %{BUILDROOT}%{sysconfdir}/suricata/suricata.conf
74e6b01b
CS
65 end
66
67 script postin
fdf22456 68 systemctl daemon-reload >/dev/null 2>&1 || :
74e6b01b
CS
69 end
70
71 script preun
fdf22456
KB
72 systemctl --no-reload disable suricata.service >/dev/null 2>&1 || :
73 systemctl stop suricata.service >/dev/null 2>&1 || :
74e6b01b
CS
74 end
75
76 script postun
fdf22456 77 systemctl daemon-reload >/dev/null 2>&1 || :
74e6b01b
CS
78 end
79
80 script postup
fdf22456
KB
81 systemctl daemon-reload >/dev/null 2>&1 || :
82 systemctl try-restart suricata.service >/dev/null 2>&1 || :
74e6b01b
CS
83 end
84
802ea3af 85 end
1f9bc2f0 86
802ea3af
MT
87 package %{name}-devel
88 template DEVEL
89 end
1f9bc2f0
MT
90
91 package %{name}-debuginfo
92 template DEBUGINFO
93 end
802ea3af 94end