From 9e6f530dc098f33b9f90cb1f8da48dc4f6c61ce1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 28 Jan 2022 08:29:23 +0100 Subject: sshfp neu --- sshfp/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sshfp/PKGBUILD (limited to 'sshfp') diff --git a/sshfp/PKGBUILD b/sshfp/PKGBUILD new file mode 100644 index 000000000..5dea48f0e --- /dev/null +++ b/sshfp/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Erich Eckner +# Contributor: Phillip Smith +# http://github.com/fukawi2/aur-packages + +pkgname=sshfp +pkgver=1.2.2 +pkgrel=1 +pkgdesc="Generates DNS SSHFP-type records from SSH public keys from public keys from a known_hosts file or from scanning the host's sshd daemon." +arch=('any') +license=('GPL') +depends=('python2' 'python2-dnspython') +url="https://github.com/xelerance/sshfp" +source=("$pkgname-$pkgver.tar.gz::https://github.com/xelerance/$pkgname/archive/${pkgver}.tar.gz") +md5sums=('3cedcc3463e72196ee2028543d03ebfc') + +build() { + cd "$srcdir"/$pkgname-$pkgver/ + + # use python2 instead of python + sed -e 's|python |python2 |g' \ + -i "$srcdir"/$pkgname-$pkgver/Makefile +} + +package() { + cd "$srcdir"/$pkgname-$pkgver/ + + make DESTDIR="$pkgdir" install + + sed -e 's|^#!/usr/bin/python$|#!/usr/bin/python2|g' \ + -i "$pkgdir"/usr/bin/sshfp \ + -i "$pkgdir"/usr/bin/dane +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-70-g09d2