pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Update ap-modsecurity2 to modsecurity-2.9.3



Hi,


while working on bringing up Apache w/ modsecurity on SunOS10/Sparc I
came across the problem that the (very old) version of modsecurity
distributed w pkgsrc dosn't grok some of the rules in the up to date
version of "coreruleset" (for more info see https://coreruleset.org/),
especially those dealing with XSS. -- While XSS beeing the main reason
I started this project. ;-)

I modified the package slightly to use the newest distributed version
of modsecurity from the 2.x.x series like shown below.

Maybe it would make sense to update the package in pkgsrc?  (Patches
aren't needed anymore as the changes made there where integrated by the
modsecurity developers, AFAICS)


Kurt



>-2509: diff -ru ap-modsecurity2 ap-modsecurity2x
Only in ap-modsecurity2: .#Makefile.1.53
diff -ru ap-modsecurity2/Makefile ap-modsecurity2x/Makefile
--- ap-modsecurity2/Makefile	2020-10-10 19:15:24.000000000 +0200
+++ ap-modsecurity2x/Makefile	2020-10-10 19:54:36.000000000 +0200
@@ -1,8 +1,8 @@
 # $NetBSD: Makefile,v 1.53 2020/06/30 17:38:02 nia Exp $

-DISTNAME=	modsecurity-apache_2.7.7
+DISTNAME=	modsecurity-2.9.3
 PKGNAME=	${APACHE_PKG_PREFIX}-${DISTNAME:S/apache_//}
-PKGREVISION=	22
+PKGREVISION=
 CATEGORIES=	www security
 MASTER_SITES=	https://www.modsecurity.org/tarball/${PKGVERSION_NOREV}/

@@ -44,7 +44,7 @@
 	${INSTALL_DATA} ${WRKSRC}/modsecurity.conf-recommended \
 			${DESTDIR}${PREFIX}/${EGDIR}
 	cd ${WRKSRC}/doc && \
-		pax -rw . ${DESTDIR}${PREFIX}/${DOCDIR}
+		cp -p README.txt ${DESTDIR}${PREFIX}/${DOCDIR}

 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../devel/pcre/buildlink3.mk"
diff -ru ap-modsecurity2/distinfo ap-modsecurity2x/distinfo
--- ap-modsecurity2/distinfo	2016-12-24 11:16:50.000000000 +0100
+++ ap-modsecurity2x/distinfo	2020-10-10 19:35:45.000000000 +0200
@@ -1,8 +1,6 @@
 $NetBSD: distinfo,v 1.10 2016/12/24 10:16:50 joerg Exp $

-SHA1 (modsecurity-apache_2.7.7.tar.gz) = 344c8c102d9800d48bd42eb683cd2ddd7c515be1
-RMD160 (modsecurity-apache_2.7.7.tar.gz) = aa6eb85000d8bee86a5ec3cf6a03ac82a9e76dc6
-SHA512 (modsecurity-apache_2.7.7.tar.gz) = 859f72580b6acaae5db180f98ee32ad2cb0f3ef24321d0c2df20ddd9fcfbc6c09c98b672012dc4931a6fd14f3c21c38ed31ab8900940382fcb48b37f30005a7d
-Size (modsecurity-apache_2.7.7.tar.gz) = 1003835 bytes
-SHA1 (patch-apache2_msc__crypt.c) = 01bdb8291c83a8abbd1e990d96a768d9bec0ef89
-SHA1 (patch-apache2_msc__crypt.h) = dc83f494f81823deddf00dd005a632d085039664
+SHA1 (modsecurity-2.9.3.tar.gz) = 4fb70cc8284cf1b29eabb19b5f247351cbb82def
+RMD160 (modsecurity-2.9.3.tar.gz) = de34a027da168abdb3397a2c3ca4ac5ba4081e73
+SHA512 (modsecurity-2.9.3.tar.gz) = 4e1ea5dd8edadf8f630e4fe92a200d3a8e78963fce3128b5975a1e1ecd0e8bf9ceecd9905c95f8c508932ccd837f1d8ae8bb2ba423307718c3c6a4ae9b783ddd
+Size (modsecurity-2.9.3.tar.gz) = 4307670 bytes
Only in ap-modsecurity2/patches: CVS
Only in ap-modsecurity2/patches: patch-apache2_msc__crypt.c
Only in ap-modsecurity2/patches: patch-apache2_msc__crypt.h



Home | Main Index | Thread Index | Old Index