Massimiliano Torromeo pushed to branch main at Arch Linux / Packaging / 
Packages / libmodsecurity


Commits:
5c78cfaa by Massimiliano Torromeo at 2023-12-08T21:32:47+01:00
upgpkg: 1:3.0.11-1

- - - - -


3 changed files:

- + .SRCINFO
- PKGBUILD
- + libxml-includes.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,28 @@
+pkgbase = libmodsecurity
+       pkgdesc = ModSecurity v3 library component
+       pkgver = 3.0.11
+       pkgrel = 1
+       epoch = 1
+       url = https://github.com/SpiderLabs/ModSecurity/tree/v3/master
+       arch = x86_64
+       license = APACHE
+       makedepends = doxygen
+       depends = yajl
+       depends = curl
+       depends = lmdb
+       depends = libxml2
+       depends = pcre2
+       depends = geoip
+       depends = libmaxminddb
+       depends = ssdeep
+       depends = luajit
+       source = 
https://github.com/SpiderLabs/ModSecurity/releases/download/v3.0.11/modsecurity-v3.0.11.tar.gz
+       source = 
https://github.com/SpiderLabs/ModSecurity/releases/download/v3.0.11/modsecurity-v3.0.11.tar.gz.asc
+       source = libxml-includes.patch
+       validpgpkeys = 190EFACCA1E9FA466A8ECD9CE6DFB08CE8B11277
+       validpgpkeys = F126692E9BA86B3958E73ED2F2FC4E45883BCBA4
+       sha256sums = 
070f46c779d30785b95eb1316b46e2e4e6f90fd94a96aaca4bd54cd94738b692
+       sha256sums = SKIP
+       sha256sums = 
7ee0adbe5b164ca512c49e51e30ffd41e29244156a695e619dcf1d0387e69aef
+
+pkgname = libmodsecurity


=====================================
PKGBUILD
=====================================
@@ -1,7 +1,7 @@
 # Maintainer: Massimiliano Torromeo <[email protected]>
 
 pkgname=libmodsecurity
-pkgver=3.0.10
+pkgver=3.0.11
 pkgrel=1
 epoch=1
 
@@ -11,12 +11,19 @@ depends=('yajl' 'curl' 'lmdb' 'libxml2' 'pcre2' 'geoip' 
'libmaxminddb' 'ssdeep'
 makedepends=('doxygen')
 url="https://github.com/SpiderLabs/ModSecurity/tree/v3/master";
 license=('APACHE')
-source=("https://github.com/SpiderLabs/ModSecurity/releases/download/v$pkgver/modsecurity-v$pkgver.tar.gz"{,.asc})
-sha256sums=('d5d459f7c2e57a69a405f3222d8e285de419a594b0ea8829058709962227ead0'
-            'SKIP')
+source=("https://github.com/SpiderLabs/ModSecurity/releases/download/v$pkgver/modsecurity-v$pkgver.tar.gz"{,.asc}
+        libxml-includes.patch)
+sha256sums=('070f46c779d30785b95eb1316b46e2e4e6f90fd94a96aaca4bd54cd94738b692'
+            'SKIP'
+            '7ee0adbe5b164ca512c49e51e30ffd41e29244156a695e619dcf1d0387e69aef')
 validpgpkeys=('190EFACCA1E9FA466A8ECD9CE6DFB08CE8B11277'  # Felipe Zimmerle da 
Nobrega Costa <[email protected]>
               'F126692E9BA86B3958E73ED2F2FC4E45883BCBA4') # Martin Vierula 
(GitHub key) <[email protected]>
 
+prepare() {
+       cd "$srcdir"/modsecurity-v$pkgver
+       patch -p1 -i ../libxml-includes.patch
+}
+
 build() {
        cd "$srcdir"/modsecurity-v$pkgver
        sed -e 's/luajit-2.0/luajit-2.1/g' \


=====================================
libxml-includes.patch
=====================================
@@ -0,0 +1,24 @@
+diff --git a/src/modsecurity.cc b/src/modsecurity.cc
+index 854ec31..dfe5502 100644
+--- a/src/modsecurity.cc
++++ b/src/modsecurity.cc
+@@ -24,6 +24,7 @@
+ #ifdef WITH_LIBXML2
+ #include <libxml/xmlschemas.h>
+ #include <libxml/xpath.h>
++#include <libxml/parser.h>
+ #endif
+ #ifdef MSC_WITH_CURL
+ #include <curl/curl.h>
+diff --git a/src/request_body_processor/xml.h 
b/src/request_body_processor/xml.h
+index 1d29f62..e19f4a5 100644
+--- a/src/request_body_processor/xml.h
++++ b/src/request_body_processor/xml.h
+@@ -16,6 +16,7 @@
+ #ifdef WITH_LIBXML2
+ #include <libxml/xmlschemas.h>
+ #include <libxml/xpath.h>
++#include <libxml/parser.h>
+ #endif
+ 
+ #include <string>



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libmodsecurity/-/commit/5c78cfaaeb00c842731c52851341884c74bdc9b2

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libmodsecurity/-/commit/5c78cfaaeb00c842731c52851341884c74bdc9b2
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to