From: Johan Oudinet <johan.oudinet@gmail.com>
To: buildroot@buildroot.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
"Yann E . MORIN" <yann.morin.1998@free.fr>,
Johan Oudinet <johan.oudinet@gmail.com>
Subject: [Buildroot] [PATCH v2] package/forge: new package
Date: Fri, 26 Aug 2022 15:08:43 +0200 [thread overview]
Message-ID: <20220826130843.264607-1-johan.oudinet@gmail.com> (raw)
In-Reply-To: <20220322160725.636205-1-johan.oudinet@gmail.com>
A native implementation of TLS (and various other cryptographic tools)
in JavaScript.
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
---
Changes v1 -> v2:
- build with npm (suggested by Yann E. Morin)
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/forge/Config.in | 10 ++++++++++
package/forge/forge.hash | 3 +++
package/forge/forge.mk | 28 ++++++++++++++++++++++++++++
5 files changed, 43 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 d2bd0d809a..c7e6407cdc 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1530,6 +1530,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/vis-network/
F: package/vuejs/
diff --git a/package/Config.in b/package/Config.in
index d1c098c48f..c073c82611 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1687,6 +1687,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..87a3fcb3e0
--- /dev/null
+++ b/package/forge/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_FORGE
+ bool "forge"
+ depends on BR2_PACKAGE_HOST_QEMU_USER_ARCH_SUPPORTS # host-nodejs
+ depends on BR2_HOST_GCC_AT_LEAST_8 # host-nodejs
+ select BR2_PACKAGE_HOST_NODEJS
+ 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..3f73d3e050
--- /dev/null
+++ b/package/forge/forge.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 b330b05ef109a00fc96ae188a3a9ac6c9053a511957a5c9534f7635fefee45a2 forge-1.3.1.tar.gz
+sha256 f63ff0e4e239244aa79280da2dd4811a0469e5e201caf5cbc0d97c3a1dff8e82 LICENSE
diff --git a/package/forge/forge.mk b/package/forge/forge.mk
new file mode 100644
index 0000000000..c26f550c83
--- /dev/null
+++ b/package/forge/forge.mk
@@ -0,0 +1,28 @@
+################################################################################
+#
+# forge
+#
+################################################################################
+
+FORGE_VERSION = 1.3.1
+FORGE_SITE = $(call github,digitalbazaar,forge,v$(FORGE_VERSION))
+FORGE_LICENSE = BSD-3-Clause, GPL-2.0
+FORGE_LICENSE_FILES = LICENSE
+
+FORGE_DEPENDENCIES = host-nodejs
+
+define FORGE_BUILD_CMDS
+ cd $(@D) && $(NPM) install && $(NPM) run build
+endef
+
+# 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.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-08-26 13:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-22 16:07 [Buildroot] [PATCH] package/forge: new package Johan Oudinet
2022-08-22 14:12 ` Yann E. MORIN
2022-08-26 14:11 ` Johan Oudinet
2022-08-26 21:07 ` Yann E. MORIN
2022-08-26 13:08 ` Johan Oudinet [this message]
2022-08-27 8:47 ` [Buildroot] [PATCH v2] " 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=20220826130843.264607-1-johan.oudinet@gmail.com \
--to=johan.oudinet@gmail.com \
--cc=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin.1998@free.fr \
/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.