brother-ql600
maintainer johnhamelink
· 2 votes
· scanned 2026-08-03 00:08:14.047287
LOW
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
4
pkgname=brother-ql600
5
pkgver=3.1.5r0
6
pkgrel=1
7
pkgdesc='LPR and CUPS driver for Brother QL-600 label printer'
8
url='https://support.brother.com'
9
arch=('i686' 'x86_64')
10
license=('custom')
11
depends=('cups')
12
install="${pkgname}.install"
13
source=("https://download.brother.com/welcome/dlfp100719/ql600pdrv-${pkgver/r/-}.i386.rpm")
14
sha256sums=('970b8a30773356825213138a7b4aaf6fa7b107e729ebbff1a36f0dac66fe8b89')
15
16
prepare()
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
75
package()
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) | 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 |