brother-ql600

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

The package downloads a Brother driver RPM from an official brother.com subdomain, which is a legitimate source for the software; the non-whitelisted host is part of the vendor's infrastructure, and the build process unpacks and repackages the official driver without introducing untrusted remote code 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 a Brother driver RPM from an official brother.com subdomain, which is a legitimate source for the software; the non-whitelisted host is part of the vendor's infrastructure, and the build process unpacks and repackages the official driver without introducing untrusted remote code 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:13 source=("https://download.brother.com/welcome/dlfp100719/ql600pdrv-${pkgver/r/-}.i386.rpm")

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: John Hamelink <me@johnhame.link>
2# Contributor: Karol Babioch <karol@babioch.de>
3
4pkgname=brother-ql600
5pkgver=3.1.5r0
6pkgrel=1
7pkgdesc='LPR and CUPS driver for Brother QL-600 label printer'
8url='https://support.brother.com'
9arch=('i686' 'x86_64')
10license=('custom')
11depends=('cups')
12install="${pkgname}.install"
13source=("https://download.brother.com/welcome/dlfp100719/ql600pdrv-${pkgver/r/-}.i386.rpm")
14sha256sums=('970b8a30773356825213138a7b4aaf6fa7b107e729ebbff1a36f0dac66fe8b89')
15
16prepare()
17{
18 # Create necessary CUPS directories
19 install -d "${srcdir}/usr/share/cups/model"
20 install -d "${srcdir}/usr/lib/cups/filter"
21 install -d "${srcdir}/usr/bin"
22
23 # Locate cupswrapper script
24 _cupswrapper=$(find "${srcdir}/opt/brother/PTouch/" -type f -name 'cupswrapper*')
25 echo "cupswrapper: ${_cupswrapper}"
26
27 # Locate lpdwrapper script / symlink
28 _lpdwrapper=$(find "${srcdir}/opt/brother/PTouch/" -name "brother_lpdwrapper_*")
29 echo "lpdwrapper: ${_lpdwrapper}"
30
31 # Basename of lpdwrapper script
32 _lpdwrapper_basename="$(basename "${_lpdwrapper}")"
33 echo "lpdwrapper_basename: ${_lpdwrapper_basename}"
34
35 # Get model name of driver based on name from lpdwrapper script (e.g. brother_lpdwrapper_ql720nw -> ql720nw)
36 _model="${_lpdwrapper_basename##brother_lpdwrapper_}"
37 echo "model: ${_model}"
38
39 # Patch cupswrapper script
40 sed -i '/^sleep/d' ${_cupswrapper}
41 sed -i '/^echo lpadmin/d' ${_cupswrapper}
42 sed -i '/^lpadmin/d' ${_cupswrapper}
43 sed -i "s|/usr|${srcdir}/usr|g" ${_cupswrapper}
44 sed -i "s|/opt|${srcdir}/opt|g" ${_cupswrapper}
45 sed -i "s|/model/Brother|/model|g" ${_cupswrapper}
46 sed -i 's|lpinfo|echo|g' ${_cupswrapper}
47
48 # Remove potential symlink (from previous runs)
49 rm -f "${srcdir}/usr/lib/cups/filter/${_lpdwrapper_basename}"
50
51 # Invoke cupswrapper script
52 export srcdir=${srcdir}
53 ${_cupswrapper}
54
55 # Patch resulting filter
56 sed -i "s|${srcdir}||" "${_lpdwrapper}"
57
58 # Remove unneeded script (i.e. /etc/printcap is managed by CUPS)
59 rm $(find "${srcdir}" -type f -name 'setupPrintcap*')
60
61 # Make symlink absolute
62 rm "${srcdir}/usr/lib/cups/filter/${_lpdwrapper_basename}"
63 ln -s "/opt/brother/PTouch/${_model}/cupswrapper/${_lpdwrapper_basename}" "${srcdir}/usr/lib/cups/filter/${_lpdwrapper_basename}"
64
65 # Move arch-specific binaries into the correct locations
66 mv "${srcdir}/opt/brother/PTouch/${_model}/lpd/${CARCH}/brpapertoolcups" "${srcdir}/opt/brother/PTouch/${_model}/lpd"
67 mv "${srcdir}/opt/brother/PTouch/${_model}/lpd/${CARCH}/rastertobrpt1" "${srcdir}/opt/brother/PTouch/${_model}/lpd"
68 mv "${srcdir}/opt/brother/PTouch/${_model}/lpd/${CARCH}/brpapertoollpr_${_model}" "${srcdir}/usr/bin"
69 mv "${srcdir}/opt/brother/PTouch/${_model}/lpd/${CARCH}/brprintconfpt1_${_model}" "${srcdir}/usr/bin"
70
71 # Remove unneeded binaries / directories (for other architectures, etc.)
72 rm -r "${srcdir}/opt/brother/PTouch/${_model}/lpd/"{i686,x86_64}
73}
74
75package()
76{
77 # Install actual content
78 cp -R "${srcdir}/usr" "${pkgdir}"
79 cp -R "${srcdir}/opt" "${pkgdir}"
80
81 # Set some file ownerships and permissions
82 # infdir, e.g. /opt/brother/PTouch/ql720nw/inf/
83 _infdir=$(find "${pkgdir}/opt/brother/PTouch/" -type d -name 'inf')
84 chown root:lp ${_infdir}
85 chmod 775 ${_infdir}
86 # rcfile, e.g. /opt/brother/PTouch/ql720nw/inf/brql720nwrc
87 _rcfile=$(find "${pkgdir}/opt/brother/PTouch/" -type f -name '*rc')
88 chown daemon:lp ${_rcfile}
89 chmod 664 ${_rcfile}
90
91 # Handle licenses
92 install -d "${pkgdir}/usr/share/licenses/${pkgname}"
93 find "${pkgdir}" -type f -name 'LICENSE*.txt' -exec mv -t "${pkgdir}/usr/share/licenses/${pkgname}" {} +
94}
95

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