cnijfilter-mg6200
maintainer Lopo
· 7 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a source tarball from Canon's official gdlp01.c-wss.com domain, which is Canon's Global Download Portal; despite the non-standard hostname, this is Canon's legitimate distribution infrastructure, and the source is verified via a matching sha512sum, making the build of printer driver components safe and expected.
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 Canon's official gdlp01.c-wss.com domain, which is Canon's Global Download Portal; despite the non-standard hostname, this is Canon's legitimate distribution infrastructure, and the source is verified via a matching sha512sum, making the build of printer driver components safe and expected.
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=("http://gdlp01.c-wss.com/gds/8/0100003928/01/cnijfilter-source-${_pkgver}.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Pavol Hluchy (Lopo) <lopo at losys dot eu>
2
3
_model=mg6200
4
pkgname=cnijfilter-${_model}
5
pkgver=3.60
6
pkgrel=5
7
_pkgver=3.60-1
8
pkgdesc="Canon IJ Printer Driver (for ${_model} series)"
9
url="http://support-au.canon.com.au/contents/AU/EN/0100392802.html"
10
arch=('x86_64')
11
license=('custom')
12
depends=('libpng>=1.2.8' 'libtiff' 'gtk2' 'popt')
13
makedepends=('findutils' 'gawk')
14
source=("http://gdlp01.c-wss.com/gds/8/0100003928/01/cnijfilter-source-${_pkgver}.tar.gz"
15
'cups.patch'
16
'libpng15.patch'
17
'configures.patch'
18
'cups2.patch'
19
'sysctl.patch'
20
)
21
sha512sums=('69b5c0f3b6bc886d32937e710d244b1cba1644bda025280703ec231d2243c2e0ff6a321b9bc68f8cc43ae596559619aa0f587a7b6d9b0d3b583b22f6faaac2d7'
22
'e35e4822095bf06b000b8349a70ab15951caebc95b1e5a098d2833be8660fe9eafdcd4481819b2306b34edd1351ec900c42416f95d74d51a7ae45c75f7ad7dcb'
23
'8465275f74e0aa3a2c886dbbc64a2d53bbf62c46496a7de01e7783a9e061df5c5a7b579f39e9dcfc1ff6435603f7caa1a05fdb99cc7242776111182852b04480'
24
'f03099b22d41122f318c31ae1ae663a19a784e81453efa2a8b1ea9b726f17f3add840c006db65657588f4a87a517fcef0bff2a79c1305a5ba0ab52f5d0b96f75'
25
'de84cc410e2e062f8308b6e438c97da2cf5e9342a909529d82757757df5098f881e71789ff5a5eaec01fe25ab59a0beda31d2d5efd66cfea2f43f198083c1b6f'
26
'cd4e829d79f8a76b37a35b03b1e046c8dc84e0570b8159034f2be49d25ce7fe4a920f926f30218d829d2cff7b8123653fa978032bef85cfeb22be983af9a06fd'
27
)
28
29
30
prepare() {
31
cd "${srcdir}/cnijfilter-source-${_pkgver}"
32
patch -p1 < "${startdir}/cups.patch"
33
patch -p1 < "${startdir}/cups2.patch"
34
patch -p1 < "${startdir}/libpng15.patch"
35
patch -p1 < "${startdir}/configures.patch"
36
patch -p1 < "${startdir}/sysctl.patch"
37
}
38
39
build() {
40
## Compile and install ${_model} stuff
41
# ppd file
42
cd "${srcdir}/cnijfilter-source-${_pkgver}/ppd"
43
./autogen.sh --prefix=/usr --enable-ppdpath=/usr/share/cups/model --program-suffix=${_model}
44
make clean || return 1
45
make || return 1
46
# cnijfilter
47
cd "${srcdir}/cnijfilter-source-${_pkgver}/cnijfilter"
48
./autogen.sh --prefix=/usr --enable-libpath=/usr/lib/bjlib --enable-binpath=/usr/bin --program-suffix=${_model}
49
make clean || return 1
50
make || return 1
51
# printui
52
cd "${srcdir}/cnijfilter-source-${_pkgver}/printui"
53
./autogen.sh --prefix=/usr --datadir=/usr/share --program-suffix=${_model}
54
make || true # Needed to avoid errors while building locales
55
make clean || return 1
56
make || return 1
57
# lgmon
58
cd "${srcdir}/cnijfilter-source-${_pkgver}/lgmon"
59
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin --program-suffix=${_model}
60
make clean || return 1
61
make || return 1
62
# cngpijmon
63
cd "${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon"
64
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin --datadir=/usr/share --program-suffix=${_model}
65
make clean || return 1
66
make || return 1
67
68
## Compile common stuff
69
# libs
70
cd "${srcdir}/cnijfilter-source-${_pkgver}/libs"
71
./autogen.sh --prefix=/usr
72
make clean || return 1
73
make || return 1
74
# cngpij, pstocanonij, backend
75
for _c in cngpij pstocanonij backend; do
76
cd "${srcdir}/cnijfilter-source-${_pkgver}/${_c}"
77
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin
78
make clean || return 1
79
make || return 1
80
done
81
# backendnet
82
cd "${srcdir}/cnijfilter-source-${_pkgver}/backendnet"
83
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin LDFLAGS="-L../../com/libs_bin64"
84
make clean || return 1
85
make || return 1
86
# sm sub process
87
cd "${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon/cnijnpr"
88
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin LIBS="-ldl"
89
make clean || return 1
90
make || return 1
91
}
92
93
package() {
94
_modelid=`find ${srcdir}/cnijfilter-source-${_pkgver} -type f -name cif${_model}.conf -path '*[\d]*' -printf '%P' \
95
| gawk -F/ '{print $1}'`
96
[ -n "${_modelid}" ] || return 1
97
98
for dir in ppd cnijfilter printui lgmon cngpijmon libs cngpij pstocanonij backend backendnet cngpijmon/cnijnpr; do
99
cd "${srcdir}/cnijfilter-source-${_pkgver}/${dir}"
100
make install DESTDIR="${pkgdir}" || return 1
101
done
102
103
# Install ${_model} libraries
104
install -d ${pkgdir}/usr/lib/
105
install -m 755 ${srcdir}/cnijfilter-source-${_pkgver}/${_modelid}/libs_bin64/*so.* ${pkgdir}/usr/lib/
106
install -d ${pkgdir}/usr/lib/bjlib/
107
install -m 644 ${srcdir}/cnijfilter-source-${_pkgver}/${_modelid}/database/* ${pkgdir}/usr/lib/bjlib/
108
# Install common libraries
109
install -m 755 ${srcdir}/cnijfilter-source-${_pkgver}/com/libs_bin64/*so.* ${pkgdir}/usr/lib/
110
install -m 666 ${srcdir}/cnijfilter-source-${_pkgver}/com/ini/* ${pkgdir}/usr/lib/bjlib/
111
# Make symbolic links for libraries
112
cd ${pkgdir}/usr/lib/
113
ln -s libcnnet.so.*.*.* libcnnet.so
114
for _l in cmcm cnclapi cnclbjcmd cnclui ess; do
115
ln -s libcnbp${_l}${_modelid}.so.*.*.* libcnbp${_l}${_modelid}.so
116
done
117
ln -s libcnbpess${_modelid}.so.*.*.* libcnbpo${_modelid}.so
118
119
# Install license file
120
cd ${srcdir}/cnijfilter-source-${_pkgver}
121
install -D LICENSE-cnijfilter-${pkgver}EN.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cnijfilter-${pkgver}EN.txt
122
}
123
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 |