brother-hl3140cw

LOW
maintainer ggilestro 5 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package downloads official Brother printer drivers from brother.com, a legitimate vendor domain; despite the static analyzer flag for a non-standard host, the sources are verifiable binaries from the manufacturer, and the build process only extracts and relocates files safely for CUPS integration.

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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads official Brother printer drivers from brother.com, a legitimate vendor domain; despite the static analyzer flag for a non-standard host, the sources are verifiable binaries from the manufacturer, and the build process only extracts and relocates files safely for CUPS integration.

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:14 source=("https://download.brother.com/welcome/dlf007067/hl3140cwlpr-${_lprver}.i386.rpm"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Giorgio Gilestro <giorgio@gilest.ro>
2
3pkgname=brother-hl3140cw
4pkgver=1.1.4
5pkgrel=1
6_lprver=1.1.2-1 # LPR driver release
7_cwver=1.1.4-0 # CUPS wrapper release
8pkgdesc="LPR and CUPS driver for the Brother HL-3140CW colour LED printer"
9arch=('x86_64')
10url="https://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=hl3140cw_us_eu&os=127"
11license=('LicenseRef-Brother' 'GPL-2.0-or-later')
12depends=('cups' 'ghostscript' 'lib32-glibc')
13optdepends=('a2ps: print plain text files')
14source=("https://download.brother.com/welcome/dlf007067/hl3140cwlpr-${_lprver}.i386.rpm"
15 "https://download.brother.com/welcome/dlf007069/hl3140cwcupswrapper-${_cwver}.i386.rpm"
16 'lpr-license.txt'
17 'cupswrapper-license.txt')
18sha256sums=('60f262ce506ad3ccabf119465d714b15bb67ab7ea3dbacb3b2f03528aa7be5e7'
19 'baadb99787d28f7ad9f8e3fe06f0fa451b8945abdea4794e305e0e6470df0aaa'
20 '9e71d8f28a8d9e2cde6b329ac56eac8ef23b53e36531f1b83d7ef4d94b303bf4'
21 '353433180a29a5dd67b94cbe626362d5a152b85f40b2b920696389e2e100c06c')
22
23prepare() {
24 local wrapper=opt/brother/Printers/hl3140cw/cupswrapper/cupswrapperhl3140cw
25
26 # Brother's cupswrapper script generates the PPD and the CUPS filter, then
27 # registers the printer on the live system. Point every absolute path at
28 # $srcdir and drop the live-system steps so it only produces the files.
29 install -d usr/share/cups/model usr/lib/cups/filter
30 sed -i -e '/lpadmin/d' -e '/^sleep/d' -e '/^uris=/d' \
31 -e "s|/usr/|$srcdir/usr/|g" -e "s|/opt/|$srcdir/opt/|g" -e "s|/var/tmp/|$srcdir/|g" \
32 "$wrapper"
33 sh "$wrapper"
34 sed -i "s|$srcdir||g" usr/lib/cups/filter/brother_lpdwrapper_hl3140cw
35 rm "$wrapper"
36
37 # /etc/printcap is managed by CUPS
38 rm opt/brother/Printers/hl3140cw/inf/setupPrintcapij
39 chmod 644 opt/brother/Printers/hl3140cw/cupswrapper/brother_hl3140cw_printer_en.ppd
40}
41
42package() {
43 cp -a usr opt "$pkgdir"/
44 install -Dm644 lpr-license.txt cupswrapper-license.txt -t "$pkgdir/usr/share/licenses/$pkgname"
45}
46

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 00:23:45 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