pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/py-denyhosts



Module Name:    pkgsrc
Committed By:   he
Date:           Sat Oct 15 20:29:48 UTC 2022

Modified Files:
        pkgsrc/security/py-denyhosts: Makefile distinfo
Added Files:
        pkgsrc/security/py-denyhosts/patches: patch-DenyHosts_report.py

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/security/py-denyhosts/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/security/py-denyhosts/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/py-denyhosts/patches/patch-DenyHosts_report.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/py-denyhosts/Makefile
diff -u pkgsrc/security/py-denyhosts/Makefile:1.24 pkgsrc/security/py-denyhosts/Makefile:1.25
--- pkgsrc/security/py-denyhosts/Makefile:1.24  Wed Jan 19 18:09:08 2022
+++ pkgsrc/security/py-denyhosts/Makefile       Sat Oct 15 20:29:48 2022
@@ -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

Index: pkgsrc/security/py-denyhosts/distinfo
diff -u pkgsrc/security/py-denyhosts/distinfo:1.10 pkgsrc/security/py-denyhosts/distinfo:1.11
--- pkgsrc/security/py-denyhosts/distinfo:1.10  Sat Nov 27 14:28:10 2021
+++ pkgsrc/security/py-denyhosts/distinfo       Sat Oct 15 20:29:48 2022
@@ -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

Added files:

Index: pkgsrc/security/py-denyhosts/patches/patch-DenyHosts_report.py
diff -u /dev/null pkgsrc/security/py-denyhosts/patches/patch-DenyHosts_report.py:1.1
--- /dev/null   Sat Oct 15 20:29:49 2022
+++ pkgsrc/security/py-denyhosts/patches/patch-DenyHosts_report.py      Sat Oct 15 20:29:48 2022
@@ -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