Thu Mar 8 08:13:04 2018 UTC ()
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.
(adam)
diff -r1.671 -r1.672 pkgsrc/security/Makefile
diff -r0 -r1.1 pkgsrc/security/py-libnacl/DESCR
diff -r0 -r1.1 pkgsrc/security/py-libnacl/Makefile
diff -r0 -r1.1 pkgsrc/security/py-libnacl/PLIST
diff -r0 -r1.1 pkgsrc/security/py-libnacl/distinfo
diff -r0 -r1.1 pkgsrc/security/py-libnacl/patches/patch-libnacl_____init____.py
--- pkgsrc/security/Makefile 2018/02/20 14:08:29 1.671
+++ pkgsrc/security/Makefile 2018/03/08 08:13:03 1.672
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.671 2018/02/20 14:08:29 fhajny Exp $ | | 1 | # $NetBSD: Makefile,v 1.672 2018/03/08 08:13:03 adam Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= Security tools | | 4 | COMMENT= Security tools |
5 | | | 5 | |
6 | SUBDIR+= 2fa | | 6 | SUBDIR+= 2fa |
7 | SUBDIR+= Bastille | | 7 | SUBDIR+= Bastille |
8 | SUBDIR+= CSP | | 8 | SUBDIR+= CSP |
9 | SUBDIR+= CoolKey | | 9 | SUBDIR+= CoolKey |
10 | SUBDIR+= EasyPG | | 10 | SUBDIR+= EasyPG |
11 | SUBDIR+= HElib | | 11 | SUBDIR+= HElib |
12 | SUBDIR+= KeePass | | 12 | SUBDIR+= KeePass |
13 | SUBDIR+= PACK | | 13 | SUBDIR+= PACK |
14 | SUBDIR+= PortableSigner | | 14 | SUBDIR+= PortableSigner |
| @@ -407,26 +407,27 @@ SUBDIR+= py-cryptopp | | | @@ -407,26 +407,27 @@ SUBDIR+= py-cryptopp |
407 | SUBDIR+= py-cybox | | 407 | SUBDIR+= py-cybox |
408 | SUBDIR+= py-denyhosts | | 408 | SUBDIR+= py-denyhosts |
409 | SUBDIR+= py-ecdsa | | 409 | SUBDIR+= py-ecdsa |
410 | SUBDIR+= py-ezPyCrypto | | 410 | SUBDIR+= py-ezPyCrypto |
411 | SUBDIR+= py-gnupg | | 411 | SUBDIR+= py-gnupg |
412 | SUBDIR+= py-gssapi | | 412 | SUBDIR+= py-gssapi |
413 | SUBDIR+= py-hsm | | 413 | SUBDIR+= py-hsm |
414 | SUBDIR+= py-itsdangerous | | 414 | SUBDIR+= py-itsdangerous |
415 | SUBDIR+= py-josepy | | 415 | SUBDIR+= py-josepy |
416 | SUBDIR+= py-kerberos | | 416 | SUBDIR+= py-kerberos |
417 | SUBDIR+= py-keyring | | 417 | SUBDIR+= py-keyring |
418 | SUBDIR+= py-keyrings.alt | | 418 | SUBDIR+= py-keyrings.alt |
419 | SUBDIR+= py-lasso | | 419 | SUBDIR+= py-lasso |
| | | 420 | SUBDIR+= py-libnacl |
420 | SUBDIR+= py-libtaxii | | 421 | SUBDIR+= py-libtaxii |
421 | SUBDIR+= py-m2crypto | | 422 | SUBDIR+= py-m2crypto |
422 | SUBDIR+= py-mcrypt | | 423 | SUBDIR+= py-mcrypt |
423 | SUBDIR+= py-mohawk | | 424 | SUBDIR+= py-mohawk |
424 | SUBDIR+= py-nacl | | 425 | SUBDIR+= py-nacl |
425 | SUBDIR+= py-ndg_httpsclient | | 426 | SUBDIR+= py-ndg_httpsclient |
426 | SUBDIR+= py-ntlm-auth | | 427 | SUBDIR+= py-ntlm-auth |
427 | SUBDIR+= py-oath | | 428 | SUBDIR+= py-oath |
428 | SUBDIR+= py-oauth | | 429 | SUBDIR+= py-oauth |
429 | SUBDIR+= py-oauth2 | | 430 | SUBDIR+= py-oauth2 |
430 | SUBDIR+= py-oauth2client | | 431 | SUBDIR+= py-oauth2client |
431 | SUBDIR+= py-oauthlib | | 432 | SUBDIR+= py-oauthlib |
432 | SUBDIR+= py-openid | | 433 | SUBDIR+= py-openid |
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.
# $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
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"
@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
$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
$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: