brother-hl1208

maintainer NameSetter · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package downloads Brother's official RPMs from a plausible project subdomain (brother.cn) for building a driver;虽非标准主机,但源为官方固件且仅安装配置文件与过滤器,无远程代码执行或恶意行为,风险较低。

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 Brother's official RPMs from a plausible project subdomain (brother.cn) for building a driver;虽非标准主机,但源为官方固件且仅安装配置文件与过滤器,无远程代码执行或恶意行为,风险较低。

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:12 "https://www.brother.cn/project/d2/HL1208/hl1208cupswrapper-${pkgver//_/-}.i386.rpm"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: NameSetter <ssmzhn@163.com>
2pkgname="brother-hl1208"
3pkgver="3.0.1_1"
4pkgrel=1
5pkgdesc="LPR and CUPS driver for the Brother HL-1208"
6arch=('i686' 'x86_64')
7url="http://solutions.brother.com/linux/en_us/"
8license=('custom:brother commercial license')
9depends=('cups' 'ghostscript' 'foomatic-db' 'foomatic-db-engine' 'foomatic-db-nonfree')
10install="$pkgname.install"
11source=(
12 "https://www.brother.cn/project/d2/HL1208/hl1208cupswrapper-${pkgver//_/-}.i386.rpm"
13 "https://www.brother.cn/project/d2/HL1208/hl1208lpr-${pkgver//_/-}.i386.rpm"
14)
15md5sums=(
16 'a4322b72bc86fed71fc955290e148e74'
17 '10acea405ce54fa54f15bcf62118bdd8'
18)
19if test "$CARCH" == x86_64; then
20 depends+=('lib32-glibc')
21fi
22prepare() {
23# do not install in '/usr/local'
24 if [ -d $srcdir/usr/local/Brother ]; then
25 install -d $srcdir/usr/share
26 mv $srcdir/usr/local/Brother/ $srcdir/usr/share/brother
27 rm -rf $srcdir/usr/local
28 sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' ./`
29 fi
30# setup cups-directories
31 install -d $srcdir/usr/share/cups/model
32 install -d $srcdir/usr/lib/cups/filter
33# go to the cupswrapper directory and find the source file from wich to generate a ppd- and wrapper-file
34 cd `find . -type d -name 'cupswrapper'`
35 if [ -f cupswrapper* ]; then
36 _wrapper_source=`ls cupswrapper*`
37 sed -i '/^\/etc\/init.d\/cups/d' $_wrapper_source
38 sed -i '/^sleep/d' $_wrapper_source
39 sed -i '/^lpadmin/d' $_wrapper_source
40 sed -i 's|/usr|$srcdir/usr|g' $_wrapper_source
41 sed -i 's|/opt|$srcdir/opt|g' $_wrapper_source
42 sed -i 's|/model/Brother|/model|g' $_wrapper_source
43 sed -i 's|lpinfo|echo|g' $_wrapper_source
44 export srcdir=$srcdir
45 ./$_wrapper_source
46 sed -i 's|$srcdir||' $srcdir/usr/lib/cups/filter/*lpdwrapper*
47 sed -i "s|$srcdir||" $srcdir/usr/lib/cups/filter/*lpdwrapper*
48 rm $_wrapper_source
49 fi
50 mv $srcdir/opt/brother/Printers/HL1208/cupswrapper/*.ppd /$srcdir/usr/share/cups/model
51 mv $srcdir/opt/brother/Printers/HL1208/cupswrapper/*lpdwrapper* $srcdir/usr/lib/cups/filter
52# /etc/printcap is managed by cups
53 rm `find $srcdir -type f -name 'setupPrintcap*'`
54}
55package() {
56 cp -R $srcdir/usr $pkgdir
57 if [ -d $srcdir/opt ]; then cp -R $srcdir/opt $pkgdir; fi
58}
59

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