zendrite

LOW
maintainer ZhangHua 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The source is a git checkout from a personal domain, but it is the project's own upstream repository, building from source is normal for AUR, and no unverifiable prebuilt binaries are executed.

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 source is a git checkout from a personal domain, but it is the project's own upstream repository, building from source is normal for AUR, and no unverifiable prebuilt binaries are executed.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:13 source=("git+https://codefloe.com/pat-s/zendrite.git#tag=v$pkgver"

PKGBUILD

1 offending line(s) highlighted
1pkgname=zendrite
2pkgver=3.2.0
3pkgrel=1
4pkgdesc="An opinionated fork of element-hq/dendrite"
5arch=(x86_64)
6url=https://zendrite.pat-s.me/
7license=("GPL-3.0-or-later OR LicenseRef-Element-Commercial-License")
8depends=(glibc)
9makedepends=(git go)
10optdepends=("postgresql>=12: Recommended database"
11 "nats-server: Use external nats server")
12install="$pkgname.install"
13source=("git+https://codefloe.com/pat-s/zendrite.git#tag=v$pkgver"
14 "$pkgname.service")
15sha256sums=('8cc32a52af6166614e4b6c972ca2daeca8f930991211ca077a05c990e7473256'
16 '8eb2c645705cd432b6d16cda65f31f06fa97f513b9d3d90e4c6e5a87bfb39513')
17
18prepare() {
19 cd "$pkgname"
20 export GOPATH="$srcdir"
21 go mod download -modcacherw
22}
23build() {
24 cd "$pkgname"
25 export CGO_CPPFLAGS="${CPPFLAGS}"
26 export CGO_CFLAGS="${CFLAGS}"
27 export CGO_CXXFLAGS="${CXXFLAGS}"
28 export CGO_LDFLAGS="${LDFLAGS}"
29 export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw"
30 export GOPATH="$srcdir"
31 go build -ldflags "-compressdwarf=false -linkmode external -bindnow -X codefloe.com/pat-s/zendrite/internal.version=$pkgver" \
32 -tags goolm -o bin/ ./cmd/...
33}
34package() {
35 cd "$pkgname"
36 find bin -mindepth 1 -maxdepth 1 -type f -executable \
37 -exec install -Dvm755 -t "$pkgdir/usr/bin/" {} +
38 for f in "$pkgdir/usr/bin/"*
39 do
40 basename="$(basename "$f")"
41 if [[ "$basename" != "$pkgname"* ]]
42 then
43 mv -v "$f" "$pkgdir/usr/bin/$pkgname-$basename"
44 fi
45 done
46 install -Dvm644 LICENSE-COMMERCIAL "$pkgdir/usr/share/licenses/$pkgname/LICENSE-COMMERCIAL"
47 install -Dvm644 "../$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
48 install -Dvm644 -t "$pkgdir/usr/share/doc/$pkgname/" "$pkgname-sample.yaml"
49}
50

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 Low 2

Report a package

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

0 / 4000
Your suggestion