Re: [mod-security-users] modsecurity rpms for centos 7
Brought to you by:
victorhora,
zimmerletw
|
From: Gregory L. <gr...@cl...> - 2018-04-05 19:53:28
|
Hi Eero, You can make one. An RPM spec file similar to the following has been known to work on CentOS7: ================================ Name: modsecurity Version: 3.0.2 Release: 1 License: Apache License, Version 2.0, January 2004 Summary: Library for ModSecurity, an open source, cross platform web application firewall (WAF) engine URL: https://modsecurity.org/ BuildRequires: bison,curl,doxygen,flex,gcc-c++,GeoIP-devel,libcurl-devel,libxml2-devel,pcre-devel,ssdeep-devel,yajl,yajl-devel, zlib-devel Source0: https://github.com/SpiderLabs/ModSecurity/releases/download/v%{version}/modsecurity-v%{version}.tar.gz %description Libmodsecurity is one component of the ModSecurity v3 project. The library codebase serves as an interface to ModSecurity Connectors taking in web traffic and applying traditional ModSecurity processing. In general, it provides the capability to load/interpret rules written in the ModSecurity SecRules format and apply them to HTTP content provided by your application via Connectors. %package devel Requires: modsecurity = %{version}-%{release} Summary: Header files and libraries for Libmodsecurity development %description devel The modsecurity-devel package contains the header files and libraries needed to develop programs that use the Libmodsecurity library. %prep %setup -n %{name}-v%{version} %build export DESTDIR=%{buildroot} %configure \ --with-curl=/usr/bin/curl-config \ --with-geoip=yes \ --with-libxml=/usr/bin/xml2-config \ --with-lmdb=no \ --with-lua=no \ --with-pcre=/usr/bin/pcre-config \ --with-ssdeep=yes \ --with-yajl=yes make %{?_smp_flags} %install make install DESTDIR=%{buildroot} INSTALLDIRS=vendor %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS CHANGES LICENSE README.md %{_bindir}/modsec-rules-check %{_libdir}/libmodsecurity.so.3* %files devel %defattr(-,root,root,-) %dir %{_includedir}/modsecurity %{_includedir}/modsecurity/* %{_libdir}/libmodsecurity.a %{_libdir}/libmodsecurity.la %{_libdir}/libmodsecurity.so %changelog * Thu Apr 5 2018 Your Name <email address> - initial packaging ================================ You can copy the files into place and build with something like this: cp -f modsecurity-v3.0.2.tar.gz ${DIRECTORY}/SOURCES/ cp -f modsecurity.spec ${DIRECTORY}/SPECS/ rpmbuild -bb -vvvvv --define "_topdir ${TOPDIR}" ${DIRECTORY}/SPECS/modsecurity.spec Unfortunately I'm not in a position to offer support for this at this time, but hope it helps. Good luck! Gregory On Thu, Apr 5, 2018 at 10:35 AM, Eero Volotinen <eer...@ik...> wrote: > Hi, > > is there modsecurity v3 rpms available for centos 7 > > Eero > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > mod-security-users mailing list > mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-security-users > Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs: > http://www.modsecurity.org/projects/commercial/rules/ > http://www.modsecurity.org/projects/commercial/support/ > > |