summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgraysky2020-10-29 06:23:33 -0400
committergraysky2020-10-29 06:23:33 -0400
commit3a9f12c7ab5f6cf38b80069ceb5a295d26c4d7ba (patch)
treed4dcf7566609b58ac5a9f85cdf9a5af45581e212
parent81f58da257900098cff39c398d186fa99282a94c (diff)
downloadaur-3a9f12c7ab5f6cf38b80069ceb5a295d26c4d7ba.tar.gz
Update to 2.3.1-1
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD27
-rw-r--r--readme.install3
-rw-r--r--wrapper2
4 files changed, 15 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fb86df706ef..85b56227702 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,13 @@
pkgbase = ssh-audit
pkgdesc = A tool for ssh server auditing.
- pkgver = 2.3.0
- pkgrel = 3
+ pkgver = 2.3.1
+ pkgrel = 1
url = https://github.com/jtesta/ssh-audit
arch = any
license = MIT
depends = python
- source = ssh-audit-2.3.0.tar.gz::https://github.com/jtesta/ssh-audit/archive/v2.3.0.tar.gz
- source = wrapper
- b2sums = 86dd949d24c0fd7612d99f615028c68d483d681509f34b196916d2f27fa6e144cc5ebe559043466fc78fdec1dd57f3deba7139cf856478b07514eaa3f9a31327
- b2sums = 42f543823ef4e1bbe4b7af3e61b579b87825894518ff14413a450ee58f619a684b86f23928d70b05cb5f5acf56da20ac291747b9453acae21af05ddbce7c6975
+ source = ssh-audit-2.3.1.tar.gz::https://github.com/jtesta/ssh-audit/archive/v2.3.1.tar.gz
+ b2sums = 38656a2c93f7230a7aec760c4eca892fe1ce5977f482ff369db2812c1a87adcb4d3966bee1b0d59988666e3ab4416332448940ecd02518eb64407c0d8d793b3e
pkgname = ssh-audit
diff --git a/PKGBUILD b/PKGBUILD
index 719dcb2f325..d7e865e99a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,23 @@
# Maintainer: graysky <graysky AT archlinux DOT us>
pkgname=ssh-audit
-pkgver=2.3.0
-pkgrel=3
+pkgver=2.3.1
+pkgrel=1
pkgdesc="A tool for ssh server auditing."
arch=(any)
url="https://github.com/jtesta/ssh-audit"
license=('MIT')
depends=('python')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/jtesta/$pkgname/archive/v$pkgver.tar.gz"
- wrapper)
-b2sums=('86dd949d24c0fd7612d99f615028c68d483d681509f34b196916d2f27fa6e144cc5ebe559043466fc78fdec1dd57f3deba7139cf856478b07514eaa3f9a31327'
- '42f543823ef4e1bbe4b7af3e61b579b87825894518ff14413a450ee58f619a684b86f23928d70b05cb5f5acf56da20ac291747b9453acae21af05ddbce7c6975')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jtesta/$pkgname/archive/v$pkgver.tar.gz")
+b2sums=('38656a2c93f7230a7aec760c4eca892fe1ce5977f482ff369db2812c1a87adcb4d3966bee1b0d59988666e3ab4416332448940ecd02518eb64407c0d8d793b3e')
-package() {
+build() {
cd "$pkgname-$pkgver"
+ python setup.py build
+}
- # https://github.com/jtesta/ssh-audit/issues/67
- # ultimately this will go to /usr/bin/ but this works for now
- install -Dm755 "$srcdir/wrapper" "$pkgdir/usr/bin/$pkgname"
- chmod +x "$pkgdir/usr/bin/$pkgname"
- install -Dm755 $pkgname.py "$pkgdir/opt/$pkgname/$pkgname"
- cp -r policies "$pkgdir/opt/$pkgname"
-
- install -Dm644 $pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --prefix=/usr --root="$pkgdir" --skip-build
+ install -Dm644 -t "$pkgdir"/usr/share/man/man1 ssh-audit.1
}
diff --git a/readme.install b/readme.install
deleted file mode 100644
index 5055aed5f64..00000000000
--- a/readme.install
+++ /dev/null
@@ -1,3 +0,0 @@
-post_install() {
- echo '--> call the binary via /opt/ssh-audit/ssh-audit'
-}
diff --git a/wrapper b/wrapper
deleted file mode 100644
index 8666526039f..00000000000
--- a/wrapper
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/usr/bin/env sh
-/opt/ssh-audit/ssh-audit "$@"