[packages/snort] - fix dynamic_rulses install

baggins baggins at pld-linux.org
Sun Apr 10 03:26:50 CEST 2016


commit 652a37bcb5c7742a8d21216a6034155318f0ef8f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Apr 10 10:26:32 2016 +0900

    - fix dynamic_rulses install

 snort-libdir.patch | 11 +++++++++++
 snort.spec         |  4 ++++
 2 files changed, 15 insertions(+)
---
diff --git a/snort.spec b/snort.spec
index 8daaf7e..05a586f 100644
--- a/snort.spec
+++ b/snort.spec
@@ -30,6 +30,7 @@ Source3:	http://www.snort.org/pub-bin/downloads.cgi/Download/comm_rules/Communit
 Source4:	%{name}.init
 Source5:	%{name}.logrotate
 Patch0:		%{name}-link.patch
+Patch1:		%{name}-libdir.patch
 URL:		http://www.snort.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -129,6 +130,7 @@ Snort - це сніфер пакетів, що може використовув
 %prep
 %setup -q %{!?with_registered:-a1} %{?with_registered:-a2} -a3
 %patch0 -p1
+%patch1 -p1
 
 sed -i "s#var\ RULE_PATH.*#var RULE_PATH /etc/snort/rules#g" rules/snort.conf
 _DIR=$(pwd)
@@ -212,5 +214,7 @@ fi
 %{_mandir}/man?/*
 %dir %{_libdir}/snort_dynamicengine
 %dir %{_libdir}/snort_dynamicpreprocessor
+%dir %{_libdir}/snort_dynamicrules
 %attr(755,root,root) %{_libdir}/snort_dynamicengine/libsf_engine.so*
 %attr(755,root,root) %{_libdir}/snort_dynamicpreprocessor/*.so*
+%attr(755,root,root) %{_libdir}/snort_dynamicrules/lib_sfdynamic_example_rule.so*
diff --git a/snort-libdir.patch b/snort-libdir.patch
new file mode 100644
index 0000000..2626e08
--- /dev/null
+++ b/snort-libdir.patch
@@ -0,0 +1,11 @@
+--- snort-2.9.8.2/src/dynamic-examples/dynamic-rule/Makefile.am~	2016-04-10 10:02:59.000000000 +0900
++++ snort-2.9.8.2/src/dynamic-examples/dynamic-rule/Makefile.am	2016-04-10 10:20:43.733354277 +0900
+@@ -3,7 +3,7 @@
+ 
+ INCLUDES = -I../include
+ 
+-noinst_libdir = ${exec_prefix}/lib/snort_dynamicrules
++noinst_libdir = ${libdir}/snort_dynamicrules
+ 
+ noinst_lib_LTLIBRARIES = lib_sfdynamic_example_rule.la
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/snort.git/commitdiff/652a37bcb5c7742a8d21216a6034155318f0ef8f



More information about the pld-cvs-commit mailing list