From owner-svn-ports-head@freebsd.org Sun Jan 6 04:34:31 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2A7F61433F34; Sun, 6 Jan 2019 04:34:31 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C39FD87E01; Sun, 6 Jan 2019 04:34:30 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 98C0623297; Sun, 6 Jan 2019 04:34:30 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x064YU9V056003; Sun, 6 Jan 2019 04:34:30 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x064YUqW056000; Sun, 6 Jan 2019 04:34:30 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201901060434.x064YUqW056000@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Sun, 6 Jan 2019 04:34:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r489438 - in head/security/py-ed25519ll: . files X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/security/py-ed25519ll: . files X-SVN-Commit-Revision: 489438 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: C39FD87E01 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2019 04:34:31 -0000 Author: swills Date: Sun Jan 6 04:34:29 2019 New Revision: 489438 URL: https://svnweb.freebsd.org/changeset/ports/489438 Log: security/py-ed25519ll: update to support py3 and flavours PR: 224582 Submitted by: Shane Approved by: maintainer timeout (nivit, >1 year) Added: head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py (contents, props changed) Modified: head/security/py-ed25519ll/Makefile (contents, props changed) head/security/py-ed25519ll/distinfo (contents, props changed) Modified: head/security/py-ed25519ll/Makefile ============================================================================== --- head/security/py-ed25519ll/Makefile Sun Jan 6 04:14:25 2019 (r489437) +++ head/security/py-ed25519ll/Makefile Sun Jan 6 04:34:29 2019 (r489438) @@ -3,17 +3,27 @@ PORTNAME= ed25519ll PORTVERSION= 0.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security -MASTER_SITES= CHEESESHOP +#MASTER_SITES= CHEESESHOP +# bitbucket master contains py3 fixes made after last tagged release +MASTER_SITES= https://bitbucket.org/dholth/${PORTNAME}/get/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= 37719c56b7b6 MAINTAINER= nivit@FreeBSD.org COMMENT= Low-level ctypes wrapper for Ed25519 digital signatures LICENSE= MIT +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${FLAVOR} + USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist distutils flavors + +WRKSRC= ${WRKDIR}/dholth-${PORTNAME}-${DISTNAME} + +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test .include Modified: head/security/py-ed25519ll/distinfo ============================================================================== --- head/security/py-ed25519ll/distinfo Sun Jan 6 04:14:25 2019 (r489437) +++ head/security/py-ed25519ll/distinfo Sun Jan 6 04:34:29 2019 (r489438) @@ -1,2 +1,3 @@ -SHA256 (ed25519ll-0.6.tar.gz) = 7b75b7e6f4c7e7c172229aa78b13436ca9834ef5893598b49c7163d7ba55adf9 -SIZE (ed25519ll-0.6.tar.gz) = 74782 +TIMESTAMP = 1514161132 +SHA256 (37719c56b7b6.tar.gz) = e701e82bd2352c6a947e7b28469ca4491e8924285e730bfff44e18fc6e90a2a8 +SIZE (37719c56b7b6.tar.gz) = 113875 Added: head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py Sun Jan 6 04:34:29 2019 (r489438) @@ -0,0 +1,15 @@ +--- ed25519ll/djbec.py.orig 2017-12-25 20:10:10 UTC ++++ ed25519ll/djbec.py +@@ -36,10 +36,8 @@ def H(m): + return hashlib.sha512(m).digest() + + def expmod(b, e, m): +- if e == 0: return 1 +- t = expmod(b, e // 2, m) ** 2 % m +- if e & 1: t = (t * b) % m +- return t ++ # the built-in pow is much faster ++ return pow(b,e,m) + + # Can probably get some extra speedup here by replacing this with + # an extended-euclidean, but performance seems OK without that