summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a757fb3097307e8619f891ad8503059d89625427 (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
# Maintainer: Timo Sarawinski <timo at it-kraut dot net>
# Logpresso

pkgname=logpresso-log4j-scan
pkgver=3.0.1
pkgrel=1
arch=('any')
pkgdesc="tool for CVE-2021-44228 vuln scanning and patch. also detects CVE-2021-45046, CVE-2021-45105, CVE-2021-44832, CVE-2021-4104, CVE-2019-17571, CVE-2017-5645, CVE-2020-9488, CVE-2022-23302, CVE-2022-23305, CVE-2022-23307, CVE-2021-42550"
url="https://github.com/logpresso/CVE-2021-44228-Scanner"
license=('GPL3')
optdepends=('java-runtime=11')


source=("https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v${pkgver}/logpresso-log4j2-scan-${pkgver}-linux.tar.gz"
        "https://github.com/logpresso/CVE-2021-44228-Scanner/releases/download/v${pkgver}/logpresso-log4j2-scan-${pkgver}.jar")
sha256sums=('967eef2e813fb720c6585087d70196a3637c10b18891d420bc707fd3e2a3c724'
            'aa43440193daa6b16aee2d5401319f5c4baa4d818ce6a0b378f89d7d1ae8dfb2')


package() {
    install -Dm644 $srcdir/logpresso-log4j2-scan-${pkgver}.jar $pkgdir/usr/share/java/logpresso-log4j-scan/logpresso-log4j2-scan-${pkgver}.jar
    install -Dm655 $srcdir/log4j2-scan $pkgdir/usr/bin/logpresso-log4j2-scan-${pkgver}
}