From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 26 Oct 2023 08:08:10 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qvtXP-004Clk-Bs for lore@lore.pengutronix.de; Thu, 26 Oct 2023 08:08:10 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qvtXO-0001XK-HS; Thu, 26 Oct 2023 08:08:10 +0200 Received: from mail.pqgruber.com ([52.59.78.55]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qvHg6-0006nJ-IH for ptxdist@pengutronix.de; Tue, 24 Oct 2023 15:42:38 +0200 Received: from workstation.tuxnet (213-47-81-100.cable.dynamic.surfer.at [213.47.81.100]) by mail.pqgruber.com (Postfix) with ESMTPSA id 3EA01C72B5F; Tue, 24 Oct 2023 15:42:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1698154958; bh=Pa49tsN76HvMWIjoJtGanop9pKoKmlMh9KFqjL0lakA=; h=From:To:Cc:Subject:Date:From; b=y+1FxakfImHGyhJ8/I0r6U2BJ9e4ekFIvHOs3t1CCI8gEupMbPz6dOC9eqHXo/MBS WAYof0mvpurXmEJOkXMfEoaM3BRfGlJhaO5mCPZdHJwkwIMrlcud6i4n51ghZrMgIx 7vVqwwpKrB3h9Rc/j6MEk9JZMlyIOWsOFK7luGGs= From: Clemens Gruber To: ptxdist@pengutronix.de Date: Tue, 24 Oct 2023 15:42:35 +0200 Message-ID: <20231024134235.17953-1-clemens.gruber@pqgruber.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-102.5 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, USER_IN_WELCOMELIST,USER_IN_WHITELIST autolearn=ham autolearn_force=no version=3.4.2 X-Mailman-Approved-At: Thu, 26 Oct 2023 08:07:40 +0200 Subject: [ptxdist] [PATCH] minisign: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Clemens Gruber Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false --- 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 +# +# 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 ") + @$(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