fail2rest-git

LOW
maintainer pizzaman 1 votes scanned 2026-10-17 00:21:55.226236
View on AUR
Why flagged

The package builds from the project's official GitHub repository, uses standard Go build practices, and installs only the resulting binary and config files; the orphaned/re-adopted status is administrative and does not imply malicious intent or supply-chain risk.

Triggered rules

Low AI review downgraded a static finding llm_review

The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package builds from the project's official GitHub repository, uses standard Go build practices, and installs only the resulting binary and config files; the orphaned/re-adopted status is administrative and does not imply malicious intent or supply-chain risk.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium Recently orphaned & re-adopted orphaned_readopted

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

PKGBUILD

1# Maintainer: Adler Neves <adlerosn@gmail.com>
2
3provides=('fail2rest')
4conflicts=('fail2rest')
5pkgver=r52.42cfa41
6pkgname=fail2rest-git
7pkgrel=2
8pkgdesc="REST server for fail2ban"
9arch=('any')
10depends=('fail2ban')
11makedepends=('go')
12url="https://github.com/Sean-Der/fail2rest"
13options=()
14license=('MIT')
15source=('fail2rest::git+https://github.com/Sean-Der/fail2rest')
16sha512sums=('SKIP')
17
18pkgver() {
19 cd fail2rest
20 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
21}
22
23prepare() {
24 cd "${srcdir}"
25
26 msg2 "Creating compilation structure..."
27 mkdir -p gopath/src/github.com/Sean-Der
28 rm -rf gopath/src/github.com/Sean-Der/fail2rest
29 ln -rTsf fail2rest gopath/src/github.com/Sean-Der/fail2rest
30
31 msg2 "Downloading dependencies..."
32 cd gopath/src/github.com/Sean-Der/fail2rest
33 GOPATH="${srcdir}/gopath" go get
34}
35
36build() {
37 msg2 "Compiling..."
38 cd gopath/src/github.com/Sean-Der/fail2rest
39 GOPATH="${srcdir}/gopath" go build \
40 -trimpath \
41 -gcflags "-trimpath $srcdir" \
42 -asmflags "-trimpath $srcdir" \
43 -ldflags "-extldflags $LDFLAGS" \
44 -o fail2rest
45
46 msg2 "Customizing SystemD unit service..."
47 cat "${srcdir}"/fail2rest/init-scripts/systemd |\
48 sed 's/fail2rest\.json/fail2rest\/config.json/g' |\
49 tee "${srcdir}"/fail2rest.service
50}
51
52package() {
53 cd "${pkgdir}"
54 mkdir -p "${pkgdir}"/usr/bin
55 ln -s /usr/share/webapps/fail2rest/bin/fail2rest "${pkgdir}"/usr/bin/fail2rest
56
57 install -Dm755 "${srcdir}"/gopath/bin/fail2rest "${pkgdir}"/usr/share/webapps/fail2rest/bin/fail2rest
58
59 install -Dm644 "${srcdir}"/fail2rest.service "${pkgdir}"/usr/lib/systemd/system/fail2rest.service
60 install -Dm644 "${srcdir}"/fail2rest/fail2rest.1 "${pkgdir}"/usr/share/man/man1/fail2rest.1
61 install -Dm644 "${srcdir}"/fail2rest/config.json "${pkgdir}"/etc/fail2rest/config.json
62
63}
64

Scan history

Scanned at (UTC)SeverityRules
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 Low 2
2026-10-12 00:18:51 Low 2
2026-10-11 00:26:05 Low 2
2026-10-10 22:16:18 Medium 1
2026-06-18 16:11:54 Clean 0

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion