From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] sshpass: Add new package
Date: Thu, 21 Sep 2023 13:51:28 +0200 [thread overview]
Message-ID: <20230921115128.1020018-1-ada@thorsis.com> (raw)
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 <ada@thorsis.com>
---
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 <ada@thorsis.com>
+#
+# 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 <ada@thorsis.com>")
+ @$(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
next reply other threads:[~2023-09-21 11:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-21 11:51 Alexander Dahl [this message]
2023-09-24 5:44 ` [ptxdist] [APPLIED] " Michael Olbrich
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=20230921115128.1020018-1-ada@thorsis.com \
--to=ada@thorsis.com \
--cc=ptxdist@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox