brother-hl3140cw
maintainer ggilestro
· 5 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads official Brother driver RPMs from brother.com, a legitimate vendor domain, for building a CUPS driver; despite the static analyzer flag for a non-whitelisted host, the source is trustworthy and the build process is transparent with no code execution from ambiguous origins.
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 brother.com, a legitimate vendor domain, for building a CUPS driver; despite the static analyzer flag for a non-whitelisted host, the source is trustworthy and the build process is transparent with no code execution from ambiguous origins.
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:12
"http://www.brother.com/pub/bsc/linux/dlf/hl3140cwlpr-$pkgver-1.i386.rpm"
PKGBUILD
1 offending line(s) highlighted
1
# Creator: giorgio gilestro <giorgio@gilest.ro>
2
pkgname="brother-hl3140cw"
3
pkgver="1.1.2"
4
pkgrel=2
5
pkgdesc="LPR and CUPS driver for the Brother HL3040cn"
6
arch=('i686' 'x86_64')
7
url="http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=hl3140cw_us_eu&os=127"
8
license=('custom:brother commercial license')
9
depends=('cups' 'psutils' 'lib32-glibc')
10
install='brother-hl3140cw.install'
11
source=(
12
"http://www.brother.com/pub/bsc/linux/dlf/hl3140cwlpr-$pkgver-1.i386.rpm"
13
"http://www.brother.com/pub/bsc/linux/dlf/hl3140cwcupswrapper-$pkgver-1.i386.rpm"
14
'cupswrapper-license.txt'
15
'lpr-license.txt'
16
)
17
md5sums=('8cfe8c8802064ff38271d2f35a4a0017'
18
'6c4e19f17ca87be04de390cb1490ece8'
19
'9181a7fe7ef4b57d92ac04800c4f5b64'
20
'd319bab2a7842f20fd03fe87bedf4eed')
21
if test "$CARCH" == x86_64; then
22
depends+=('lib32-glibc')
23
fi
24
prepare() {
25
# do not install in '/usr/local'
26
if [ -d $srcdir/usr/local/Brother ]; then
27
install -d $srcdir/usr/share
28
mv $srcdir/usr/local/Brother/ $srcdir/usr/share/brother
29
rm -rf $srcdir/usr/local
30
sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' ./`
31
fi
32
# setup cups-directories
33
install -d $srcdir/usr/share/cups/model
34
install -d $srcdir/usr/lib/cups/filter
35
# go to the cupswrapper directory and find the source file from wich to generate a ppd- and wrapper-file
36
cd `find . -type d -name 'cupswrapper'`
37
if [ -f cupswrapper* ]; then
38
_wrapper_source=`ls cupswrapper*`
39
sed -i '/^\/etc\/init.d\/cups/d' $_wrapper_source
40
sed -i '/^sleep/d' $_wrapper_source
41
sed -i '/^lpadmin/d' $_wrapper_source
42
sed -i 's|/usr|$srcdir/usr|g' $_wrapper_source
43
sed -i 's|/opt|$srcdir/opt|g' $_wrapper_source
44
sed -i 's|/model/Brother|/model|g' $_wrapper_source
45
sed -i 's|lpinfo|echo|g' $_wrapper_source
46
export srcdir=$srcdir
47
./$_wrapper_source
48
sed -i 's|$srcdir||' $srcdir/usr/lib/cups/filter/*lpdwrapper*
49
sed -i "s|$srcdir||" $srcdir/usr/lib/cups/filter/*lpdwrapper*
50
rm $_wrapper_source
51
fi
52
# /etc/printcap is managed by cups
53
rm `find $srcdir -type f -name 'setupPrintcap*'`
54
}
55
package() {
56
cp -R $srcdir/usr $pkgdir
57
if [ -d $srcdir/opt ]; then cp -R $srcdir/opt $pkgdir; fi
58
install -m 644 -D cupswrapper-license.txt $pkgdir/usr/share/licenses/${pkgname}/cupswrapper-licence.txt
59
install -m 644 -D lpr-license.txt $pkgdir/usr/share/licenses/${pkgname}/lpr-licence.txt
60
}
61
62
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 |