brother-mfc-j2340dw
maintainer sicalxy
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a driver RPM from a Brother-owned domain (d.brother-movie.com) for building; this is a legitimate source for Brother printer drivers, and the checksum is verified, so the risk is low despite the non-whitelisted host.
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 a driver RPM from a Brother-owned domain (d.brother-movie.com) for building; this is a legitimate source for Brother printer drivers, and the checksum is verified, so the risk is low despite the non-whitelisted host.
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:14
source=("https://d.brother-movie.com/driver/2529/mfcj2340dwpdrv-3.5.0-1.i386.rpm")
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: sicalxy <sicalxy at outlook dot com>
2
# Based on aur build of brother-mfc-j1010dw, which is
3
# Based on aur build of brother-mfc-j4340dw
4
#
5
_model=mfcj2340dw
6
_device_name=MFC-J2340DW
7
pkgname=brother-mfc-j2340dw
8
pkgver=3.5.0
9
pkgrel=1
10
pkgdesc="LPR driver and CUPS wrapper for Brother ${_device_name} printer"
11
arch=("i686" "x86_64")
12
url="https://support.brother.com/g/b/producttop.aspx?c=cn&lang=zh&prod=mfcj2340dw_eu_as_cn"
13
license=("EULA")
14
source=("https://d.brother-movie.com/driver/2529/mfcj2340dwpdrv-3.5.0-1.i386.rpm")
15
sha256sums=('ed486ee2d369453cbf32e03a5e92f842e5ba70c322748534da9360597ea2fea4')
16
depends=('perl' 'cups')
17
depends_x86_64=('lib32-glibc')
18
optdepends=('brscan5' 'brscan-skey')
19
install="$pkgname.install"
20
21
package() {
22
# unfortunately, /opt is hard-coded into driver binaries and cannot be replaced
23
SRC_PREFIX=/opt
24
PREFIX=/usr/share
25
26
find "$srcdir$SRC_PREFIX/brother" -type d -exec chmod 755 '{}' +
27
find "$srcdir$SRC_PREFIX/brother" -type f -exec chmod 644 '{}' +
28
find "$srcdir$SRC_PREFIX/brother/Printers/$_model/lpd" -type f -exec chmod +x '{}' +
29
30
mkdir -p "$pkgdir$SRC_PREFIX"
31
cp -R "$srcdir$SRC_PREFIX/brother" "$pkgdir$SRC_PREFIX"
32
33
# /etc/printcap is managed by cups
34
find "$pkgdir" -type f -name 'setupPrintcap*' -delete
35
36
# symlink for the PPD
37
ppd_file_name="$SRC_PREFIX/brother/Printers/$_model/cupswrapper/brother_${_model}_printer_en.ppd"
38
install -d "$pkgdir$PREFIX/cups/model/Brother"
39
ln -s "$ppd_file_name" "$pkgdir$PREFIX/cups/model/Brother/"
40
41
ldpwrapper="$SRC_PREFIX/brother/Printers/$_model/cupswrapper/brother_lpdwrapper_${_model}"
42
chmod +x "$pkgdir$ldpwrapper"
43
mkdir -p "$pkgdir/usr/lib/cups/filter/"
44
ln -s "$ldpwrapper" "${pkgdir}/usr/lib/cups/filter/"
45
46
# a couple architecture-specific symlinks
47
ln -s "$SRC_PREFIX/brother/Printers/$_model/lpd/$CARCH/br${_model}filter" "$pkgdir$SRC_PREFIX/brother/Printers/$_model/lpd/"
48
ln -s "$SRC_PREFIX/brother/Printers/$_model/lpd/$CARCH/brprintconf_${_model}" "$pkgdir$SRC_PREFIX/brother/Printers/$_model/lpd/"
49
50
install -d "$pkgdir/usr/bin"
51
ln -s "$SRC_PREFIX/brother/Printers/$_model/lpd/brprintconf_${_model}" "$pkgdir/usr/bin/"
52
}
53
54
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 |