cnijfilter-mg5300
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
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)
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# Maintainer: Sonic-Y3k <sonic.y3k@googlemail.com>
# Original Contributors: Giancarlo Bianchi <giancarlobianchi76@gmail.com>
# Fortunato Ventre (voRia) <vorione@gmail.com>
# Custom Processing Unlimited (CPUnltd) <CPUnltd 'at' gmail 'dot' com>
_model=mg5300
pkgname=cnijfilter-${_model}
pkgver=3.60
pkgrel=8
_pkgver=3.60-1
pkgdesc="Canon IJ Printer Driver (for ${_model} series)"
url="http://support-au.canon.com.au/contents/AU/EN/0100392802.html"
arch=('i686' 'x86_64')
license=('custom')
depends=('gtk2' 'popt')
makedepends=('autoconf>=2.13' 'automake>=1.6' 'findutils' 'gawk')
conflicts=('cnijfilter-common')
install=cnijfilter-mg5300.install
source=("http://gdlp01.c-wss.com/gds/8/0100003928/01/cnijfilter-source-${_pkgver}.tar.gz"
'build-fixes.patch'
'cups.patch'
'id.po.patch'
'libpng.patch')
sha256sums=('7e4f91a0aebfa32d75da046a20bab992bd6032bb2069cf0091e77d8119a489de'
'ffd5c8cf926d6956cd8eec7e36c27fd080ea4f6dfd9e324f4890902584080617'
'0b0cad3fad763a35d06550eda1c9de9b7592d4b29b2acb4a927efcad77fbb76c'
'b535f0cf501ec4023a3166f85d230d9c0da24e3cdaa5ba3ba435669cb14cbd4c'
'f1723e8e6a84942bd9fcfefef3efb20a40384ffb449101eccecf02aac929399c')
if [ "$CARCH" == "x86_64" ]; then
_libdir=libs_bin64
else
_libdir=libs_bin32
fi
prepare() {
## Patches
msg "Applying patches"
patch -p0 < build-fixes.patch
patch -p0 < cups.patch
patch -p0 < id.po.patch
patch -p0 < libpng.patch
}
build() {
## Compile and install ${_model} stuff
# ppd file
cd "${srcdir}/cnijfilter-source-${_pkgver}/ppd"
./autogen.sh --prefix=/usr --enable-ppdpath=/usr/share/cups/model --program-suffix=${_model}
make
# cnijfilter
cd "${srcdir}/cnijfilter-source-${_pkgver}/cnijfilter"
./autogen.sh --prefix=/usr --enable-libpath=/usr/lib/bjlib --enable-binpath=/usr/bin --program-suffix=${_model}
make
# lgmon
cd "${srcdir}/cnijfilter-source-${_pkgver}/lgmon"
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin --program-suffix=${_model}
make
# cngpijmon
cd "${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon"
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin --datadir=/usr/share --program-suffix=${_model}
make
## Compile common stuff
# libs
cd "${srcdir}/cnijfilter-source-${_pkgver}/libs"
./autogen.sh --prefix=/usr
make
# cngpij, pstocanonij, backend
for _c in cngpij pstocanonij backend; do
cd "${srcdir}/cnijfilter-source-${_pkgver}/${_c}"
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin
make
done
# backendnet
cd "${srcdir}/cnijfilter-source-${_pkgver}/backendnet"
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin LDFLAGS="-L../../com/${_libdir}"
make
# sm sub process
cd "${srcdir}/cnijfilter-source-${_pkgver}/cngpijmon/cnijnpr"
./autogen.sh --prefix=/usr --enable-progpath=/usr/bin LIBS="-ldl"
make
}
package() {
# get id of printer model
_cmd=$(find ${srcdir}/cnijfilter-source-${_pkgver} -type f -name cif${_model}.conf -path '*[\d]*' -printf '%P' \
| gawk -F/ '{print $1}')
_id=${_cmd}
echo ${pkgdir}
for dir in ppd cnijfilter lgmon cngpijmon libs cngpij pstocanonij backend backendnet cngpijmon/cnijnpr; do
cd "${srcdir}/cnijfilter-source-${_pkgver}/${dir}"
make install DESTDIR="${pkgdir}"
done
# Install ${_id} libraries
install -d ${pkgdir}/usr/lib/
cp -P ${srcdir}/cnijfilter-source-${_pkgver}/${_id}/${_libdir}/*so* ${pkgdir}/usr/lib/
install -d ${pkgdir}/usr/lib/bjlib/
install -m 644 ${srcdir}/cnijfilter-source-${_pkgver}/${_id}/database/* ${pkgdir}/usr/lib/bjlib/
# Install common libraries
cp -P ${srcdir}/cnijfilter-source-${_pkgver}/com/${_libdir}/*so* ${pkgdir}/usr/lib/
install -m 666 ${srcdir}/cnijfilter-source-${_pkgver}/com/ini/* ${pkgdir}/usr/lib/bjlib/
# Install license file
cd ${srcdir}/cnijfilter-source-${_pkgver}
install -d ${pkgdir}/usr/share/licenses/${pkgname}/
install -m 644 LICENSE-* ${pkgdir}/usr/share/licenses/${pkgname}/
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |