blob: 835ea473626ec39f98c89f2b88dc735691f28937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Amin Vakil <info at aminvakil dot com>
_pkgname=tsunami-security-scanner
pkgname=google-tsunami-security-scanner
pkgver=0.0.24
pkgrel=1
pkgdesc="A general purpose network security scanner with an extensible plugin system for detecting high severity vulnerabilities with high confidence"
arch=(any)
conflicts=('google-tsunami-security-scanner-git')
url="https://github.com/google/tsunami-security-scanner"
license=('Apache')
depends=('nmap>=7.80' 'ncrack>=0.7' 'jdk11-openjdk')
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
"${url}/raw/master/tsunami.yaml"
)
sha256sums=('d67e43cb015e9cdfb244511dacbd4192f9e24511062efe2a04157d89d88aab18'
'633313cb332fcafb46a7200b1b22d691160c2d5b5677123c1677bf53749d100b')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
./gradlew shadowJar
}
package() {
appdir="${pkgdir}/opt/${_pkgname}"
jar=$(find ${srcdir} -name "tsunami-main-${pkgver}-cli.jar")
jar_filename=$(basename -- "${jar}")
mkdir -p "${appdir}"
install ${jar} "${appdir}/${jar_filename}"
install tsunami.yaml "${appdir}"
}
|