pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security py-libnacl: added version 1.6.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/940030172a45
branches:  trunk
changeset: 376750:940030172a45
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Mar 08 08:13:03 2018 +0000

description:
py-libnacl: added version 1.6.1

This library is used to gain direct access to the functions exposed by Daniel
J. Bernstein's nacl library via libsodium. It has been constructed to maintain
extensive documentation on how to use nacl as well as being completely
portable. The file in libnacl/__init__.py can be pulled out and placed directly
in any project to give a single file binding to all of nacl.

diffstat:

 security/Makefile                                         |   3 +-
 security/py-libnacl/DESCR                                 |   5 +
 security/py-libnacl/Makefile                              |  23 ++++++++
 security/py-libnacl/PLIST                                 |  41 +++++++++++++++
 security/py-libnacl/distinfo                              |   7 ++
 security/py-libnacl/patches/patch-libnacl_____init____.py |  26 +++++++++
 6 files changed, 104 insertions(+), 1 deletions(-)

diffs (139 lines):

diff -r e9245c07b537 -r 940030172a45 security/Makefile
--- a/security/Makefile Thu Mar 08 06:53:13 2018 +0000
+++ b/security/Makefile Thu Mar 08 08:13:03 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.671 2018/02/20 14:08:29 fhajny Exp $
+# $NetBSD: Makefile,v 1.672 2018/03/08 08:13:03 adam Exp $
 #
 
 COMMENT=       Security tools
@@ -417,6 +417,7 @@
 SUBDIR+=       py-keyring
 SUBDIR+=       py-keyrings.alt
 SUBDIR+=       py-lasso
+SUBDIR+=       py-libnacl
 SUBDIR+=       py-libtaxii
 SUBDIR+=       py-m2crypto
 SUBDIR+=       py-mcrypt
diff -r e9245c07b537 -r 940030172a45 security/py-libnacl/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-libnacl/DESCR Thu Mar 08 08:13:03 2018 +0000
@@ -0,0 +1,5 @@
+This library is used to gain direct access to the functions exposed by Daniel
+J. Bernstein's nacl library via libsodium. It has been constructed to maintain
+extensive documentation on how to use nacl as well as being completely
+portable. The file in libnacl/__init__.py can be pulled out and placed directly
+in any project to give a single file binding to all of nacl.
diff -r e9245c07b537 -r 940030172a45 security/py-libnacl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-libnacl/Makefile      Thu Mar 08 08:13:03 2018 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2018/03/08 08:13:03 adam Exp $
+
+DISTNAME=      libnacl-1.6.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    security python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=l/libnacl/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/saltstack/libnacl
+COMMENT=       Python bindings for libsodium based on ctypes
+LICENSE=       apache-2.0
+
+USE_LANGUAGES= # none
+
+SUBST_CLASSES+=                prefix
+SUBST_STAGE.prefix=    pre-configure
+SUBST_MESSAGE.prefix=  Setting PREFIX.
+SUBST_FILES.prefix=    libnacl/__init__.py
+SUBST_VARS.prefix=     PREFIX
+
+.include "../../security/libsodium/buildlink3.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r e9245c07b537 -r 940030172a45 security/py-libnacl/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-libnacl/PLIST Thu Mar 08 08:13:03 2018 +0000
@@ -0,0 +1,41 @@
+@comment $NetBSD: PLIST,v 1.1 2018/03/08 08:13:03 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/libnacl/__init__.py
+${PYSITELIB}/libnacl/__init__.pyc
+${PYSITELIB}/libnacl/__init__.pyo
+${PYSITELIB}/libnacl/aead.py
+${PYSITELIB}/libnacl/aead.pyc
+${PYSITELIB}/libnacl/aead.pyo
+${PYSITELIB}/libnacl/base.py
+${PYSITELIB}/libnacl/base.pyc
+${PYSITELIB}/libnacl/base.pyo
+${PYSITELIB}/libnacl/blake.py
+${PYSITELIB}/libnacl/blake.pyc
+${PYSITELIB}/libnacl/blake.pyo
+${PYSITELIB}/libnacl/dual.py
+${PYSITELIB}/libnacl/dual.pyc
+${PYSITELIB}/libnacl/dual.pyo
+${PYSITELIB}/libnacl/encode.py
+${PYSITELIB}/libnacl/encode.pyc
+${PYSITELIB}/libnacl/encode.pyo
+${PYSITELIB}/libnacl/public.py
+${PYSITELIB}/libnacl/public.pyc
+${PYSITELIB}/libnacl/public.pyo
+${PYSITELIB}/libnacl/sealed.py
+${PYSITELIB}/libnacl/sealed.pyc
+${PYSITELIB}/libnacl/sealed.pyo
+${PYSITELIB}/libnacl/secret.py
+${PYSITELIB}/libnacl/secret.pyc
+${PYSITELIB}/libnacl/secret.pyo
+${PYSITELIB}/libnacl/sign.py
+${PYSITELIB}/libnacl/sign.pyc
+${PYSITELIB}/libnacl/sign.pyo
+${PYSITELIB}/libnacl/utils.py
+${PYSITELIB}/libnacl/utils.pyc
+${PYSITELIB}/libnacl/utils.pyo
+${PYSITELIB}/libnacl/version.py
+${PYSITELIB}/libnacl/version.pyc
+${PYSITELIB}/libnacl/version.pyo
diff -r e9245c07b537 -r 940030172a45 security/py-libnacl/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-libnacl/distinfo      Thu Mar 08 08:13:03 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/03/08 08:13:03 adam Exp $
+
+SHA1 (libnacl-1.6.1.tar.gz) = cdd7336110af0d7a2951c2b0a298f88f8c6dcaf5
+RMD160 (libnacl-1.6.1.tar.gz) = 5b5743ef2a48026aff7bf153b17c2f61af8a19d9
+SHA512 (libnacl-1.6.1.tar.gz) = 167029675fc81758e105821c835b840be55daefa26e59987413091f54927bb390015ac054809d5be142554a8fc1b8a82a76148bceed4a7ddcc3cb93569f56811
+Size (libnacl-1.6.1.tar.gz) = 65443 bytes
+SHA1 (patch-libnacl_____init____.py) = 7ef54e0fe6535738c2d20077779aab6a88267ba0
diff -r e9245c07b537 -r 940030172a45 security/py-libnacl/patches/patch-libnacl_____init____.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-libnacl/patches/patch-libnacl_____init____.py Thu Mar 08 08:13:03 2018 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-libnacl_____init____.py,v 1.1 2018/03/08 08:13:04 adam Exp $
+
+Use correct path to load libsodium.
+
+--- libnacl/__init__.py.orig   2018-03-06 14:26:45.000000000 +0000
++++ libnacl/__init__.py
+@@ -38,6 +38,10 @@ def _get_nacl():
+         except OSError:
+             pass
+         try:
++            return ctypes.cdll.LoadLibrary('@PREFIX@/lib/libsodium.dylib')
++        except OSError:
++            pass
++        try:
+             libidx = __file__.find('lib')
+             if libidx > 0:
+                 libpath = __file__[0:libidx+3] + '/libsodium.dylib'
+@@ -51,7 +55,7 @@ def _get_nacl():
+         except OSError:
+             pass
+         try:
+-            return ctypes.cdll.LoadLibrary('/usr/local/lib/libsodium.so')
++            return ctypes.cdll.LoadLibrary('@PREFIX@/lib/libsodium.so')
+         except OSError:
+             pass
+         try:



Home | Main Index | Thread Index | Old Index