brother-dcp7045n

maintainer lupylucke · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads official Brother driver RPMs from the vendor's own domain (brother.com), which is a legitimate source for proprietary drivers; the non-whitelisted host is the vendor's official site, and the files are not executed but unpacked and restructured for Arch Linux, posing no supply-chain risk beyond the inherent trust in the vendor.

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 90%): The package downloads official Brother driver RPMs from the vendor's own domain (brother.com), which is a legitimate source for proprietary drivers; the non-whitelisted host is the vendor's official site, and the files are not executed but unpacked and restructured for Arch Linux, posing no supply-chain risk beyond the inherent trust in the vendor.

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

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Simon Bachmann <simonbachmann at bluewin dot ch>
2# Contributor: Frederic Bezies <fredbezies at gmail dot com>
3# Contributor: Libernux <dutchman55@gmx.com>
4# Contributor: Roland Singer <roland@manjaro.org>
5pkgname=brother-dcp7045n
6pkgver=2.0.2
7pkgrel=1
8pkgdesc="LPR and CUPS driver for the Brother DCP7045N"
9arch=('i686' 'x86_64')
10url=http://solutions.brother.com/linux/en_us/
11license=('custom:brother commercial license')
12depends=('cups')
13install="$pkgname.install"
14#http://download.brother.com/welcome/dlf005623/brdcp7045nlpr-2.0.2-1.i386.rpm
15source=(
16 "http://www.brother.com/pub/bsc/linux/dlf/brdcp7045nlpr-$pkgver-1.i386.rpm"
17 "http://www.brother.com/pub/bsc/linux/dlf/cupswrapperDCP7045N-$pkgver-1.i386.rpm"
18 'cupswrapper-license.txt'
19 'lpr-license.txt'
20)
21
22md5sums=('327cab9fb283ca6035d47ed97206b621'
23 'a229936de021790162bd27008b5a9971'
24 '97ad0cffd216059e9d1d3121899d8646'
25 '5e87a3dc0f3e3438c088eda0f3565f0d')
26
27if test "$CARCH" == x86_64; then
28 depends+=('lib32-glibc')
29fi
30prepare() {
31# do not install in '/usr/local'
32 if [ -d $srcdir/usr/local/Brother ]; then
33 install -d $srcdir/usr/share
34 rm -rf $srcdir/usr/share/brother &> /dev/null
35 mv $srcdir/usr/local/Brother/ $srcdir/usr/share/brother
36 rm -rf $srcdir/usr/local
37 sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' ./`
38 fi
39# setup cups-directories
40 install -d $srcdir/usr/share/cups/model
41 install -d $srcdir/usr/lib/cups/filter
42# go to the cupswrapper directory and find the source file from wich to generate a ppd- and wrapper-file
43 cd `find . -type d -name 'cupswrapper'`
44 if [ -f cupswrapper* ]; then
45 _wrapper_source=`ls cupswrapper*`
46 sed -i '/^\/etc\/init.d\/cups/d' $_wrapper_source
47 sed -i '/^sleep/d' $_wrapper_source
48 sed -i '/^lpadmin/d' $_wrapper_source
49 sed -i 's|/usr|$srcdir/usr|g' $_wrapper_source
50 sed -i 's|/opt|$srcdir/opt|g' $_wrapper_source
51 sed -i 's|/model/Brother|/model|g' $_wrapper_source
52 sed -i 's|lpinfo|echo|g' $_wrapper_source
53 export srcdir=$srcdir
54 ./$_wrapper_source
55 sed -i 's|$srcdir||' $srcdir/usr/lib/cups/filter/*lpdwrapper*
56 sed -i "s|$srcdir||" $srcdir/usr/lib/cups/filter/*lpdwrapper*
57 rm $_wrapper_source
58 fi
59# /etc/printcap is managed by cups
60 rm `find $srcdir -type f -name 'setupPrintcap*'`
61}
62package() {
63 cp -R $srcdir/usr $pkgdir
64 if [ -d $srcdir/opt ]; then cp -R $srcdir/opt $pkgdir; fi
65 install -m 644 -D cupswrapper-license.txt $pkgdir/usr/share/licenses/${pkgname}/cupswrapper-licence.txt
66 install -m 644 -D lpr-license.txt $pkgdir/usr/share/licenses/${pkgname}/lpr-licence.txt
67 #
68 #Applying commands from archasaurusrex comment
69 #
70 chown daemon:lp $pkgdir/usr/share/brother/inf/brDCP7045Nrc
71}
72
73
74

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