summaryrefslogtreecommitdiff
path: root/security/nacl/Makefile
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2014-08-12 05:00:34 +0000
committerschmonz <schmonz@pkgsrc.org>2014-08-12 05:00:34 +0000
commit158526abc5eb037795e09b3cfb90bda9eda6f41f (patch)
tree9ede98f4db3d878a61ac4b6b4bfa96613288c2f4 /security/nacl/Makefile
parent22020e66c43bb38685e1d633ee2fa6db5e481668 (diff)
downloadpkgsrc-158526abc5eb037795e09b3cfb90bda9eda6f41f.tar.gz
Initial import of NaCl.
NaCl (pronounced "salt") is a new easy-to-use high-speed software library for network communication, encryption, decryption, signatures, etc. NaCl's goal is to provide all of the core operations needed to build higher-level cryptographic tools. Of course, other libraries already exist for these core operations. NaCl advances the state of the art by improving security, by improving usability, and by improving speed.
Diffstat (limited to 'security/nacl/Makefile')
-rw-r--r--security/nacl/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/security/nacl/Makefile b/security/nacl/Makefile
new file mode 100644
index 00000000000..727390634e8
--- /dev/null
+++ b/security/nacl/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2014/08/12 05:00:34 schmonz Exp $
+
+DISTNAME= nacl-20110221
+CATEGORIES= security
+MASTER_SITES= ${HOMEPAGE}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://hyperelliptic.org/nacl/
+COMMENT= Secure, usable, fast networking and cryptography library
+LICENSE= djb-nonlicense
+
+USE_LANGUAGES= c c++
+
+INSTALLATION_DIRS= bin lib include
+
+do-build:
+ cd ${WRKSRC} && \
+ ./do && \
+ ${AR} -r build/*/lib/*/libnacl.a build/*/lib/*/randombytes.o
+
+do-install:
+ cd ${WRKSRC}/build/* && \
+ ${INSTALL_PROGRAM} bin/nacl-sha256 ${DESTDIR}${PREFIX}/bin && \
+ ${INSTALL_PROGRAM} bin/nacl-sha512 ${DESTDIR}${PREFIX}/bin && \
+ ${INSTALL_LIB} lib/*/* ${DESTDIR}${PREFIX}/lib && \
+ ${INSTALL_DATA} include/*/* ${DESTDIR}${PREFIX}/include
+
+.include "../../mk/bsd.pkg.mk"