pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/py-denyhosts security/py-denyhosts: port to w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4016bf0ea268
branches:  trunk
changeset: 386837:4016bf0ea268
user:      he <he%pkgsrc.org@localhost>
date:      Sat Oct 15 20:29:48 2022 +0000

description:
security/py-denyhosts: port to work with python 3.x.

ListType and TupleType is just "list" and "tuple" in python 3,
google reveals...
Bump PKGREVISION.

diffstat:

 security/py-denyhosts/Makefile                          |   4 +-
 security/py-denyhosts/distinfo                          |   3 +-
 security/py-denyhosts/patches/patch-DenyHosts_report.py |  24 +++++++++++++++++
 3 files changed, 28 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r 1cf4e225009d -r 4016bf0ea268 security/py-denyhosts/Makefile
--- a/security/py-denyhosts/Makefile    Sat Oct 15 19:57:25 2022 +0000
+++ b/security/py-denyhosts/Makefile    Sat Oct 15 20:29:48 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2022/01/19 18:09:08 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2022/10/15 20:29:48 he Exp $
 
 DISTNAME=      denyhosts-3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    security
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=denyhosts/}
 LICENSE=       gnu-gpl-v2
diff -r 1cf4e225009d -r 4016bf0ea268 security/py-denyhosts/distinfo
--- a/security/py-denyhosts/distinfo    Sat Oct 15 19:57:25 2022 +0000
+++ b/security/py-denyhosts/distinfo    Sat Oct 15 20:29:48 2022 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.10 2021/11/27 14:28:10 he Exp $
+$NetBSD: distinfo,v 1.11 2022/10/15 20:29:48 he Exp $
 
 BLAKE2s (denyhosts-3.0.tar.gz) = 01320ec7ccc6cd83ed09ebadb8d64794379c2e513aeb30f5e6dc5f64007863c3
 SHA512 (denyhosts-3.0.tar.gz) = 8a1c796c259049ffab2c88cef780b175ec75c94216841421f831dfbf45f4ba0cdbcfbb0e3dab7200aa79eeb2416db5234ad5016d5770d8ab2f28ef4c9754e70d
 Size (denyhosts-3.0.tar.gz) = 56283 bytes
+SHA1 (patch-DenyHosts_report.py) = c52fcef5629f0820291d4bca45b10db6d84cea43
 SHA1 (patch-daemon-control-dist) = c73ab5d168c8e885ffd7f3a34d5f013c085e38bc
 SHA1 (patch-denyhosts.conf) = 0fdb12f148cbf655904a80a86301ab26bc4e01cd
 SHA1 (patch-setup.py) = 1a59f6110e17f5fb86adf3a97d55ef842a5088e7
diff -r 1cf4e225009d -r 4016bf0ea268 security/py-denyhosts/patches/patch-DenyHosts_report.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-denyhosts/patches/patch-DenyHosts_report.py   Sat Oct 15 20:29:48 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-DenyHosts_report.py,v 1.1 2022/10/15 20:29:48 he Exp $
+
+Provide proper porting to python 3.
+
+--- DenyHosts/report.py.orig   2015-06-27 16:22:43.000000000 +0000
++++ DenyHosts/report.py
+@@ -1,8 +1,6 @@
+ import logging
+ import re
+ import socket
+-# Removing this as it causes runtime errors on Python3.4
+-# from types import ListType, TupleType
+ from .util import is_true
+ try:
+     import syslog
+@@ -38,7 +36,7 @@ class Report:
+     def add_section(self, message, iterable):
+         self.report += "%s:\n\n" % message
+         for i in iterable:
+-            if type(i) in (TupleType, ListType):
++            if type(i) in (tuple, list):
+                 extra = ": %d\n" % i[1]
+                 i = i[0]
+             else:



Home | Main Index | Thread Index | Old Index