pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/security
Module Name: pkgsrc
Committed By: adam
Date: Thu Mar 8 08:13:04 UTC 2018
Modified Files:
pkgsrc/security: Makefile
Added Files:
pkgsrc/security/py-libnacl: DESCR Makefile PLIST distinfo
pkgsrc/security/py-libnacl/patches: patch-libnacl_____init____.py
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.671 -r1.672 pkgsrc/security/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/security/py-libnacl/DESCR \
pkgsrc/security/py-libnacl/Makefile pkgsrc/security/py-libnacl/PLIST \
pkgsrc/security/py-libnacl/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/security/py-libnacl/patches/patch-libnacl_____init____.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/Makefile
diff -u pkgsrc/security/Makefile:1.671 pkgsrc/security/Makefile:1.672
--- pkgsrc/security/Makefile:1.671 Tue Feb 20 14:08:29 2018
+++ pkgsrc/security/Makefile Thu Mar 8 08:13:03 2018
@@ -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-kerberos
SUBDIR+= py-keyring
SUBDIR+= py-keyrings.alt
SUBDIR+= py-lasso
+SUBDIR+= py-libnacl
SUBDIR+= py-libtaxii
SUBDIR+= py-m2crypto
SUBDIR+= py-mcrypt
Added files:
Index: pkgsrc/security/py-libnacl/DESCR
diff -u /dev/null pkgsrc/security/py-libnacl/DESCR:1.1
--- /dev/null Thu Mar 8 08:13:04 2018
+++ pkgsrc/security/py-libnacl/DESCR Thu Mar 8 08:13:03 2018
@@ -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.
Index: pkgsrc/security/py-libnacl/Makefile
diff -u /dev/null pkgsrc/security/py-libnacl/Makefile:1.1
--- /dev/null Thu Mar 8 08:13:04 2018
+++ pkgsrc/security/py-libnacl/Makefile Thu Mar 8 08:13:03 2018
@@ -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"
Index: pkgsrc/security/py-libnacl/PLIST
diff -u /dev/null pkgsrc/security/py-libnacl/PLIST:1.1
--- /dev/null Thu Mar 8 08:13:04 2018
+++ pkgsrc/security/py-libnacl/PLIST Thu Mar 8 08:13:03 2018
@@ -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
Index: pkgsrc/security/py-libnacl/distinfo
diff -u /dev/null pkgsrc/security/py-libnacl/distinfo:1.1
--- /dev/null Thu Mar 8 08:13:04 2018
+++ pkgsrc/security/py-libnacl/distinfo Thu Mar 8 08:13:03 2018
@@ -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
Index: pkgsrc/security/py-libnacl/patches/patch-libnacl_____init____.py
diff -u /dev/null pkgsrc/security/py-libnacl/patches/patch-libnacl_____init____.py:1.1
--- /dev/null Thu Mar 8 08:13:04 2018
+++ pkgsrc/security/py-libnacl/patches/patch-libnacl_____init____.py Thu Mar 8 08:13:04 2018
@@ -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