hosts-gen

maintainer ahills · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged 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

LOW AI review downgraded a static finding 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)
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:18 source=("$pkgname::git://r-36.net/$pkgname#commit=$_pkgcommit"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Andrew Hills <ahills@ednos.net>
2pkgname=hosts-gen
3pkgver=0.9.20191123.2
4# No actual releases provided; use a specific commit
5_pkgcommit=562b4af551efc7249cb68f6d4b8909daf2ce7ce6
6pkgrel=2
7epoch=
8pkgdesc="A little framework to generate /etc/hosts from /etc/hosts.d"
9arch=('any')
10url="http://r-36.net/scm/$pkgname/"
11license=('GPL3')
12groups=()
13depends=('coreutils')
14makedepends=('git')
15backup=()
16options=()
17install="$pkgname.install"
18source=("$pkgname::git://r-36.net/$pkgname#commit=$_pkgcommit"
19 "$pkgname.path"
20 "$pkgname.service")
21md5sums=('SKIP'
22 '470be01a8490fc054fb0a04d3a74eed1'
23 '12ed5fdea9f047bb03e61e8f846c641a')
24validpgpkeys=()
25
26pkgver() {
27 cd "$pkgname"
28 set +x
29 local version=$(sed -n -e 's/^VERSION = //p' config.mk)
30 # group commits by date, counting the ones on the date chosen for the version
31 local commitdate=$(git show -s --date=short --format=%cd)
32 local datecommits=$(git rev-list --since="$commitdate 00:00 UTC" HEAD | wc -l)
33 git show -s --date=format:%Y%m%d --format=format:$version.%cd.$datecommits
34}
35
36package() {
37 cd "$pkgname"
38 make DESTDIR="$pkgdir/" install
39 # Generate this from /etc/hosts on install
40 rm "$pkgdir/etc/hosts.d/01-hosts.local"
41 # Correct executable location
42 mkdir -p "$pkgdir/usr"
43 mv "$pkgdir/bin" "$pkgdir/usr/bin"
44 # Install documentation
45 mkdir -p "$pkgdir/usr/share/doc/$pkgname"
46 install -m0644 "$srcdir/$pkgname/README" "$pkgdir/usr/share/doc/$pkgname/README"
47 install -m0644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/doc/$pkgname/LICENSE"
48 # Install systemd units
49 mkdir -p "$pkgdir/usr/lib/systemd/system"
50 install -m0644 "$srcdir/$pkgname.path" "$pkgdir/usr/lib/systemd/system/$pkgname.path"
51 install -m0644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
52}
53

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 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