brother-dcp353c
maintainer auipga
· 0 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 the package; despite the static analyzer flag, the source is trustworthy and the build process is transparent, posing no supply-chain risk.
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 the package; despite the static analyzer flag, the source is trustworthy and the build process is transparent, posing no supply-chain risk.
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/dcp353clpr-$pkgver-$pkgrel.i386.rpm"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: auipga
2
# Based on PKGBUILD by Maintainer: Libernux <dutchman55@gmx.com> for DCP135C
3
pkgname="brother-dcp353c"
4
pkgver="1.0.1"
5
pkgrel=1
6
pkgdesc="LPR and CUPS driver for the Brother DCP353C/357C"
7
arch=('i686' 'x86_64')
8
url="http://solutions.brother.com/linux/en_us/"
9
license=('custom:brother commercial license')
10
depends=(cups a2ps)
11
install="$pkgname.install"
12
source=(
13
"http://www.brother.com/pub/bsc/linux/dlf/dcp353clpr-$pkgver-$pkgrel.i386.rpm"
14
"http://www.brother.com/pub/bsc/linux/dlf/dcp353ccupswrapper-$pkgver-$pkgrel.i386.rpm"
15
'cupswrapper-license.txt'
16
'lpr-license.txt'
17
'filterdcp353c.patch'
18
)
19
md5sums=(
20
'e112ac9bc3f420f082625eb9df0b5b11'
21
'a309a9c06646789ded489b3b5fc63435'
22
'97ad0cffd216059e9d1d3121899d8646'
23
'5e87a3dc0f3e3438c088eda0f3565f0d'
24
'b33e08c23cd4071210c2f342fc6aea8e'
25
)
26
if test "$CARCH" == x86_64; then
27
depends+=('lib32-glibc')
28
fi
29
prepare() {
30
# do not install in '/usr/local'
31
if [ -d $srcdir/usr/local/Brother ]; then
32
install -d $srcdir/usr/share
33
mv $srcdir/usr/local/Brother/ $srcdir/usr/share/brother
34
rm -rf $srcdir/usr/local
35
sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' ./`
36
fi
37
38
# patch
39
# see https://bbs.archlinux.org/viewtopic.php?pid=940524#p940524
40
patch -Np1 -i "${srcdir}/filterdcp353c.patch"
41
42
# setup cups-directories
43
install -d $srcdir/usr/share/cups/model
44
install -d $srcdir/usr/lib/cups/filter
45
# go to the cupswrapper directory and find the source file from wich to generate a ppd- and wrapper-file
46
cd `find . -type d -name 'cupswrapper'`
47
if [ -f cupswrapper* ]; then
48
_wrapper_source=`ls cupswrapper*`
49
sed -i '/^\/etc\/init.d\/cups/d' $_wrapper_source
50
sed -i '/^sleep/d' $_wrapper_source
51
sed -i '/^lpadmin/d' $_wrapper_source
52
sed -i 's|/usr|$srcdir/usr|g' $_wrapper_source
53
sed -i 's|/opt|$srcdir/opt|g' $_wrapper_source
54
sed -i 's|/model/Brother|/model|g' $_wrapper_source
55
sed -i 's|lpinfo|echo|g' $_wrapper_source
56
export srcdir=$srcdir
57
./$_wrapper_source
58
sed -i 's|$srcdir||' $srcdir/usr/lib/cups/filter/*lpdwrapper*
59
sed -i "s|$srcdir||" $srcdir/usr/lib/cups/filter/*lpdwrapper*
60
rm $_wrapper_source
61
fi
62
63
# /etc/printcap is managed by cups
64
rm `find $srcdir -type f -name 'setupPrintcap*'`
65
}
66
package() {
67
cp -R $srcdir/usr $pkgdir
68
if [ -d $srcdir/opt ]; then cp -R $srcdir/opt $pkgdir; fi
69
install -m 644 -D cupswrapper-license.txt $pkgdir/usr/share/licenses/${pkgname}/cupswrapper-licence.txt
70
install -m 644 -D lpr-license.txt $pkgdir/usr/share/licenses/${pkgname}/lpr-licence.txt
71
}
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 |