mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] minisign: new package
@ 2023-10-24 13:42 Clemens Gruber
  2023-11-10  7:51 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Clemens Gruber @ 2023-10-24 13:42 UTC (permalink / raw)
  To: ptxdist; +Cc: Clemens Gruber

---
 rules/minisign.in   | 13 +++++++++++
 rules/minisign.make | 57 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 rules/minisign.in
 create mode 100644 rules/minisign.make

diff --git a/rules/minisign.in b/rules/minisign.in
new file mode 100644
index 000000000..d1efe3b45
--- /dev/null
+++ b/rules/minisign.in
@@ -0,0 +1,13 @@
+## SECTION=applications
+
+config MINISIGN
+	tristate
+	prompt "minisign"
+	select HOST_CMAKE
+	select GCCLIBS_GCC_S
+	select LIBC_M
+	select LIBSODIUM
+	help
+	  Minisign is a dead simple tool to sign files and verify signatures.
+	  It is portable, lightweight, and uses the highly secure Ed25519
+	  public-key signature system.
diff --git a/rules/minisign.make b/rules/minisign.make
new file mode 100644
index 000000000..a90cad200
--- /dev/null
+++ b/rules/minisign.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2023 by Clemens Gruber <clemens.gruber@pqgruber.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_MINISIGN) += minisign
+
+#
+# Paths and names
+#
+MINISIGN_VERSION	:= 0.11
+MINISIGN_MD5		:= 1565d40ec75b9602e84379c9f1e96371
+MINISIGN		:= minisign-$(MINISIGN_VERSION)
+MINISIGN_SUFFIX		:= tar.gz
+MINISIGN_URL		:= https://github.com/jedisct1/minisign/archive/refs/tags/$(MINISIGN_VERSION).$(MINISIGN_SUFFIX)
+MINISIGN_SOURCE		:= $(SRCDIR)/$(MINISIGN).$(MINISIGN_SUFFIX)
+MINISIGN_DIR		:= $(BUILDDIR)/$(MINISIGN)
+MINISIGN_LICENSE	:= ISC
+MINISIGN_LICENSE_FILES	:= file://LICENSE;md5=ae8e10a2c8237f13943f14fa3ffe437a
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+MINISIGN_CONF_TOOL	:= cmake
+MINISIGN_CONF_OPT	:= \
+	$(CROSS_CMAKE_USR)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/minisign.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init,  minisign)
+	@$(call install_fixup, minisign,PRIORITY,optional)
+	@$(call install_fixup, minisign,SECTION,base)
+	@$(call install_fixup, minisign,AUTHOR,"Clemens Gruber <clemens.gruber@pqgruber.com>")
+	@$(call install_fixup, minisign,DESCRIPTION,missing)
+
+	@$(call install_copy, minisign, 0, 0, 0755, -, /usr/bin/minisign)
+
+	@$(call install_finish, minisign)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.42.0




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-10  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-24 13:42 [ptxdist] [PATCH] minisign: new package Clemens Gruber
2023-11-10  7:51 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox