svn commit: r323838 - in head/security: . libscrypt
Vanilla I. Shu
vanilla at FreeBSD.org
Sun Jul 28 16:51:55 UTC 2013
Author: vanilla
Date: Sun Jul 28 16:51:54 2013
New Revision: 323838
URL: http://svnweb.freebsd.org/changeset/ports/323838
Log:
Add libscrypt 1.1, c library for the scrypt key derivation function.
PR: ports/180903
Submitted by: Horia Racoviceanu <horia at racoviceanu.com>
Added:
head/security/libscrypt/
head/security/libscrypt/Makefile (contents, props changed)
head/security/libscrypt/distinfo (contents, props changed)
head/security/libscrypt/pkg-descr (contents, props changed)
Modified:
head/security/Makefile
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Sun Jul 28 16:45:59 2013 (r323837)
+++ head/security/Makefile Sun Jul 28 16:51:54 2013 (r323838)
@@ -275,6 +275,7 @@
SUBDIR += libprelude
SUBDIR += libpreludedb
SUBDIR += libpwstor
+ SUBDIR += libscrypt
SUBDIR += libsectok
SUBDIR += libsodium
SUBDIR += libsparkcrypto
Added: head/security/libscrypt/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/libscrypt/Makefile Sun Jul 28 16:51:54 2013 (r323838)
@@ -0,0 +1,32 @@
+# Created by: Horia Racoviceanu <horia at racoviceanu.com>
+# $FreeBSD$
+
+PORTNAME= libscrypt
+PORTVERSION= 1.1
+CATEGORIES= security
+
+MAINTAINER= horia at racoviceanu.com
+COMMENT= C library for the scrypt key derivation function
+
+LICENSE= BSD
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_LDCONFIG= yes
+USE_GITHUB= yes
+GH_ACCOUNT= technion
+GH_COMMIT= 49f9136
+GH_TAGNAME= v${PORTVERSION}
+
+PLIST_FILES+= include/libscrypt.h \
+ lib/libscrypt.a \
+ lib/libscrypt.so \
+ lib/libscrypt.so.0
+
+post-patch:
+ ${REINPLACE_CMD} -e '/^CC=gcc/d' -e '/CFLAGS=/s,$$, ${CFLAGS},' \
+ -e 's,/usr/local,${PREFIX},' ${WRKSRC}/Makefile
+
+regression-test: build
+ (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check)
+
+.include <bsd.port.mk>
Added: head/security/libscrypt/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/libscrypt/distinfo Sun Jul 28 16:51:54 2013 (r323838)
@@ -0,0 +1,2 @@
+SHA256 (libscrypt-1.1.tar.gz) = f6cec579980850604267566731e12d985f16739cd92b828fe28c326f6a7ee798
+SIZE (libscrypt-1.1.tar.gz) = 20276
Added: head/security/libscrypt/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/libscrypt/pkg-descr Sun Jul 28 16:51:54 2013 (r323838)
@@ -0,0 +1,8 @@
+Although the creator of scrypt has written an "example implementation", it
+doesn't satisfy the "simple library" requirement that prompts developers to
+implement it. Therefore, I've written my adaptation, which quite simply pulls
+the relevant parts from the original implementation, then adds a number of
+harnesses and simplified interfaces. The hope is that through this, any
+developer can utilise scrypt.
+
+WWW: http://www.lolware.net/libscrypt.html
More information about the svn-ports-head
mailing list