From: Johan Oudinet <johan.oudinet@gmail.com>
To: buildroot@buildroot.org
Cc: Johan Oudinet <johan.oudinet@gmail.com>
Subject: [Buildroot] [PATCH] package/forge: new package
Date: Tue, 22 Mar 2022 17:07:25 +0100 [thread overview]
Message-ID: <20220322160725.636205-1-johan.oudinet@gmail.com> (raw)
A native implementation of TLS (and various other cryptographic tools)
in JavaScript.
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/forge/Config.in | 7 +++++++
package/forge/forge.hash | 3 +++
package/forge/forge.mk | 23 +++++++++++++++++++++++
5 files changed, 35 insertions(+)
create mode 100644 package/forge/Config.in
create mode 100644 package/forge/forge.hash
create mode 100644 package/forge/forge.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 942bb8fe9c..5830b45018 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1475,6 +1475,7 @@ F: package/erlang-p1-xmpp/
F: package/erlang-p1-yaml/
F: package/erlang-p1-yconf/
F: package/erlang-p1-zlib/
+F: package/forge/
F: package/nginx-dav-ext/
F: package/vuejs/
diff --git a/package/Config.in b/package/Config.in
index 0d5d763180..f2587b5c66 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1653,6 +1653,7 @@ endif
source "package/duktape/Config.in"
source "package/explorercanvas/Config.in"
source "package/flot/Config.in"
+ source "package/forge/Config.in"
source "package/jquery/Config.in"
if BR2_PACKAGE_JQUERY
menu "External jQuery plugins"
diff --git a/package/forge/Config.in b/package/forge/Config.in
new file mode 100644
index 0000000000..86d4832101
--- /dev/null
+++ b/package/forge/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_FORGE
+ bool "forge"
+ help
+ A native implementation of TLS (and various other
+ cryptographic tools) in JavaScript.
+
+ https://github.com/digitalbazaar/forge
diff --git a/package/forge/forge.hash b/package/forge/forge.hash
new file mode 100644
index 0000000000..256ac5b451
--- /dev/null
+++ b/package/forge/forge.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 97f0276c32b39411ad85c5762bf546ca281451eeaa93bdd383ff082e8e0181b4 node-forge-1.3.0.tgz
+sha256 f63ff0e4e239244aa79280da2dd4811a0469e5e201caf5cbc0d97c3a1dff8e82 LICENSE
diff --git a/package/forge/forge.mk b/package/forge/forge.mk
new file mode 100644
index 0000000000..1872cb4e70
--- /dev/null
+++ b/package/forge/forge.mk
@@ -0,0 +1,23 @@
+################################################################################
+#
+# forge
+#
+################################################################################
+
+FORGE_VERSION = 1.3.0
+FORGE_SOURCE = node-forge-$(FORGE_VERSION).tgz
+FORGE_SITE = https://registry.npmjs.org/node-forge/-
+FORGE_LICENSE = BSD-3-Clause, GPL-2.0
+FORGE_LICENSE_FILES = LICENSE
+
+# Install .min.js as .js
+define FORGE_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 644 -D $(@D)/dist/forge.all.min.js \
+ $(TARGET_DIR)/var/www/forge.all.js
+ $(INSTALL) -m 644 -D $(@D)/dist/forge.min.js \
+ $(TARGET_DIR)/var/www/forge.js
+ $(INSTALL) -m 644 -D $(@D)/dist/prime.worker.min.js \
+ $(TARGET_DIR)/var/www/prime.worker.js
+endef
+
+$(eval $(generic-package))
--
2.32.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2022-03-22 16:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-22 16:07 Johan Oudinet [this message]
2022-08-22 14:12 ` [Buildroot] [PATCH] package/forge: new package Yann E. MORIN
2022-08-26 14:11 ` Johan Oudinet
2022-08-26 21:07 ` Yann E. MORIN
2022-08-26 13:08 ` [Buildroot] [PATCH v2] " Johan Oudinet
2022-08-27 8:47 ` Yann E. MORIN
2022-08-28 8:06 ` Thomas Petazzoni via buildroot
2022-08-28 8:35 ` Yann E. MORIN
2022-09-01 15:43 ` Johan Oudinet
2022-09-24 15:05 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220322160725.636205-1-johan.oudinet@gmail.com \
--to=johan.oudinet@gmail.com \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.