Changed modsecurity build dependencies to pcre2.
diff --git a/alpine/Makefile.module-modsecurity b/alpine/Makefile.module-modsecurity
index 66f783e..55d30f7 100644
--- a/alpine/Makefile.module-modsecurity
+++ b/alpine/Makefile.module-modsecurity
@@ -34,7 +34,7 @@
 
 prerequisites-for-module-modsecurity:
 
-MODULE_BUILD_DEPENDS_modsecurity=yajl-dev libxml2-dev curl-dev patchelf pcre-dev libtool autoconf automake
+MODULE_BUILD_DEPENDS_modsecurity=yajl-dev libxml2-dev curl-dev patchelf pcre2-dev libtool autoconf automake
 
 define MODULE_PREBUILD_modsecurity
 	cd ../modsecurity-$(MODSECURITY_GITHASH) \&\& \
diff --git a/debian/Makefile.module-modsecurity b/debian/Makefile.module-modsecurity
index 24c18d7..7a79524 100644
--- a/debian/Makefile.module-modsecurity
+++ b/debian/Makefile.module-modsecurity
@@ -33,7 +33,7 @@
 		.sum-modsecurity-nginx
 	touch $@
 
-MODULE_BUILD_DEPENDS_modsecurity=,libxml2-dev,libyajl-dev,libcurl4-openssl-dev,patchelf,libpcre3-dev,autoconf,automake,libtool
+MODULE_BUILD_DEPENDS_modsecurity=,libxml2-dev,libyajl-dev,libcurl4-openssl-dev,patchelf,libpcre2-dev,autoconf,automake,libtool
 
 define MODULE_PREBUILD_modsecurity
 	cd $$(BUILDDIR_nginx)/extra/modsecurity-$(MODSECURITY_GITHASH) \&\& \
diff --git a/rpm/SPECS/Makefile.module-modsecurity b/rpm/SPECS/Makefile.module-modsecurity
index afb19c4..7666bc4 100644
--- a/rpm/SPECS/Makefile.module-modsecurity
+++ b/rpm/SPECS/Makefile.module-modsecurity
@@ -41,7 +41,7 @@
 %if 0%{?suse_version} == 0
 BuildRequires: patchelf
 %endif
-BuildRequires: pcre-devel
+BuildRequires: pcre2-devel
 BuildRequires: libtool
 BuildRequires: autoconf
 BuildRequires: automake