Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-apa24-mod_security-291
dba-apa24-mod_security-291.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-apa24-mod_security-291.spec of Package dba-apa24-mod_security-291
%define vers 291 %define version 2.9.1 %define prefix /DBA/apache24/WWW/2.4.x %define apavers 2.4.25 %define apapack 2425 %define apahome /DBA/apache24/WWW/%{apavers} %define dbacurl 0 %define dbassh2 1 %define dbassl 0 %define dbaxml2 0 %define apxs %{apahome}/bin/apxs %define modname mod_security2 %define tarballname modsecurity-%{version} Name: dba-apa24-mod_security-%{vers} Summary: ModSecurity Open Source Web Application Firewall 2.9.1 Version: %{version} Release: 1 License: GPL Url: http://www.modsecurity.org Source0: https://www.modsecurity.org/tarball/%{version}/%{tarballname}.tar.gz Source1: mod_security-rpmlintrc Source2: filter-requires-modsec.sh Group: Productivity/Networking/Web/Servers BuildRoot: %{_tmppath}/%{name}-%{version}-build #!BuildIgnore: libapr1-devel #!BuildIgnore: nspr dba-geoip-148 dba-geoip-160 %if 0%{?rhel_version} >= 700 #!BuildIgnore: libidn-devel %endif %define _use_internal_dependency_generator 0 %define __find_requires %{SOURCE2} BuildRequires: dba-apache-%{apapack} Requires: dba-apache-base #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c #!BuildIgnore: dba-git-2191 BuildRequires: pcre-devel gcc-c++ %define dbacurl 1 %define dbassl 1 %if %{dbacurl} BuildRequires: dba-curl-7531-static %if 0%{?rhel_version} < 700 BuildRequires: libidn-devel %endif %define curlpath /DBA/curl/7.53.1 %else BuildRequires: curl-devel %endif %if %{dbassl} BuildRequires: dba-openssl-102k-static %define ssldir /DBA/openssl/1.0.2k #!BuildIgnore: openssl-devel %else BuildRequires: openssl-devel %endif %if 0%{?centos_version} >= 501 && 0%{?centos_version} <= 599 || 0%{?rhel_version} >= 406 && 0%{?rhel_version} <= 599 BuildRequires: dba-libxml2-291-static %define dbaxml2 1 %define xmlpath /DBA/libxml2/2.9.1 %else #!BuildIgnore: dba-libxml2-290 BuildRequires: libxml2-devel %endif %if %{dbassh2} BuildRequires: dba-libssh2-143-static %define ssh2dir /DBA/libssh2/1.4.3 %else BuildRequires: libssh2-devel %endif %if 0%{?suse_version} >= 1000 BuildRequires: openldap2-devel BuildRequires: libexpat-devel %else BuildRequires: openldap-devel BuildRequires: expat-devel %endif %if 0%{?suse_version} >= 1110 BuildRequires: -post-build-checks BuildRequires: libexpat-devel %endif %description ModSecurity(TM) is an open source intrusion detection and prevention engine for web applications (or a web application firewall). Operating as an Apache Web server module or standalone, the purpose of ModSecurity is to increase web application security, protecting web applications from known and unknown attacks. Author: -------- Ivan Ristic <ivanr@webkreator.com> %prep %setup -n %{tarballname} %{__chmod} +x %{SOURCE2} %build %if 0%{?centos_version} >= 501 && 0%{?centos_version} <= 599 || 0%{?rhel_version} >= 406 && 0%{?rhel_version} <= 599 export CFLAGS="$RPM_OPT_FLAGS -DAPR_IOVEC_DEFINED" %endif %if %{dbassh2} export CFLAGS="$CFLAGS -I%{ssh2dir}/include" export LDFLAGS="$LDFLAGS -L/%{ssh2dir}/lib" %endif %if %{dbassl} export CFLAGS="$CFLAGS -I%{ssldir}/include" export LDFLAGS="$LDFLAGS -L/%{ssldir}/lib -lcrypto -lssl -ldl" %endif %configure \ --prefix=%{prefix} \ --enable-mlogc \ --enable-htaccess-config \ --with-apr=%{apahome}/bin/apr-1-config \ --with-apu=%{apahome}/bin/apu-1-config \ %if %{dbaxml2} --with-libxml=%{xmlpath}/bin/xml2-config \ %endif %if %{dbacurl} --with-curl=%{curlpath}/bin/curl-config \ %endif --with-apxs=%{apxs} %if 0%{?sles_version} >= 10 perl -pi -e "s|apr-1 64/include|apr-1|g" apache2/Makefile config.status mlogc/Makefile tests/Makefile tools/Makefile perl -pi -e "s|apr-1 /include|apr-1|g" apache2/Makefile config.status mlogc/Makefile tests/Makefile tools/Makefile %endif %{__make} %install # prevent rpath problem on suse export NO_BRP_CHECK_RPATH=true %{__mkdir_p} %{buildroot}%{prefix}/bin %{__mkdir_p} %{buildroot}%{prefix}/conf %{__mkdir_p} %{buildroot}%{prefix}/modules install -m 755 apache2/.libs/mod_security2.so %{buildroot}%{prefix}/modules/%{modname}-%{version}.so install -m 755 mlogc/mlogc %{buildroot}/%{prefix}/bin/mlogc-%{version} cp -p tools/rules-updater.pl rules-updater.pl cp -p mlogc/mlogc-batch-load.pl mlogc-batch-load.pl cp -p modsecurity.conf-recommended %{modname}.conf cp -p mlogc/mlogc-default.conf mlogc.conf cp -p tools/rules-updater-example.conf rules-updater.conf rm -f tools/mlogc tools/*.in %post pushd %{prefix}/modules %{__rm} -f %{modname}.so %{__ln_s} -f %{modname}-%{version}.so %{modname}.so popd pushd %{prefix}/bin %{__rm} -f mlogc %{__ln_s} -f mlogc-%{version} mlogc popd %clean %{__rm} -rf %{buildroot}; %files %defattr(-,root,root,-) %doc doc/ %doc %{modname}.conf mlogc.conf rules-updater.conf rules-updater.pl mlogc-batch-load.pl %{prefix}/bin/mlogc-%{version} %{prefix}/modules/%{modname}-%{version}.so %changelog * Tue Mar 14 2016 Holger Manthey <holger.manthey@bertelsmann.de> - initial build
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor