From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 21 Sep 2023 13:52:42 +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 1qjIEc-005qMV-NC for lore@lore.pengutronix.de; Thu, 21 Sep 2023 13:52:42 +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 1qjIEa-0006go-8v; Thu, 21 Sep 2023 13:52:40 +0200 Received: from mail.thorsis.com ([92.198.35.195]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qjIED-0006fo-87 for ptxdist@pengutronix.de; Thu, 21 Sep 2023 13:52:18 +0200 Received: from adahl by ada.ifak-system.com with local (Exim 4.94.2) (envelope-from ) id 1qjIDQ-004HMf-BM for ptxdist@pengutronix.de; Thu, 21 Sep 2023 13:51:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=default; t=1695297135; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:content-transfer-encoding:content-transfer-encoding; bh=MYcfBluRQEVnT0WMLLyRXo+HMSp8wubTXzxa9IDVaL0=; b=I5Lq8kROCM6JKdfcETlp3RtNczBYt0p+9ZE1mz1JUvWmzn7dgvxBGzOGRRksexy8Xy10dM +MU8yQF3ESWT/2n8QsII9ebNw7AXT3tdDGtHtPr9rSI7NrbkqdXvnTxnhsRXpmtm+VspwN e7sfx6byLBYLOUaRVCiIBCywp7xx5zh5UVHEi7EQz2cjvuxzAe/2Xrq6kuDyT/fHXbWZme ZHPWvhj+j/KvsCFAxzEF7QNrJDqcq9FFgkoHvss9cCcJmDTzuUf8e1eKwa6/ymP3NaqI5J nzU5NjPGznFO19YuRHPYRkK/cGu8zWOZdjhRrYEa9z+rwsYRz2VacZAIyU8aiA== From: Alexander Dahl To: ptxdist@pengutronix.de Date: Thu, 21 Sep 2023 13:51:28 +0200 Message-Id: <20230921115128.1020018-1-ada@thorsis.com> 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=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] sshpass: Add 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 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 As noted by sshpass itself and Debian: using this is a potential security risk, consider pubkey auth first! Link: https://sourceforge.net/projects/sshpass/ Signed-off-by: Alexander Dahl --- rules/sshpass.in | 22 ++++++++++++++++++++ rules/sshpass.make | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 rules/sshpass.in create mode 100644 rules/sshpass.make diff --git a/rules/sshpass.in b/rules/sshpass.in new file mode 100644 index 000000000..b855016e2 --- /dev/null +++ b/rules/sshpass.in @@ -0,0 +1,22 @@ +## SECTION=networking + +config SSHPASS + tristate + prompt "sshpass" + help + Sshpass is a tool for non-interactivly performing password + authentication with SSH's so called "interactive keyboard + password authentication". + Most user should use SSH's more secure public key + authentiaction instead. + + SECURITY NOTE: There is a reason openssh insists that + passwords be typed interactively. + Passwords are harder to store securely and to pass around + securely between programs. + If you have not looked into solving your needs using SSH's + "public key authentication", perhaps in conjunction with the + ssh agent (RTFM ssh-add), please do so before being tempted + into using this package. + +# vim: ft=kconfig noet tw=72 ts=8 sw=8 diff --git a/rules/sshpass.make b/rules/sshpass.make new file mode 100644 index 000000000..7fe27d1e6 --- /dev/null +++ b/rules/sshpass.make @@ -0,0 +1,52 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Alexander Dahl +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_SSHPASS) += sshpass + +# +# Paths and names +# +SSHPASS_VERSION := 1.10 +SSHPASS_MD5 := e435c55deb6e2e410508ecc5da3066f8 +SSHPASS := sshpass-$(SSHPASS_VERSION) +SSHPASS_SUFFIX := tar.gz +SSHPASS_URL := $(call ptx/mirror, SF, sshpass/$(SSHPASS).$(SSHPASS_SUFFIX)) +SSHPASS_SOURCE := $(SRCDIR)/$(SSHPASS).$(SSHPASS_SUFFIX) +SSHPASS_DIR := $(BUILDDIR)/$(SSHPASS) +SSHPASS_LICENSE := GPL-2.0-or-later +SSHPASS_LICENSE_FILES := file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +SSHPASS_CONF_TOOL := autoconf + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/sshpass.targetinstall: + @$(call targetinfo) + + @$(call install_init, sshpass) + @$(call install_fixup, sshpass,PRIORITY,optional) + @$(call install_fixup, sshpass,SECTION,base) + @$(call install_fixup, sshpass,AUTHOR,"Alexander Dahl ") + @$(call install_fixup, sshpass,DESCRIPTION,missing) + + @$(call install_copy, sshpass, 0, 0, 0755, -, /usr/bin/sshpass) + + @$(call install_finish, sshpass) + + @$(call touch) + +# vim: ft=make noet tw=72 ts=8 sw=8 base-commit: 62f61865b380ca0064e7e8a3b7a81a8fb74ea51c -- 2.30.2