cnijfilter-mg5200

maintainer mueslo · 0 votes · base cnijfilter-5200 · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The source is a Canon driver tarball from gdlp01.c-wss.com, a plausible Canon download host; the package builds from source and installs compiled components, which is normal for AUR printer drivers.

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 source is a Canon driver tarball from gdlp01.c-wss.com, a plausible Canon download host; the package builds from source and installs compiled components, which is normal for AUR printer drivers.

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:31 source=(http://gdlp01.c-wss.com/gds/0/0100003020/01/cnijfilter-source-${_pkgver}.tar.gz

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Fortunato Ventre (voRia) <vorione AT gmail DOT com>
2# Current Provider: Custom Processing Unlimited (CPUnltd) <cpunltd AT gmail DOT com>
3#
4# If you're going to adapt this package to other printer models,
5# here is a list of printer names and IDs:
6#
7# name - id
8# -------------
9# mp250 - 356
10# mp280 - 370
11# mp495 - 369
12# mg5100 - 373
13# ip4800 - 375
14# mg5200 - 374
15# mg6100 - 376
16# mg8100 - 377
17#
18# Just change the following variables accordingly:
19_name=mg5200
20_id=374
21
22pkgname=cnijfilter-${_name}
23pkgver=3.40
24pkgrel=12
25_pkgver=3.40-1
26pkgdesc="Canon IJ Printer Driver (${_name} series)"
27url="http://support-au.canon.com.au/contents/AU/EN/0100302002.html"
28arch=('i686' 'x86_64')
29license=('custom')
30depends=('popt' 'gtk2' 'cups')
31source=(http://gdlp01.c-wss.com/gds/0/0100003020/01/cnijfilter-source-${_pkgver}.tar.gz
32 fix_cups.patch
33 fix_png.patch
34 fix_ppd_mg5200.patch
35 fix_configures.patch
36 fix_include.patch)
37md5sums=('609975a05d6050fcca88f312d3f35c6a'
38 '07582e895d0c7c8ba4138312f65e5d51'
39 '5f665042df2175da3629667aaf258782'
40 '5b109e23c63c76828e11cca7a009c11b'
41 '607b0e194f74bf7663ef13641f62a31a'
42 '7eebe1f71bbbc1ec6384cf248d758375')
43
44if [ "$CARCH" == "x86_64" ]; then
45 _libdir=libs_bin64
46else
47 _libdir=libs_bin32
48fi
49
50build() {
51 ## Apply patches
52 cd ${srcdir}/cnijfilter-source-${_pkgver}
53 patch -p1 -i ${srcdir}/fix_cups.patch || return 1
54 patch -p1 -i ${srcdir}/fix_include.patch || return 1
55 patch -p1 -i ${srcdir}/fix_png.patch || return 1
56 patch -p1 -i ${srcdir}/fix_ppd_mg5200.patch || return 1
57 patch -p1 -i ${srcdir}/fix_configures.patch || return 1
58
59 ## Compile model specific stuff
60 # ppd file
61 msg "Compile PPD file..."
62 cd ${srcdir}/cnijfilter-source-${_pkgver}/ppd
63 ./autogen.sh --prefix=/usr --enable-ppdpath=/usr/share/cups/model --program-suffix=${_name}
64 make clean || return 1
65 make || return 1
66 # cnijfilter
67 msg "Compile cnijfilter..."
68 cd ${srcdir}/cnijfilter-source-${_pkgver}/cnijfilter
69 ./autogen.sh --prefix=/usr --enable-libpath=/usr/lib/bjlib --enable-binpath=/usr/bin --program-suffix=${_name}
70 make clean || return 1
71 make || return 1
72 # printui
73 msg "Compile printui..."
74 cd ${srcdir}/cnijfilter-source-${_pkgver}/printui
75 ./autogen.sh --prefix=/usr --datadir=/usr/share --program-suffix=${_name}
76 make || true # Needed to avoid errors while building locales
77 make clean || return 1
78 make || return 1
79 # lgmon
80 msg "Compile lgmon..."
81 cd ${srcdir}/cnijfilter-source-${_pkgver}/lgmon
82 ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin --program-suffix=${_name}
83 make clean || return 1
84 make || return 1
85 # cngpijmon
86 msg "Compile cngpijmon..."
87 cd ${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon
88 ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin --datadir=/usr/share --program-suffix=${_name}
89 make clean || return 1
90 make || return 1
91
92 ## Compile common stuff
93 # libs
94 msg "Compile libs..."
95 cd ${srcdir}/cnijfilter-source-${_pkgver}/libs
96 ./autogen.sh --prefix=/usr
97 make clean || return 1
98 make || return 1
99 # cngpij
100 msg "Compile cngpij..."
101 cd ${srcdir}/cnijfilter-source-${_pkgver}/cngpij
102 ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin
103 make clean || return 1
104 make || return 1
105 # pstocanonij
106 msg "Compile pstocanonij..."
107 cd ${srcdir}/cnijfilter-source-${_pkgver}/pstocanonij
108 ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin
109 make clean || return 1
110 make || return 1
111 # backend
112 msg "Compile backend..."
113 cd ${srcdir}/cnijfilter-source-${_pkgver}/backend
114 ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin
115 make clean || return 1
116 make || return 1
117 # backendnet
118 msg "Compile backendnet..."
119 cd ${srcdir}/cnijfilter-source-${_pkgver}/backendnet
120 ./autogen.sh --prefix=/usr --enable-progpath=/usr/bin LDFLAGS="-L../../com/${_libdir}"
121 make clean || return 1
122 make || return 1
123 # sm sub process
124 msg "Compile sm sub process..."
125 cd ${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon/cnijnpr
126 ./autogen.sh --prefix=/usr LIBS=-ldl
127 make clean || return 1
128 make || return 1
129}
130
131package() {
132 ## Install model specific stuff
133 # ppd file
134 cd ${srcdir}/cnijfilter-source-${_pkgver}/ppd
135 make install DESTDIR=${pkgdir} || return 1
136 # cnijfilter
137 cd ${srcdir}/cnijfilter-source-${_pkgver}/cnijfilter
138 make install DESTDIR=${pkgdir} || return 1
139 # printui
140 cd ${srcdir}/cnijfilter-source-${_pkgver}/printui
141 make install DESTDIR=${pkgdir} || return 1
142 # lgmon
143 cd ${srcdir}/cnijfilter-source-${_pkgver}/lgmon
144 make install DESTDIR=${pkgdir} || return 1
145 # cngpijmon
146 cd ${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon
147 make install DESTDIR=${pkgdir} || return 1
148
149 ## Install common stuff
150 # libs
151 cd ${srcdir}/cnijfilter-source-${_pkgver}/libs
152 make install DESTDIR=${pkgdir} || return 1
153 # cngpij
154 cd ${srcdir}/cnijfilter-source-${_pkgver}/cngpij
155 make install DESTDIR=${pkgdir} || return 1
156 # pstocanonij
157 cd ${srcdir}/cnijfilter-source-${_pkgver}/pstocanonij
158 make install DESTDIR=${pkgdir} || return 1
159 # backend
160 cd ${srcdir}/cnijfilter-source-${_pkgver}/backend
161 make install DESTDIR=${pkgdir} || return 1
162 # backendnet
163 cd ${srcdir}/cnijfilter-source-${_pkgver}/backendnet
164 make install DESTDIR=${pkgdir} || return 1
165 # sm sub process
166 cd ${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon/cnijnpr
167 make install DESTDIR=${pkgdir} || return 1
168
169 ## Install model specific libraries
170 install -d ${pkgdir}/usr/lib/
171 install -d ${pkgdir}/usr/lib/bjlib/
172 cp -d ${srcdir}/cnijfilter-source-${_pkgver}/${_id}/${_libdir}/* ${pkgdir}/usr/lib/
173 cp -d ${srcdir}/cnijfilter-source-${_pkgver}/${_id}/database/* ${pkgdir}/usr/lib/bjlib/
174
175 ## Install common libraries
176 cp -d ${srcdir}/cnijfilter-source-${_pkgver}/com/${_libdir}/* ${pkgdir}/usr/lib/
177 install -m 666 ${srcdir}/cnijfilter-source-${_pkgver}/com/ini/cnnet.ini ${pkgdir}/usr/lib/bjlib/
178
179 ## Install license files
180 cd ${srcdir}/cnijfilter-source-${_pkgver}
181 install -d ${pkgdir}/usr/share/licenses/${pkgname}/
182 install -m 644 LICENSE-* ${pkgdir}/usr/share/licenses/${pkgname}/
183}
184
185# vim:set ts=2 sw=2 et:
186

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