zendrite

LOW
maintainer ZhangHua 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The source is a git repository from a personal domain, but it is the project's own upstream source, and the build process compiles from this source rather than executing prebuilt binaries, making it a normal AUR packaging practice despite the non-whitelisted host.

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 repository from a personal domain, but it is the project's own upstream source, and the build process compiles from this source rather than executing prebuilt binaries, making it a normal AUR packaging practice despite the non-whitelisted host.

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.6.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=('61bf8d3ae0c594418a43cb6eb3c82c0a661bfae610ada5e289e935a6bf12694e'
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}
34check() {
35 cd "$pkgname"
36 # Skip tests require pgsql
37 export ZENDRITE_TEST_SKIP_NODB=1
38 go test -tags goolm -v ./...
39}
40package() {
41 cd "$pkgname"
42 find bin -mindepth 1 -maxdepth 1 -type f -executable \
43 -exec install -Dvm755 -t "$pkgdir/usr/bin/" {} +
44 for f in "$pkgdir/usr/bin/"*
45 do
46 basename="$(basename "$f")"
47 if [[ "$basename" != "$pkgname"* ]]
48 then
49 mv -v "$f" "$pkgdir/usr/bin/$pkgname-$basename"
50 fi
51 done
52 install -Dvm644 LICENSE-COMMERCIAL "$pkgdir/usr/share/licenses/$pkgname/LICENSE-COMMERCIAL"
53 install -Dvm644 "../$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
54 install -Dvm644 -t "$pkgdir/usr/share/doc/$pkgname/" "$pkgname-sample.yaml"
55}
56

Changes since previous scan

--- PKGBUILD @ 2026-10-25 00:20
+++ PKGBUILD @ 2026-11-01 00:21
@@ -1,5 +1,5 @@
pkgname=zendrite
-pkgver=3.5.0
+pkgver=3.6.0
pkgrel=1
pkgdesc="An opinionated fork of element-hq/dendrite"
arch=(x86_64)
@@ -12,7 +12,7 @@
install="$pkgname.install"
source=("git+https://codefloe.com/pat-s/zendrite.git#tag=v$pkgver"
"$pkgname.service")
-sha256sums=('dfaa58e787878ae871cf2bdc5703f329dc6d366a389610630f63fb0b280d6d61'
+sha256sums=('61bf8d3ae0c594418a43cb6eb3c82c0a661bfae610ada5e289e935a6bf12694e'
'8eb2c645705cd432b6d16cda65f31f06fa97f513b9d3d90e4c6e5a87bfb39513')
prepare() {
@@ -31,6 +31,12 @@
go build -ldflags "-compressdwarf=false -linkmode external -bindnow -X codefloe.com/pat-s/zendrite/internal.version=$pkgver" \
-tags goolm -o bin/ ./cmd/...
}
+check() {
+ cd "$pkgname"
+ # Skip tests require pgsql
+ export ZENDRITE_TEST_SKIP_NODB=1
+ go test -tags goolm -v ./...
+}
package() {
cd "$pkgname"
find bin -mindepth 1 -maxdepth 1 -type f -executable \

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 07:42:02 Medium 1
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 03:10:23 Medium 1
2026-10-15 00:28:05 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