pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/fail2ban fail2ban: fix build with latest setu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/db74d16d0429
branches: trunk
changeset: 771721:db74d16d0429
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Dec 23 22:27:35 2021 +0000
description:
fail2ban: fix build with latest setuptools.
Fixes PR 56572 by nia@
Fix pkglint while here.
diffstat:
security/fail2ban/Makefile | 22 +++++++++++-----------
security/fail2ban/distinfo | 3 ++-
security/fail2ban/patches/patch-setup.py | 14 ++++++++++++++
3 files changed, 27 insertions(+), 12 deletions(-)
diffs (80 lines):
diff -r b8bbcf3dbf1f -r db74d16d0429 security/fail2ban/Makefile
--- a/security/fail2ban/Makefile Thu Dec 23 22:07:26 2021 +0000
+++ b/security/fail2ban/Makefile Thu Dec 23 22:27:35 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2021/10/16 19:37:01 tm Exp $
+# $NetBSD: Makefile,v 1.17 2021/12/23 22:27:35 wiz Exp $
#
DISTNAME= fail2ban-0.11.2
@@ -57,14 +57,14 @@
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_MESSAGE.paths= Substituting paths variables.
-SUBST_FILES.paths= ${WRKSRC}/fail2ban/client/*.py
-SUBST_FILES.paths+= ${WRKSRC}/fail2ban/tests/utils.py
-SUBST_FILES.paths+= ${WRKSRC}/man/fail2ban-client.1
-SUBST_FILES.paths+= ${WRKSRC}/man/fail2ban-client.h2m
-SUBST_FILES.paths+= ${WRKSRC}/setup.py
-SUBST_FILES.paths+= ${WRKSRC}/config/fail2ban.conf
-SUBST_FILES.paths+= ${WRKSRC}/config/jail.conf
-SUBST_FILES.paths+= ${WRKSRC}/config/paths-pkgsrc.conf
+SUBST_FILES.paths= fail2ban/client/*.py
+SUBST_FILES.paths+= fail2ban/tests/utils.py
+SUBST_FILES.paths+= man/fail2ban-client.1
+SUBST_FILES.paths+= man/fail2ban-client.h2m
+SUBST_FILES.paths+= setup.py
+SUBST_FILES.paths+= config/fail2ban.conf
+SUBST_FILES.paths+= config/jail.conf
+SUBST_FILES.paths+= config/paths-pkgsrc.conf
SUBST_SED.paths= -e 's,/etc,${PREFIX}/etc,g'
SUBST_SED.paths+= -e 's,/var/lib,${VARBASE}/db,g'
SUBST_SED.paths+= -e 's,/var,${VARBASE},g'
@@ -75,7 +75,7 @@
SUBST_CLASSES+= install
SUBST_STAGE.install= pre-install
SUBST_MESSAGE.install= correcting installation path
-SUBST_FILES.install= ${WRKSRC}/setup.py
+SUBST_FILES.install= setup.py
SUBST_SED.install= -e 's,${PREFIX}/etc/fail2ban,${EGDIR},g'
.include "../../mk/bsd.prefs.mk"
@@ -83,7 +83,7 @@
SUBST_CLASSES+= ostype
SUBST_STAGE.ostype= post-configure
SUBST_MESSAGE.ostype= Adjusting OS type
-SUBST_FILES.ostype= ${WRKSRC}/config/paths-pkgsrc.conf
+SUBST_FILES.ostype= config/paths-pkgsrc.conf
.if ${OPSYS} == "NetBSD"
SUBST_SED.ostype= -e "s,\#before = paths-distro.conf,before = paths-netbsd.conf,g"
.elif ${OPSYS} == "Darwin"
diff -r b8bbcf3dbf1f -r db74d16d0429 security/fail2ban/distinfo
--- a/security/fail2ban/distinfo Thu Dec 23 22:07:26 2021 +0000
+++ b/security/fail2ban/distinfo Thu Dec 23 22:27:35 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 11:17:05 nia Exp $
+$NetBSD: distinfo,v 1.9 2021/12/23 22:27:35 wiz Exp $
BLAKE2s (fail2ban-0.11.2.tar.gz) = ae6f306141cbf8b9f92b0561771e4bb1a559049b4f583774232c2dbae4e5aedc
SHA512 (fail2ban-0.11.2.tar.gz) = 46b27abd947b00ea64106dbac563ef8afef38eec86684024d47d9a0e8c1969ff864ad6df7f4f8de2aa3eb1af6d769fb6796592d9f0e35521d5f95f17b8cade97
Size (fail2ban-0.11.2.tar.gz) = 559552 bytes
SHA1 (patch-doc_Makefile) = b17d28b1ef79b0cf86e4cd5d6eaa3e3d1bc2da39
+SHA1 (patch-setup.py) = 7e3e3ae3101b71413e563656334897814bf7fbad
diff -r b8bbcf3dbf1f -r db74d16d0429 security/fail2ban/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/fail2ban/patches/patch-setup.py Thu Dec 23 22:27:35 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-setup.py,v 1.1 2021/12/23 22:27:35 wiz Exp $
+
+Compatibility with latest setuptools.
+
+--- setup.py.orig 2021-12-23 22:23:32.219701295 +0000
++++ setup.py
+@@ -186,7 +186,6 @@ commands.'''
+ if setuptools:
+ setup_extra = {
+ 'test_suite': "fail2ban.tests.utils.gatherTests",
+- 'use_2to3': True,
+ }
+ else:
+ setup_extra = {}
Home |
Main Index |
Thread Index |
Old Index