cnijfilter-mg5300
maintainer williberthenck
· 8 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 host, which is not on standard whitelists but is Canon's legitimate distribution domain; it builds from source without executing untrusted binaries, posing minimal risk.
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 host, which is not on standard whitelists but is Canon's legitimate distribution domain; it builds from source without executing untrusted binaries, posing minimal risk.
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:18
source=("http://gdlp01.c-wss.com/gds/8/0100003928/01/cnijfilter-source-${_pkgver}.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Sonic-Y3k <sonic.y3k@googlemail.com>
2
# Original Contributors: Giancarlo Bianchi <giancarlobianchi76@gmail.com>
3
# Fortunato Ventre (voRia) <vorione@gmail.com>
4
# Custom Processing Unlimited (CPUnltd) <CPUnltd 'at' gmail 'dot' com>
5
_model=mg5300
6
pkgname=cnijfilter-${_model}
7
pkgver=3.60
8
pkgrel=8
9
_pkgver=3.60-1
10
pkgdesc="Canon IJ Printer Driver (for ${_model} series)"
11
url="http://support-au.canon.com.au/contents/AU/EN/0100392802.html"
12
arch=('i686' 'x86_64')
13
license=('custom')
14
depends=('gtk2' 'popt')
15
makedepends=('autoconf>=2.13' 'automake>=1.6' 'findutils' 'gawk')
16
conflicts=('cnijfilter-common')
17
install=cnijfilter-mg5300.install
18
source=("http://gdlp01.c-wss.com/gds/8/0100003928/01/cnijfilter-source-${_pkgver}.tar.gz"
19
'build-fixes.patch'
20
'cups.patch'
21
'id.po.patch'
22
'libpng.patch')
23
sha256sums=('7e4f91a0aebfa32d75da046a20bab992bd6032bb2069cf0091e77d8119a489de'
24
'ffd5c8cf926d6956cd8eec7e36c27fd080ea4f6dfd9e324f4890902584080617'
25
'0b0cad3fad763a35d06550eda1c9de9b7592d4b29b2acb4a927efcad77fbb76c'
26
'b535f0cf501ec4023a3166f85d230d9c0da24e3cdaa5ba3ba435669cb14cbd4c'
27
'f1723e8e6a84942bd9fcfefef3efb20a40384ffb449101eccecf02aac929399c')
28
29
if [ "$CARCH" == "x86_64" ]; then
30
_libdir=libs_bin64
31
else
32
_libdir=libs_bin32
33
fi
34
35
prepare() {
36
## Patches
37
msg "Applying patches"
38
patch -p0 < build-fixes.patch
39
patch -p0 < cups.patch
40
patch -p0 < id.po.patch
41
patch -p0 < libpng.patch
42
}
43
44
build() {
45
## Compile and install ${_model} stuff
46
# ppd file
47
cd "${srcdir}/cnijfilter-source-${_pkgver}/ppd"
48
./autogen.sh --prefix=/usr --enable-ppdpath=/usr/share/cups/model --program-suffix=${_model}
49
make
50
# cnijfilter
51
cd "${srcdir}/cnijfilter-source-${_pkgver}/cnijfilter"
52
./autogen.sh --prefix=/usr --enable-libpath=/usr/lib/bjlib --enable-binpath=/usr/bin --program-suffix=${_model}
53
make
54
# lgmon
55
cd "${srcdir}/cnijfilter-source-${_pkgver}/lgmon"
56
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin --program-suffix=${_model}
57
make
58
# cngpijmon
59
cd "${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon"
60
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin --datadir=/usr/share --program-suffix=${_model}
61
make
62
63
## Compile common stuff
64
# libs
65
cd "${srcdir}/cnijfilter-source-${_pkgver}/libs"
66
./autogen.sh --prefix=/usr
67
make
68
# cngpij, pstocanonij, backend
69
for _c in cngpij pstocanonij backend; do
70
cd "${srcdir}/cnijfilter-source-${_pkgver}/${_c}"
71
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin
72
make
73
done
74
# backendnet
75
cd "${srcdir}/cnijfilter-source-${_pkgver}/backendnet"
76
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin LDFLAGS="-L../../com/${_libdir}"
77
make
78
# sm sub process
79
cd "${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon/cnijnpr"
80
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin LIBS="-ldl"
81
make
82
}
83
84
package() {
85
# get id of printer model
86
_cmd=$(find ${srcdir}/cnijfilter-source-${_pkgver} -type f -name cif${_model}.conf -path '*[\d]*' -printf '%P' \
87
| gawk -F/ '{print $1}')
88
_id=${_cmd}
89
echo ${pkgdir}
90
91
92
for dir in ppd cnijfilter lgmon cngpijmon libs cngpij pstocanonij backend backendnet cngpijmon/cnijnpr; do
93
cd "${srcdir}/cnijfilter-source-${_pkgver}/${dir}"
94
make install DESTDIR="${pkgdir}"
95
done
96
97
# Install ${_id} libraries
98
install -d ${pkgdir}/usr/lib/
99
cp -P ${srcdir}/cnijfilter-source-${_pkgver}/${_id}/${_libdir}/*so* ${pkgdir}/usr/lib/
100
install -d ${pkgdir}/usr/lib/bjlib/
101
install -m 644 ${srcdir}/cnijfilter-source-${_pkgver}/${_id}/database/* ${pkgdir}/usr/lib/bjlib/
102
# Install common libraries
103
cp -P ${srcdir}/cnijfilter-source-${_pkgver}/com/${_libdir}/*so* ${pkgdir}/usr/lib/
104
install -m 666 ${srcdir}/cnijfilter-source-${_pkgver}/com/ini/* ${pkgdir}/usr/lib/bjlib/
105
106
# Install license file
107
cd ${srcdir}/cnijfilter-source-${_pkgver}
108
install -d ${pkgdir}/usr/share/licenses/${pkgname}/
109
install -m 644 LICENSE-* ${pkgdir}/usr/share/licenses/${pkgname}/
110
}
111
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 |