scrypt: new package
authorParnell Springmeyer <parnell@digitalmentat.com>
Sat, 8 Aug 2015 16:51:42 +0000 (11:51 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 28 Aug 2015 12:55:37 +0000 (14:55 +0200)
[Thomas:
  - move from "Libraries -> Crypto" to "System tools", since it only
    installs one binary, scrypt, and no library.
  - bump from 1.1.6 to 1.2.0
  - add comment in the .hash file explaining where the hash is coming
    from.
  - add missing dependency on OpenSSL
  - use BSD-2c as the license code, instead of BSD2
  - use 'main.c' as the license file.]

Signed-off-by: Parnell Springmeyer <parnell@digitalmentat.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/scrypt/Config.in [new file with mode: 0644]
package/scrypt/scrypt.hash [new file with mode: 0644]
package/scrypt/scrypt.mk [new file with mode: 0644]

index 1bc31fac78c78134c5bc50febb0f52e274fce80e..5b8084d5d5a19bb050f934d59b77ea20169f6ae8 100644 (file)
@@ -754,6 +754,7 @@ menu "Crypto"
        source "package/nettle/Config.in"
        source "package/openssl/Config.in"
        source "package/polarssl/Config.in"
+       source "package/scrypt/Config.in"
 endmenu
 
 menu "Database"
diff --git a/package/scrypt/Config.in b/package/scrypt/Config.in
new file mode 100644 (file)
index 0000000..8be7f54
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_SCRYPT
+       bool "scrypt"
+       help
+         A password-based key derivation function specifically designed
+         to make it costly to perform large-scale custom hardware attacks
+         by requiring large amounts of memory.
+
+         http://www.tarsnap.com/scrypt.html
diff --git a/package/scrypt/scrypt.hash b/package/scrypt/scrypt.hash
new file mode 100644 (file)
index 0000000..e6b690e
--- /dev/null
@@ -0,0 +1 @@
+sha256 dfd0d1a544439265bbb9b58043ad3c8ce50a3987b44a61b1d39fd7a3ed5b7fb8  scrypt-1.1.6.tgz
diff --git a/package/scrypt/scrypt.mk b/package/scrypt/scrypt.mk
new file mode 100644 (file)
index 0000000..2db6e2e
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# scrypt
+#
+################################################################################
+
+SCRYPT_VERSION = 1.1.6
+SCRYPT_SOURCE = scrypt-$(SCRYPT_VERSION).tgz
+SCRYPT_SITE = http://www.tarsnap.com/scrypt
+SCRYPT_LICENSE = BSD2
+SCRYPT_INSTALL_STAGING = YES
+
+$(eval $(autotools-package))