summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 11 insertions, 16 deletions
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
}