Search
j0ke.net Open Build Service
>
Projects
>
ha
:
firewall
>
snort292
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 9
[-]
[+]
Changed
snort.spec
@@ -33,6 +33,7 @@ # Other useful bits %define OracleHome /opt/oracle/OraHome1 %define SnortRulesDir %{_sysconfdir}/snort/rules +%define SnortPreProcRulesDir %{_sysconfdir}/snort/preproc_rules %define noShell /bin/false # Handle the options noted above. @@ -117,6 +118,7 @@ Source0: http://www.snort.org/dl/2.9.0/%{realname}-%{version}.tar.bz2 Source2: snortd.suse.init Source10: spp_ipv6_20120120.tar.bz2 +Source11: spp_ipv6-configs.tar.bz2 Source20: snort-rpmlintrc Patch0: snortsam-2.9.2.2.diff Patch1: autojunk.patch @@ -221,7 +223,7 @@ %prep -%setup -q -n %{realname}-%{version} -a 10 +%setup -q -n %{realname}-%{version} -a 10 -a 11 %patch0 -p1 %patch1 -p0 %patch2 @@ -377,6 +379,9 @@ %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_sbindir} %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{SnortRulesDir} + %if %{ipv6spp} + %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{SnortPreProcRulesDir} + %endif %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/snort %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig %__mkdir_p -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d @@ -466,7 +471,12 @@ # install ipv6 preproc %if %{ipv6spp} %__install -m0755 spp_ipv6/build/spp_ipv6.so %{buildroot}%{_libdir}\/%{realname}-%{version}_dynamicpreprocessor +%__install -m0644 preprocessor.rules %{buildroot}%{SnortPreProcRulesDir}/preprocessor.rules +%__install -m0644 ipv6.rules %{buildroot}%{SnortRulesDir}/ipv6.rules +cat gen-msg.map >> %{buildroot}%{_sysconfdir}/etc/snort/gen-msg.map %endif +# rcsnort link +ln -sf ../../etc/init.d/%{name} $RPM_BUILD_ROOT/usr/sbin/rc%{name} %clean %__rm -rf $RPM_BUILD_ROOT @@ -580,8 +590,12 @@ %files %defattr(-,root,root) %attr(0755,root,root) %{_sbindir}/%{name}-plain +%attr(0755,root,root) %{_sbindir}/rc%{name} %attr(0644,root,root) %{_mandir}/man8/snort.8.* %attr(0755,root,root) %dir %{SnortRulesDir} +%if %{ipv6spp} +%attr(0755,root,root) %dir %{SnortPreProcRulesDir} +%endif %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/classification.config %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/reference.config %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/threshold.conf
Added
spp_ipv6-configs.tar.bz2
^