brother-mfc-j5330dw
maintainer surt91
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads official Brother driver RPMs from download.brother.com, which is the vendor's legitimate domain; despite the static analyzer flagging it as a non-standard host, this is a normal and expected source for proprietary drivers, and the checksums are provided and verifiable.
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 download.brother.com, which is the vendor's legitimate domain; despite the static analyzer flagging it as a non-standard host, this is a normal and expected source for proprietary drivers, and the checksums are provided and verifiable.
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:17
source=("http://download.brother.com/welcome/dlf103003/mfcj5330dwlpr-$pkgver-0.i386.rpm"
PKGBUILD
1 offending line(s) highlighted
1
# Contributor: David Barri <japgolly@gmail.com>
2
# Contributor: Valère Monseur <valere dot monseur at ymail dot com>
3
# Maintainer: Hendrik Schawe <hendrik dot schawe at gmail dot com>
4
5
# slightly modified version of https://aur.archlinux.org/packages/brother-mfc-j5320dw/
6
7
pkgname="brother-mfc-j5330dw"
8
pkgver="1.0.1"
9
pkgrel=4
10
pkgdesc="LPR and CUPS driver for the Brother MFC-J5330DW"
11
arch=('i686' 'x86_64')
12
url="http://support.brother.com/g/b/producttop.aspx?c=gb&lang=en&prod=mfcj5330dw_us_eu_as"
13
license=('custom:Brother commercial license')
14
depends=('cups' 'ghostscript' 'poppler' 'a2ps' 'psutils')
15
depends_x86_64=('lib32-glibc' 'lib32-gcc-libs')
16
install="$pkgname.install"
17
source=("http://download.brother.com/welcome/dlf103003/mfcj5330dwlpr-$pkgver-0.i386.rpm"
18
"http://download.brother.com/welcome/dlf103027/mfcj5330dwcupswrapper-$pkgver-0.i386.rpm"
19
'cupswrapper-license.txt'
20
'lpr-license.txt'
21
'brother_lpdwrapper_mfcj5330dw.patch')
22
md5sums=(1d84cf8b3db7d2598ed0a0e15d44b947
23
db6ce4717c3110134a20bbfb251ee9c5
24
310f8424517f3df127d39393ceaebb6f
25
bf894a1a51baf6055a6c58ecf43c9782
26
3903b9b3f9e225cb481b1468f49e1268)
27
28
prepare() {
29
# do not install in /usr/local
30
if [ -d "${srcdir}"/usr/local/Brother ]; then
31
install -d "${srcdir}"/usr/share
32
mv "${srcdir}"/usr/local/Brother/ "${srcdir}"/usr/share/Brother
33
rm -rf "${srcdir}"/usr/local
34
sed -i 's|/usr/local/Brother|/usr/share/Brother|g' `grep -lr '/usr/local/Brother' ./`
35
fi
36
37
# setup cups directories
38
install -d "${srcdir}"/usr/share/cups/model
39
install -d "${srcdir}"/usr/lib/cups/filter
40
41
# patch an error (?) in the perl script from brother
42
patch -p1 "${srcdir}"/opt/brother/Printers/mfcj5330dw/cupswrapper/brother_lpdwrapper_mfcj5330dw < brother_lpdwrapper_mfcj5330dw.patch
43
44
# go to the cupswrapper directory and find the source file from which to generate a ppd and wrapperfile
45
cd `find . -type d -name 'cupswrapper'`
46
47
if [ -f cupswrapper* ]; then
48
_wrapper_source=`ls cupswrapper*`
49
50
sed -i '/^\/etc\/init.d\/cups/d' $_wrapper_source
51
sed -i '/^sleep/d' $_wrapper_source
52
sed -i '/^lpadmin/d' $_wrapper_source
53
sed -i 's|/usr|$srcdir/usr|g' $_wrapper_source
54
sed -i 's|/opt|$srcdir/opt|g' $_wrapper_source
55
sed -i 's|/model/Brother|/model|g' $_wrapper_source
56
sed -i 's|lpinfo|echo|g' $_wrapper_source
57
58
export srcdir="${srcdir}"
59
./$_wrapper_source
60
61
sed -i 's|$srcdir||' "${srcdir}"/usr/lib/cups/filter/*lpdwrapper*
62
sed -i "s|$srcdir||" "${srcdir}"/usr/lib/cups/filter/*lpdwrapper*
63
64
rm $_wrapper_source
65
fi
66
67
# /etc/printcap is managed by cups
68
rm `find "${srcdir}" -type f -name 'setupPrintcap*'`
69
70
# patch filter for PDF printing to avoid error:
71
# ERROR: typecheck
72
# OFFENDING COMMAND: resourcestatus
73
sed -i 's|pdf2ps|pdftocairo -q -ps|g' "${srcdir}"/opt/brother/Printers/mfcj5330dw/lpd/filter_mfcj5330dw
74
}
75
76
package() {
77
cp -R "${srcdir}"/usr "${pkgdir}"
78
cp -R "${srcdir}"/opt "${pkgdir}"
79
80
install -Dm644 cupswrapper-license.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/cupswrapper-licence.txt
81
install -Dm644 lpr-license.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/lpr-licence.txt
82
}
83
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |