hosts-gen

LOW
maintainer ahills 1 votes scanned 2026-09-17 00:27:14.276658
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-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