brother-mfc-l2740dw

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

The package downloads official Brother driver RPMs from download.brother.com, which is the vendor's legitimate distribution domain; despite the static analyzer flagging it as a non-standard host, this is a normal and expected source for proprietary drivers, and the files are not executed but unpacked and repackaged for Arch.

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 download.brother.com, which is the vendor's legitimate distribution domain; despite the static analyzer flagging it as a non-standard host, this is a normal and expected source for proprietary drivers, and the files are not executed but unpacked and repackaged for Arch.

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://download.brother.com/welcome/dlf101729/mfcl2740dwlpr-$pkgver-$pkgrel.i386.rpm"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: David Waldeck < mail at david-waldeck dot de
2pkgname="brother-mfc-l2740dw"
3pkgver="3.2.0"
4pkgrel=1
5pkgdesc="LPR and CUPS driver for the Brother MFC-l2740DW"
6url="http://solutions.brother.com/linux/en_us/"
7arch=("i686" "x86_64")
8license=('custom:brother commercial license')
9depends=("cups")
10depends_x86_64=('lib32-glibc')
11install="$pkgname.install"
12source=(
13 "http://download.brother.com/welcome/dlf101729/mfcl2740dwlpr-$pkgver-$pkgrel.i386.rpm"
14 "http://download.brother.com/welcome/dlf101728/mfcl2740dwcupswrapper-$pkgver-$pkgrel.i386.rpm"
15)
16md5sums=(
17 'e4e27264d8255274c6ad8af1e65588b7'
18 '399fde3fff6c41338b0fe84517f7148b'
19)
20prepare() {
21 # do not install in '/usr/local'
22 if [ -d $srcdir/usr/local/Brother ]; then
23 install -dm755 "$srcdir/usr/share"
24 mv "$srcdir/usr/local/Brother/" "$srcdir/usr/share/brother"
25 rm -rf "$srcdir/usr/local"
26 sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' ./`
27 fi
28
29 # create cups-directories
30 install -dm755 "$srcdir/usr/share/cups/model"
31 install -dm755 "$srcdir/usr/lib/cups/filter"
32
33 # copy ppd and filter file to their destination dirs
34 cd `find . -type d -name 'cupswrapper'`
35 cp *lpdwrapper* "$srcdir/usr/lib/cups/filter/"
36 cp *.ppd "$srcdir/usr/share/cups/model/"
37
38 # set the basedir to an absolute path in the perl-lpdwrapper-script
39 # the relative path,generated on the basis of the caller, does not work in this case
40 cd "$srcdir"
41 # get absolute printer path
42 _baseDir="\"/$(find opt -maxdepth 3 -depth -print -quit -type d)\""
43 # replace the dynamic basedir var with the absolute path
44 sed -i "s|\`readlink\ \$0\`|$_baseDir|" $srcdir/usr/lib/cups/filter/*lpdwrapper*
45
46 # /etc/printcap is managed by cups
47 rm "$(find $srcdir -type f -name 'setupPrintcap*')"
48 }
49
50 package() {
51 cp -R "$srcdir/usr" "$pkgdir"
52 cp -R "$srcdir/opt" "$pkgdir"
53 }
54

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