aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeyed Pouria Mousavizadeh Tehrani <p.mousavizadeh@protonmail.com>2023-02-16 21:06:31 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2023-02-20 23:36:35 +0000
commitd24b8053f7906b948f5bf28aa9816ccbfde1b469 (patch)
tree3fd68d8f1860363ef0d087bd06d179d36290b7c6
parent344a6df3e46ea62e3db63fb45c882a7e19a664b4 (diff)
downloadports-d24b8053f7906b948f5bf28aa9816ccbfde1b469.tar.gz
ports-d24b8053f7906b948f5bf28aa9816ccbfde1b469.zip
security/ssh-import-id: new port
You're logged onto a cloud instance working on a problem with your fellow devs, and you want to invite them to log in and take a look at these crazy log messages. What to do? Oh. You have to ask them to cat their public SSH key, paste it into IRC (wait, no, it's id_rsa.pub, not id_rsa silly!) then you copy it and cat it to the end of authorized_hosts. That's where ssh-import-id comes in. With ssh-import-id, you can add the public SSH keys from a known, trusted online identity to grant SSH access. Currently supported identities include Github and Launchpad. WWW: https://git.launchpad.net/ssh-import-id Submitter is first time maintainer. PR: 265835 Approved by: flo (mentor) Differential Revision: https://reviews.freebsd.org/D38681
-rw-r--r--security/Makefile1
-rw-r--r--security/ssh-import-id/Makefile20
-rw-r--r--security/ssh-import-id/distinfo3
-rw-r--r--security/ssh-import-id/pkg-descr13
4 files changed, 37 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 69b5f64d9011..b7d327237686 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1230,6 +1230,7 @@
SUBDIR += srm
SUBDIR += ssb
SUBDIR += ssdeep
+ SUBDIR += ssh-import-id
SUBDIR += ssh-multiadd
SUBDIR += ssh-tools
SUBDIR += ssh-vault
diff --git a/security/ssh-import-id/Makefile b/security/ssh-import-id/Makefile
new file mode 100644
index 000000000000..b64ac45822ef
--- /dev/null
+++ b/security/ssh-import-id/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= ssh-import-id
+DISTVERSION= 5.11
+CATEGORIES= security python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= p.mousavizadeh@protonmail.com
+COMMENT= Authorize SSH public keys from trusted online identities
+WWW= https://git.launchpad.net/ssh-import-id
+
+LICENSE= GPLv3
+# LICENSE_FILE=Not shipped in PyPI sdist
+# https://bugs.launchpad.net/ssh-import-id/+bug/1992842
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}distro>0:sysutils/py-distro@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= concurrent autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/security/ssh-import-id/distinfo b/security/ssh-import-id/distinfo
new file mode 100644
index 000000000000..865682c799ec
--- /dev/null
+++ b/security/ssh-import-id/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660480546
+SHA256 (ssh-import-id-5.11.tar.gz) = 2a976fefcbd97afa16c32a4c24f0ae5bb979e684c4ad0e23a8afb697dfa994c0
+SIZE (ssh-import-id-5.11.tar.gz) = 7051
diff --git a/security/ssh-import-id/pkg-descr b/security/ssh-import-id/pkg-descr
new file mode 100644
index 000000000000..eeaf933883b3
--- /dev/null
+++ b/security/ssh-import-id/pkg-descr
@@ -0,0 +1,13 @@
+You're logged onto a cloud instance working on a problem with your
+fellow devs, and you want to invite them to log in and take a look
+at these crazy log messages. What to do?
+
+Oh. You have to ask them to cat their public SSH key, paste it into
+IRC (wait, no, it's id_rsa.pub, not id_rsa silly!) then you copy it
+and cat it to the end of authorized_hosts.
+
+That's where ssh-import-id comes in. With ssh-import-id, you can add
+the public SSH keys from a known, trusted online identity to grant
+SSH access.
+
+Currently supported identities include Github and Launchpad.