brother-ql1100
maintainer kbabioch
· 2 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a driver from Brother's official download domain, which is a legitimate source for proprietary printer drivers; the RPM is unpacked and installed locally, which is standard practice for such drivers, and no untrusted or executable payloads are fetched from non-official hosts.
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 driver from Brother's official download domain, which is a legitimate source for proprietary printer drivers; the RPM is unpacked and installed locally, which is standard practice for such drivers, and no untrusted or executable payloads are fetched from non-official hosts.
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:16
source=("http://download.brother.com/welcome/dlfp100574/ql1100pdrv-${pkgver/r/-}.i386.rpm"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Karol Babioch <karol@babioch.de>
2
# Conributer: Laurenz Kamp <laurenz.kamp@gmx.de>
3
4
pkgname='brother-ql1100'
5
pkgver=2.1.4r0
6
pkgrel=2
7
pkgdesc='LPR and CUPS driver for Brother QL-1100 label printer'
8
url='http://solutions.brother.com/linux/en_us/'
9
arch=('i686' 'x86_64')
10
license=('custom')
11
depends='cups'
12
if [ "$CARCH" = 'x86_64' ]; then
13
depends+=('lib32-glibc')
14
fi
15
install="$pkgname.install"
16
source=("http://download.brother.com/welcome/dlfp100574/ql1100pdrv-${pkgver/r/-}.i386.rpm"
17
'LICENSE')
18
sha256sums=('4523ee178173b11f9a66bd31a1ef03ecf2d933a0900f3dfc2fc1ffab07fffd26'
19
'cdd1955a9996bc246ba54e84f0a5ccbfdf6623962b668188762389aa79ef9811')
20
21
prepare()
22
{
23
# Create necessary CUPS directories
24
install -d "${srcdir}/usr/share/cups/model"
25
install -d "${srcdir}/usr/lib/cups/filter"
26
install -d "${srcdir}/usr/bin"
27
28
# Locate cupswrapper script
29
_cupswrapper=$(find "${srcdir}/opt/brother/PTouch/" -type f -name 'cupswrapper*')
30
echo "cupswrapper: ${_cupswrapper}"
31
32
# Locate lpdwrapper script / symlink
33
_lpdwrapper=$(find "${srcdir}/opt/brother/PTouch/" -name "brother_lpdwrapper_*")
34
echo "lpdwrapper: ${_lpdwrapper}"
35
36
# Basename of lpdwrapper script
37
_lpdwrapper_basename="$(basename "${_lpdwrapper}")"
38
echo "lpdwrapper_basename: ${_lpdwrapper_basename}"
39
40
# Get model name of driver based on name from lpdwrapper script (e.g. brother_lpdwrapper_ql720nw -> ql720nw)
41
_model="${_lpdwrapper_basename##brother_lpdwrapper_}"
42
echo "model: ${_model}"
43
44
# Patch cupswrapper script
45
sed -i '/^sleep/d' ${_cupswrapper}
46
sed -i '/^echo lpadmin/d' ${_cupswrapper}
47
sed -i '/^lpadmin/d' ${_cupswrapper}
48
sed -i "s|/usr|${srcdir}/usr|g" ${_cupswrapper}
49
sed -i "s|/opt|${srcdir}/opt|g" ${_cupswrapper}
50
sed -i "s|/model/Brother|/model|g" ${_cupswrapper}
51
sed -i 's|lpinfo|echo|g' ${_cupswrapper}
52
53
# Remove potential symlink (from previous runs)
54
rm -f "${srcdir}/usr/lib/cups/filter/${_lpdwrapper_basename}"
55
56
# Invoke cupswrapper script
57
export srcdir=${srcdir}
58
${_cupswrapper}
59
60
# Patch resulting filter
61
sed -i "s|${srcdir}||" "${_lpdwrapper}"
62
63
# Remove unneeded script (i.e. /etc/printcap is managed by CUPS)
64
rm $(find "${srcdir}" -type f -name 'setupPrintcap*')
65
66
# Make symlink absolute
67
rm "${srcdir}/usr/lib/cups/filter/${_lpdwrapper_basename}"
68
ln -s "/opt/brother/PTouch/${_model}/cupswrapper/${_lpdwrapper_basename}" "${srcdir}/usr/lib/cups/filter/${_lpdwrapper_basename}"
69
}
70
71
package()
72
{
73
# Install actual content
74
cp -R "${srcdir}/usr" "${pkgdir}"
75
cp -R "${srcdir}/opt" "${pkgdir}"
76
77
# Set some file ownerships and permissions
78
# infdir, e.g. /opt/brother/PTouch/ql720nw/inf/
79
_infdir=$(find "${pkgdir}/opt/brother/PTouch/" -type d -name 'inf')
80
chown root:lp ${_infdir}
81
chmod 775 ${_infdir}
82
# rcfile, e.g. /opt/brother/PTouch/ql720nw/inf/brql720nwrc
83
_rcfile=$(find "${pkgdir}/opt/brother/PTouch/" -type f -name '*rc')
84
chown daemon:lp ${_rcfile}
85
chmod 664 ${_rcfile}
86
87
# Handle licenses
88
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
89
find "${pkgdir}" -type f -name 'LICENSE*.txt' -exec mv -t "${pkgdir}/usr/share/licenses/${pkgname}" {} +
90
}
91
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 |