scangearmp-mg8100series
maintainer sourcesmith
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a source tarball from an official Canon host for building the driver, which is a normal AUR practice; the non-whitelisted domain is Canon's European file server, plausibly official, and the source is checksummed and compiled locally.
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 source tarball from an official Canon host for building the driver, which is a normal AUR practice; the non-whitelisted domain is Canon's European file server, plausibly official, and the source is checksummed and compiled locally.
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:21
source=("http://files.canon-europe.com/files/soft40247/Software/scangearmp-source-${_pkgver}.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: sourcesmith <sourcesmith 'at' homeport 'dot' org.uk>
2
# Original Contributors: Pavol Hluchy (Lopo) <lopo at losys dot eu>
3
# Sonic-Y3k <sonic.y3k@googlemail.com>
4
# Giancarlo Bianchi <giancarlobianchi76@gmail.com>
5
# Fortunato Ventre (voRia) <vorione@gmail.com>
6
# Custom Processing Unlimited (CPUnltd) <CPUnltd 'at' gmail 'dot' com>
7
_model=mg8100
8
pkgname=scangearmp-${_model}series
9
pkgver=1.60
10
pkgrel=1
11
_pkgver=1.60-1
12
pkgdesc="Canon IJ Scanner Driver (for ${_model} series)"
13
url="http://www.canon.co.uk/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg8150.aspx?type=drivers'&'os=LINUX"
14
arch=('i686' 'x86_64')
15
license=('custom')
16
depends=('sane' 'gtk2' 'libpng')
17
makedepends=('autoconf>=2.13' 'automake>=1.6' 'findutils' 'gawk' 'gimp>=2.0')
18
optdepends=('xsane')
19
conflicts=('scangearmp-common')
20
install=scangearmp-mg8100series.install
21
source=("http://files.canon-europe.com/files/soft40247/Software/scangearmp-source-${_pkgver}.tar.gz"
22
'build-fixes.patch'
23
'scanfile.patch'
24
'rules.patch')
25
sha256sums=('fab6b764409f17a674ba31e45a515353cdf027562b2daee96c316bb86d6d6340'
26
'eeec0bbba93e054842bf1375502192c368cf92e86b6bcee2d114adeb14bbf8b3'
27
'd1b16bab6ac1f235fb42b14fff9e78a1bd395ddda56d21a8f13aabb0c4e8e83c'
28
'55a40593e79e85edc2365440097971f7b61748a3aa3d12a8365cea093da6af23')
29
30
if [ "$CARCH" == "x86_64" ]; then
31
_libdir=libs_bin64
32
else
33
_libdir=libs_bin32
34
fi
35
36
prepare() {
37
## Patches
38
msg "Applying patches"
39
patch -p0 < build-fixes.patch
40
patch -p0 < scanfile.patch
41
patch -p0 < rules.patch
42
}
43
44
build() {
45
CPPFLAGS="${CPPFLAGS} -O2"
46
47
## Compile ${_model} stuff
48
cd ${srcdir}/scangearmp-source-${_pkgver}/scangearmp
49
./autogen.sh --prefix=/usr LDFLAGS="-L`pwd`/../com/${_libdir}" LIBS=-lm
50
# Force the use of system's libtool
51
rm libtool
52
ln -s `which libtool` .
53
make
54
}
55
56
package() {
57
# get id of printer model
58
_cmd=$(grep ^PRINTER_DEPEND_PKG=scangearmp-${_model}- ${srcdir}/scangearmp-source-${_pkgver}/debian/scangearmp-${_model}series.postrm \
59
| gawk -F- '{print $3}')
60
_id=${_cmd}
61
echo ${pkgdir}
62
63
64
cd ${srcdir}/scangearmp-source-${_pkgver}/scangearmp
65
make install DESTDIR="${pkgdir}"
66
67
# Install SANE configuration file
68
install -d -m 0755 ${pkgdir}/etc/sane.d/
69
install -m 0644 ${srcdir}/scangearmp-source-${_pkgver}/scangearmp/backend/canon_mfp.conf ${pkgdir}/etc/sane.d/canon_mfp.conf
70
71
# Install ${_model} series specific libraries
72
cp -P ${srcdir}/scangearmp-source-${_pkgver}/${_id}/${_libdir}/*so* ${pkgdir}/usr/lib/
73
74
# Install common libraries
75
cp -P ${srcdir}/scangearmp-source-${_pkgver}/com/${_libdir}/*so* ${pkgdir}/usr/lib/
76
77
# Make scangearmp usable from gimp
78
install -d -m 0755 ${pkgdir}/usr/lib/gimp/2.0/plug-ins/
79
ln -s /usr/bin/scangearmp ${pkgdir}/usr/lib/gimp/2.0/plug-ins/
80
81
# Install .tbl and .dat files for ${_model} series
82
install -d -m 0755 ${pkgdir}/usr/lib/bjlib
83
install -D -m 0644 ${srcdir}/scangearmp-source-${_pkgver}/${_id}/cnc*.tbl ${pkgdir}/usr/lib/bjlib/
84
install -D -m 0644 ${srcdir}/scangearmp-source-${_pkgver}/${_id}/CNC*.DAT ${pkgdir}/usr/lib/bjlib/
85
86
# Install udev rules
87
install -D -m 0644 ${srcdir}/scangearmp-source-${_pkgver}/scangearmp/etc/80-canon_mfp.rules ${pkgdir}/etc/udev/rules.d/80-canon_mfp.rules
88
89
# Install .ini file
90
install -D -m 0644 ${srcdir}/scangearmp-source-${_pkgver}/com/ini/canon_mfp_net.ini ${pkgdir}/usr/lib/bjlib/
91
92
# Install license file
93
cd ${srcdir}/scangearmp-source-${_pkgver}
94
install -d -m 0755 ${pkgdir}/usr/share/licenses/${pkgname}/
95
install -m 0644 LICENSE-* ${pkgdir}/usr/share/licenses/${pkgname}/
96
}
97
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 |