47 Commits

Author SHA1 Message Date
Andrei Belov
ae8698d8cf
Makes JIT support in PCRE to be optional
In particular, this change allows to build libmodsecurity on some old
but still supported systems such as RHEL/CentOS 6.
2016-09-26 14:50:31 -03:00
Felipe Zimmerle
5febc7b26d Looking for lmdb in the right location under MacOS 2016-07-28 17:40:41 -03:00
Felipe Zimmerle
8a135cff9a
Extends the possible names for liblmdb0 2016-07-14 00:19:47 -03:00
Felipe Zimmerle
4c8aa54099
build: Adds missing lmdb.m4 2016-07-11 13:59:37 -03:00
Felipe Zimmerle
9919026620
Fixes regarding memory management
Fixes assorted issues identified by valgrind.
2016-06-16 00:03:57 -03:00
Felipe Zimmerle
8cdb138076
Adds support to make check-valgrind
make check-valgrind is useful to identify any memory related issue.
2016-06-14 14:05:28 -03:00
Felipe Zimmerle
28008be616 Build: Adds /usr/lib64 as possible path for YAJL
Reported by @LinuxJedi at #1077
2016-03-18 16:42:15 -03:00
Felipe Zimmerle
d528b8ea6d Build: Looking for YAJL's LD flags instead of CFLAGS
Original author: @LinuxJedi. Reported at #1077.
2016-03-18 16:41:22 -03:00
Chaim Sanders
29680d69aa Updated geoip m4 file to support from path 2016-01-07 10:43:45 -03:00
Felipe Zimmerle
5273258261 Fix libxml configure script 2016-01-07 10:20:34 -03:00
Felipe Zimmerle
0694cd30ca Adds support to libxml2 detection on the build system 2015-12-10 11:17:07 -03:00
Felipe Zimmerle
fbf8ea74f3 Makes YAJL dependency to be optional 2015-11-24 16:03:33 -03:00
Felipe Zimmerle
cf4377df70 Makes libCurl optional during configure 2015-11-24 15:06:34 -03:00
Felipe Zimmerle
21cae53d47 Improves the libgeoip detection during configure 2015-11-19 10:40:23 -03:00
Andrew Hutchings
c035e76ede Avoid segfault if parser `ref' is empty 2015-11-17 11:28:47 -03:00
Felipe Zimmerle
4dcefa104d Adds more plausible names for libgeoip 2015-11-10 04:53:34 -08:00
Felipe Zimmerle
ffb973700a Replaces libpcrecpp by libpcre 2015-10-27 08:55:12 -03:00
Felipe Zimmerle
e94226f1d8 Fix some build issues
Optional dependencies were temporarily marked as mandatory, in order
to sort any build problem, later it will be marked as optional again.
2015-08-25 00:25:33 -03:00
Felipe Zimmerle
73c6c8cf7c build: searching for pcre/geoip on /opt/local directory 2015-08-13 16:27:20 -03:00
Felipe Zimmerle
218eab6417 Fix libgeoip lookup during the build 2015-08-10 15:22:32 -03:00
Felipe Zimmerle
17f88f5821 Using libpcre instead of c++11 regex 2015-08-03 13:45:09 -03:00
Felipe Zimmerle
76b34af357 Adds support to load remote rules 2015-07-23 14:40:56 -03:00
Felipe Zimmerle
e189055ec3 Adds support to GeoIP operator and variables. 2015-07-20 21:05:14 -03:00
Felipe Zimmerle
95cb4c56ab Very first commit: libmodsecurity
Check the README.md file for further information about the libmodsecurity.
2015-06-26 14:35:15 -03:00
Felipe Zimmerle
33cbe0452a Opens space for libmodsecurity
Deletes all files in the repository does not seems to be a good idea.
The better approach will be to create a new repository. On other hand
we don't want this to be detached from this main repository. We can
push this to other repository if necessary.
2015-06-26 14:00:07 -03:00
Kurt Newman
d9bebfb874 Compiles against ssdeep in non-standard location
Issue 871: (*nix) Tacks on the include and lib directory when
a the user specifies a path for ssdeep in an alternate location.
2015-05-04 09:56:03 -03:00
Felipe Zimmerle
23823bb2c3 Makes Curl no longer a mandatory depedency for ModSecurity core
As reported by Rainer Jung, Curl may not be mandatory to build
	ModSecurity core. This patch make it optional by:
	- Concentrate all downloads using curl on msc_remote_rules.c
	- Split Curl build definitions checks into: WITH_CURL, WITH_REMOTE_RULES
	and WITH_CRYPTO.
	  - WITH_CURL: Contains Culr headers and binaries during the build time.
	  - WITH_REMOTE_RULES: Currently enabled if Curl is present.
	  - WITH_CRYPTO: Set if apr tool was compiled with crypto support.
	- Renames msc_remote_grab_content to msc_remote_download_content
2014-12-03 08:28:59 -08:00
Felipe Zimmerle
eb61e891ae Build: New alternative to identify the presence of libfuzzy
Searching for the fuzzy.h instead of the .so file.
2014-11-14 11:53:40 -08:00
Felipe Zimmerle
f45c6fe874 Build: fix the build script that looks for yajl
The script was looking for the wrong header file. Instead of look for
yajl_parse.h it was looking for yajl.h. Originally reported by
@rpfilomeno at #804.
2014-11-14 11:53:39 -08:00
Felipe Zimmerle
2615a5dfc8 mlogc: Checks if curl supports CURL_SSLVERSION_TLSv1_2 before use it
Seems like curl versions older than 7.34.0 does not have support for
`CURL_SSLVERSION_TLSv1_2'. In this cases, using CURL_SSLVERSION_TLSv1
which was added at version 7.9.2. ModSecurity demands a curl version
newer than 7.15.1.
2014-11-14 11:53:39 -08:00
Daniel J. Luke
d554b94d1e Include apr-util's LDFLAGS
Using apr-util installed by Macports results in build failure because apr-util uses BerkeleyDB that MacPorts installs into a subdir of $prefix/lib and $prefix/include (so that multiple versions of BerkeleyDB can be installed simultaneously). apu-1-config's --ldflags output includes the -L/path/to/bdb that's needed.
2014-11-14 11:53:39 -08:00
Felipe Zimmerle
873c628b1a Adds ssdeep support in our build system
ssdeep will be used with the @fuzzyHash operator which is under
development
2014-11-14 11:53:39 -08:00
Felipe Zimmerle
8d4c3e4f5c Makes the build system to look for yajl using a macro file
Now searching for yajl using find_yajl.m4 macro file instead
of using pkg-config directly. If YAJL was not found or if it
was disabled in the configure phase, the code will be compiled
without JSON support.
2014-03-31 16:22:09 -07:00
Felipe Zimmerle
f043ba33a3 Adds .a to the list of expected liblua extension
While download and installed on MacOS, liblua5.1, by default, place
itself, under the folder /usr/local/lib with the extension: .a.
2014-01-18 01:29:02 -03:00
chaizhenhua
088c660d58 Improved build script 2013-03-31 15:24:45 +08:00
Breno Silva
f920303e8b Fixed change from double to single quotes in find_pcre.m4 2012-12-17 14:45:50 -04:00
Breno Silva
a528e1c92a Added -R option to libtool with pcre lib path 2012-10-30 18:06:15 -04:00
brenosilva
7ea0e1223b Libxml2 must be at least 2.6.29 for 2.7.0 2012-08-27 18:00:29 +00:00
brenosilva
dc41b967b7 Fixed building with LUA 2011-06-06 15:42:36 +00:00
brenosilva
c41c3cee26 Fixed building with LUA 2011-06-06 14:53:21 +00:00
brenosilva
352fc200b4 Remove extra useless files 2011-05-03 13:41:40 +00:00
brenosilva
0b3ed41812 Avoid *FLAGS resetting - Diego Elio 2011-04-26 21:10:51 +00:00
brenosilva
9fb9aeb6a9 Detele useless files 2011-04-20 18:30:12 +00:00
brenosilva
c4f3d121f8 Fix without-lua into trunk - Diego Elio 2011-04-19 16:34:59 +00:00
b1v1r
8553cab4a7 Moved api examples to "ext" dir and hooked them into autotools for building with "--enable-extentions".
Upgraded to autoconf 2.65.
2010-05-05 23:00:48 +00:00
b1v1r
cea87f4085 Fixed test/test-gregression build targets. 2010-04-27 09:33:56 +00:00
b1v1r
eb6b9274af Redo build system to properly use autotools and avoid compilation with apxs util. 2010-04-25 23:24:09 +00:00