[arch-commits] Commit in (4 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Wed Feb 16 08:14:43 UTC 2022
Date: Wednesday, February 16, 2022 @ 08:14:42
Author: grawlinson
Revision: 1133432
addpkg: ssh-tools 1.7-2
Added:
ssh-tools/
ssh-tools/repos/
ssh-tools/trunk/
ssh-tools/trunk/PKGBUILD
----------+
PKGBUILD | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
Added: ssh-tools/trunk/PKGBUILD
===================================================================
--- ssh-tools/trunk/PKGBUILD (rev 0)
+++ ssh-tools/trunk/PKGBUILD 2022-02-16 08:14:42 UTC (rev 1133432)
@@ -0,0 +1,67 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Sven Wick <sven.wick at gmx.de>
+
+pkgname=ssh-tools
+pkgver=1.7
+pkgrel=2
+pkgdesc="A collection of tools making SSH more convenient"
+arch=('any')
+url="https://github.com/vaporup/ssh-tools"
+license=('GPL')
+depends=('openssh')
+optdepends=('colordiff: colors for ssh-diff')
+makedepends=('git' 'help2man')
+_commit='fbf979f8a4f002a94ec2f487885aeebec49f80cb'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ mkdir man
+}
+
+build() {
+ cd "$pkgname"
+
+ # dict with command:description pairings
+ declare -A pages
+ pages["ssh-ping"]="check if host is reachable using ssh_config"
+ pages["ssh-version"]="shows version of the ssh server you are connecting to"
+ pages["ssh-diff"]="diff a file over ssh"
+ pages["ssh-facts"]="get some facts about the remote system"
+ pages["ssh-hostkeys"]="prints server host keys in several formats"
+ pages["ssh-keyinfo"]="prints keys in several formats"
+ pages["ssh-certinfo"]="shows validity and information of ssh certificates"
+ pages["ssh-force-password"]="enforces password authentication"
+
+ # generate man pages
+ for page in "${!pages[@]}"; do
+ help2man \
+ --name "${pages[${page}]}" \
+ --source "${pkgname^^}" \
+ --no-info \
+ --version-string "$pkgver" \
+ --output "man/${page}.1" \
+ "./${page}"
+ done
+}
+
+package() {
+ cd "$pkgname"
+
+ # scripts
+ install -vDm755 -t "$pkgdir/usr/bin" ssh-*
+
+ # man pages
+ install -vDm644 -t "$pkgdir/usr/share/man/man1" man/*
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+}
More information about the arch-commits
mailing list