brother-hl2040

maintainer severach · 3 votes · scanned 2026-08-03 00:08:14.047287
LOW
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-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