brother-hl2040

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

The package downloads official Brother driver RPMs from brother.com, a legitimate vendor domain, for building a CUPS driver; despite the non-whitelisted host, the sources are verifiable and expected for this hardware driver package.

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 package downloads official Brother driver RPMs from brother.com, a legitimate vendor domain, for building a CUPS driver; despite the non-whitelisted host, the sources are verifiable and expected for this hardware driver package.

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:19 http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2040-$pkgver-1.i386.rpm

PKGBUILD

1 offending line(s) highlighted
1# Contributor: Tom Richards <tom@tomrichards.net>
2# Contributor: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
3# Contributor: Aerion (emile [at] aerion [dot] co [dot] uk
4# Contributor: Jaroslaw Rosiek <jaroslaw.rosiek@interia.pl>
5
6pkgname=brother-hl2040
7pkgver=2.0.1
8pkgrel=2
9pkgdesc="Brother HL-2040 CUPS driver"
10url="http://www.brother.com"
11license=('GPL')
12install="brother-hl2040.install"
13arch=('i686' 'x86_64')
14depends=('cups')
15depends_x86_64=('lib32-glibc')
16
17source=(brother-hl2040.patch
18 brother-hl2040.install
19 http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2040-$pkgver-1.i386.rpm
20 http://www.brother.com/pub/bsc/linux/dlf/brhl2040lpr-$pkgver-1.i386.rpm)
21sha256sums=('4a2118ae57baf4a891656ef80dd789ef801875238eaa0b893473e0d8a424681f'
22 '81f320491f4cdab592c25b075bea3ba84690c6ae0fa1746c5f865765901827f5'
23 'cff424e97b46c1de23b31a1a23f2edc5b78e5682bdc71222a39098b531c519f6'
24 'e123fe7030148c2842fa1859ccd89bd613c31fb7ec9c536032e42a1e0adeaece')
25
26build() {
27 cd "$srcdir/usr"
28 patch -p1 -i "$srcdir/$pkgname.patch"
29
30 cd "$srcdir"
31 "$srcdir/usr/local/Brother/cupswrapper/cupswrapperHL2040-$pkgver"
32}
33
34package() {
35 mkdir -p "$pkgdir/usr/share"
36 cp -R "$srcdir/usr/bin" "$pkgdir/usr"
37 cp -R "$srcdir/usr/lib" "$pkgdir/usr"
38 cp -R "$srcdir/usr/local/Brother" "$pkgdir/usr/share/brother"
39
40 rm "$pkgdir/usr/share/brother/cupswrapper/cupswrapperHL2040-$pkgver"
41 rm "$pkgdir/usr/share/brother/inf/setupPrintcap"
42
43 install -Dm644 ppd_file "$pkgdir/usr/share/cups/model/HL2040.ppd"
44 install -Dm755 wrapper "$pkgdir/usr/lib/cups/filter/brlpdwrapperHL2040"
45}
46

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