brother-hl2140

maintainer severach · 16 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 driver package; despite the static analyzer flag for a non-standard host, the source is trustworthy and the build process is transparent and typical for AUR printer drivers.

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 driver package; despite the static analyzer flag for a non-standard host, the source is trustworthy and the build process is transparent and typical for AUR printer drivers.

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 "http://www.brother.com/pub/bsc/linux/dlf/brhl2140lpr-${pkgver//_/-}.i386.rpm"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Facundo Tuesca <facutuesca at gmail dot com>
2pkgname="brother-hl2140"
3pkgver="2.0.2_1"
4pkgrel=4
5pkgdesc="LPR and CUPS driver for the Brother HL2140"
6arch=('i686' 'x86_64')
7url="http://solutions.brother.com/linux/en_us/"
8license=('custom:brother commercial license')
9depends=('cups'
10 'ghostscript')
11install='brother-hl2140.install'
12source=(
13 "http://www.brother.com/pub/bsc/linux/dlf/brhl2140lpr-${pkgver//_/-}.i386.rpm"
14 "http://www.brother.com/pub/bsc/linux/dlf/cupswrapperHL2140-${pkgver//_/-}.i386.rpm"
15 'cupswrapper-license.txt'
16 'lpr-license.txt'
17)
18md5sums=('0c4bbdc943c987c101266c832d6c8b7a'
19 '931035c9b7a8e7ee667efefba4bba168'
20 '97ad0cffd216059e9d1d3121899d8646'
21 '5e87a3dc0f3e3438c088eda0f3565f0d')
22if test "$CARCH" == x86_64; then
23 depends+=('lib32-glibc')
24fi
25prepare() {
26# do not install in '/usr/local'
27 if [ -d $srcdir/usr/local/Brother ]; then
28 install -d $srcdir/usr/share
29 mv $srcdir/usr/local/Brother/ $srcdir/usr/share/brother
30 rm -rf $srcdir/usr/local
31 sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' ./`
32 fi
33# setup cups-directories
34 install -d $srcdir/usr/share/cups/model
35 install -d $srcdir/usr/lib/cups/filter
36# go to the cupswrapper directory and find the source file from wich to generate a ppd- and wrapper-file
37 cd `find . -type d -name 'cupswrapper'`
38 if [ -f cupswrapper* ]; then
39 _wrapper_source=`ls cupswrapper*`
40 sed -i '/^\/etc\/init.d\/cups/d' $_wrapper_source
41 sed -i '/^sleep/d' $_wrapper_source
42 sed -i '/^lpadmin/d' $_wrapper_source
43 sed -i 's|/usr|$srcdir/usr|g' $_wrapper_source
44 sed -i 's|/opt|$srcdir/opt|g' $_wrapper_source
45 sed -i 's|/model/Brother|/model|g' $_wrapper_source
46 sed -i 's|lpinfo|echo|g' $_wrapper_source
47 export srcdir=$srcdir
48 ./$_wrapper_source
49 sed -i 's|$srcdir||' $srcdir/usr/lib/cups/filter/*lpdwrapper*
50 sed -i "s|$srcdir||" $srcdir/usr/lib/cups/filter/*lpdwrapper*
51 rm $_wrapper_source
52 fi
53# /etc/printcap is managed by cups
54 rm `find $srcdir -type f -name 'setupPrintcap*'`
55}
56package() {
57 cp -R $srcdir/usr $pkgdir
58 if [ -d $srcdir/opt ]; then cp -R $srcdir/opt $pkgdir; fi
59 install -m 644 -D cupswrapper-license.txt $pkgdir/usr/share/licenses/${pkgname}/cupswrapper-licence.txt
60 install -m 644 -D lpr-license.txt $pkgdir/usr/share/licenses/${pkgname}/lpr-licence.txt
61}
62

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion