brother-mfc-j480dw

maintainer stick · 5 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads official Brother printer driver RPMs from brother.com's download subdomain, which is a legitimate source for this hardware; the non-whitelisted host is plausibly official, and the drivers are self-contained binaries meant to be installed as-is, with no obfuscated code or remote execution.

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 printer driver RPMs from brother.com's download subdomain, which is a legitimate source for this hardware; the non-whitelisted host is plausibly official, and the drivers are self-contained binaries meant to be installed as-is, with no obfuscated code or remote execution.

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:24 "http://download.brother.com/welcome/dlf102092/mfcj480dwcupswrapper-$pkgver-$pkgrel.i386.rpm"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Stick <stick at stma dot is>
2# Contributor: Eric Lehmann <katyl@katyl.info>
3# Contributor: Peter Vasil <mail@petervasil.net>
4# shellcheck disable=SC2034,SC2148,SC2154
5
6_printer="MFC-J480DW"
7pkgname="brother-${_printer,,}"
8pkgver="1.0.0"
9pkgrel=0
10pkgdesc="CUPS and LPR drivers for the Brother $_printer printer"
11url="https://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=mfcj480dw_us_eu_as&os=127"
12arch=('i686' 'x86_64')
13license=('custom:brother commercial license')
14depends=('cups' 'ghostscript' 'a2ps')
15optdepends=('brscan4: Scanner support')
16
17if test "$CARCH" == x86_64; then
18 depends+=('lib32-glibc')
19fi
20
21install="brother-${_printer,,}.install"
22
23source=(
24 "http://download.brother.com/welcome/dlf102092/mfcj480dwcupswrapper-$pkgver-$pkgrel.i386.rpm"
25 "http://download.brother.com/welcome/dlf102091/mfcj480dwlpr-$pkgver-$pkgrel.i386.rpm"
26 'cupswrapper-license.txt'
27 'lpr-license.txt'
28)
29sha256sums=(
30 '2a18c4943adc92a2e97f674a638dbdfb87656137a97073577f716ace6a196854'
31 '2a1e03b59d6af9dc8d67a9799f06ab439e67565410373081f2f8be65eb697a64'
32 '2c6aa6a641332e5c87e971ac2a8beae13b059747bdba331bbd515914770d72d9'
33 '9d85a8aafdaac8fac80e04234ad2acf5642bbf0b91ee582d2a89519a55f6dd67'
34)
35
36
37prepare() {
38 # do not install in '/usr/local'
39 if [ -d "$srcdir/usr/local/Brother" ]; then
40 install -d "$srcdir/usr/share"
41 mv "$srcdir/usr/local/Brother/" "$srcdir/usr/share/brother"
42 rm -rf "${srcdir:?}/usr/local"
43 sed -i 's|/usr/local/Brother|/usr/share/brother|g' "$(grep -lr '/usr/local/Brother' ./)"
44 fi
45 # set up cups-directories
46 install -d "$srcdir/usr/share/cups/model"
47 install -d "$srcdir/usr/lib/cups/filter"
48 # find source file in cupswrapper directory
49 cd "$(find . -type d -name 'cupswrapper')" || exit
50 _wrapper_source="$(find . -name "cupswrapper*")"
51 # generate ppd- and wrapper- files
52 sed -i '/^\/etc\/init.d\/cups/d' "$_wrapper_source"
53 sed -i '/^sleep/d' "$_wrapper_source"
54 sed -i '/^lpadmin/d' "$_wrapper_source"
55 # shellcheck disable=2016
56 sed -i 's|/usr|$srcdir/usr|g' "$_wrapper_source"
57 # shellcheck disable=2016
58 sed -i 's|/opt|$srcdir/opt|g' "$_wrapper_source"
59 sed -i 's|/model/Brother|/model|g' "$_wrapper_source"
60 sed -i 's|lpinfo|echo|g' "$_wrapper_source"
61 export srcdir="$srcdir"
62 ./"$_wrapper_source"
63 # shellcheck disable=2016
64 sed -i 's|$srcdir||' "$srcdir"/usr/lib/cups/filter/*lpdwrapper*
65 sed -i "s|$srcdir||" "$srcdir"/usr/lib/cups/filter/*lpdwrapper*
66 rm "$_wrapper_source"
67 # /etc/printcap is managed by cups
68 rm "$(find "$srcdir" -type f -name 'setupPrintcap*')"
69}
70package() {
71 cp -R "$srcdir/usr" "$pkgdir"
72 [ -d "$srcdir/opt" ] && cp -R "$srcdir/opt" "$pkgdir"
73 install -m 644 -D cupswrapper-license.txt "$pkgdir/usr/share/licenses/${pkgname}/cupswrapper-licence.txt"
74 install -m 644 -D lpr-license.txt "$pkgdir/usr/share/licenses/${pkgname}/lpr-licence.txt"
75}
76

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