hosts-gen
The source is a Git repository from a non-whitelisted host, but it is the project's own official repository used to build the software from source, which is normal for AUR packages; no unverifiable prebuilt binaries or executed remote code are involved.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The source is a Git repository from a non-whitelisted host, but it is the project's own official repository used to build the software from source, which is normal for AUR packages; no unverifiable prebuilt binaries or executed remote code are involved.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:18
source=("$pkgname::git://r-36.net/$pkgname#commit=$_pkgcommit"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Andrew Hills <ahills@ednos.net>
pkgname=hosts-gen
pkgver=0.9.20191123.2
# No actual releases provided; use a specific commit
_pkgcommit=562b4af551efc7249cb68f6d4b8909daf2ce7ce6
pkgrel=2
epoch=
pkgdesc="A little framework to generate /etc/hosts from /etc/hosts.d"
arch=('any')
url="http://r-36.net/scm/$pkgname/"
license=('GPL3')
groups=()
depends=('coreutils')
makedepends=('git')
backup=()
options=()
install="$pkgname.install"
source=("$pkgname::git://r-36.net/$pkgname#commit=$_pkgcommit"
"$pkgname.path"
"$pkgname.service")
md5sums=('SKIP'
'470be01a8490fc054fb0a04d3a74eed1'
'12ed5fdea9f047bb03e61e8f846c641a')
validpgpkeys=()
pkgver() {
cd "$pkgname"
set +x
local version=$(sed -n -e 's/^VERSION = //p' config.mk)
# group commits by date, counting the ones on the date chosen for the version
local commitdate=$(git show -s --date=short --format=%cd)
local datecommits=$(git rev-list --since="$commitdate 00:00 UTC" HEAD | wc -l)
git show -s --date=format:%Y%m%d --format=format:$version.%cd.$datecommits
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir/" install
# Generate this from /etc/hosts on install
rm "$pkgdir/etc/hosts.d/01-hosts.local"
# Correct executable location
mkdir -p "$pkgdir/usr"
mv "$pkgdir/bin" "$pkgdir/usr/bin"
# Install documentation
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
install -m0644 "$srcdir/$pkgname/README" "$pkgdir/usr/share/doc/$pkgname/README"
install -m0644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/doc/$pkgname/LICENSE"
# Install systemd units
mkdir -p "$pkgdir/usr/lib/systemd/system"
install -m0644 "$srcdir/$pkgname.path" "$pkgdir/usr/lib/systemd/system/$pkgname.path"
install -m0644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |