ni-visa
maintainer onguntoglu
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a VISA library ISO from National Instruments' official ftp server, which is a non-whitelisted but legitimate and project-specific host; the source is not executed remotely, and the build extracts and packages official binaries via standard procedures.
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 VISA library ISO from National Instruments' official ftp server, which is a non-whitelisted but legitimate and project-specific host; the source is not executed remotely, and the build extracts and packages official binaries via standard procedures.
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:17
source=("http://ftp.ni.com/support/softlib/visa/NI-VISA/${_short_ver}/Linux/NI-VISA-${pkgver}.iso"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: t-onoz <t [dot] onozuka [dot] 1990 [at] (g-mail)>>
2
# Contributor: Grey Christoforo <first name [at] last name [dot] net>
3
pkgname=('ni-visa')
4
_pkgbase=('ni-visa')
5
provides=('ni-visa' 'lib32-ni-visa')
6
pkgver=17.0.0
7
_short_ver=${pkgver%.0}
8
pkgrel=3
9
pkgdesc="National Instruments NI-VISA(TM) Library for Linux."
10
url="https://www.ni.com/visa/"
11
arch=('x86_64')
12
license=('custom')
13
depends=('gcc-libs' 'bash')
14
optdepends=('python2-pyvisa: python 2 frontend'
15
'python-pyvisa: python 3 frontend'
16
'lib32-gcc-libs: for 32-bit libraries')
17
source=("http://ftp.ni.com/support/softlib/visa/NI-VISA/${_short_ver}/Linux/NI-VISA-${pkgver}.iso"
18
"ni-visa.patch"
19
"99-usbtmc.rules")
20
md5sums=('d114b70ce0802fa6bd7173a6f23f7257'
21
'd46807a8283d8497d316778ac266d514'
22
'cdfd2e18de4370001bfbe0226cf04b18')
23
install='ni-visa.install'
24
25
_vxipnppath="opt/${_pkgbase}/usr/local/vxipnp"
26
27
backup=("${_vxipnppath}/linux/NIvisa/Passport64/nivisa.ini"
28
"${_vxipnppath}/linux/NIvisa/Passport/nivisa.ini"
29
"${_vxipnppath}/linux/NIvisa/visaconf.ini"
30
"etc/udev/rules.d/99-nivisa_usbraw.rules")
31
32
prepare() {
33
bsdtar -xf "${srcdir}"/nivisa-${pkgver}f*.tar.gz
34
mkdir -p "${srcdir}"/extract
35
for f in "${srcdir}"/rpms/nivisa{-32bit,}-${pkgver}-f*.x86_64.rpm; do
36
bsdtar -xf $f -C "${srcdir}"/extract
37
done
38
cd "${srcdir}"
39
patch -p1 -i "${srcdir}"/ni-visa.patch
40
}
41
42
package() {
43
mkdir -p "${pkgdir}"/usr/{include,lib,lib32,bin}
44
mkdir -p "${pkgdir}"/usr/lib/environment.d
45
mkdir -p "${pkgdir}"/opt/${_pkgbase}/usr/local/
46
mkdir -p "${pkgdir}"/etc/{profile.d,natinst}
47
mkdir -p "${pkgdir}"/etc/udev/rules.d
48
49
echo > "${pkgdir}"/etc/udev/rules.d/99-nivisa_usbraw.rules
50
51
cp -a "${srcdir}"/extract/usr/local/vxipnp "${pkgdir}"/${_vxipnppath}
52
53
ln -s /${_vxipnppath}/linux/lib64/libvisa.so "${pkgdir}"/usr/lib/libvisa.so
54
ln -s /${_vxipnppath}/linux/bin/libvisa.so "${pkgdir}"/usr/lib32/libvisa.so
55
for f in "${pkgdir}/${_vxipnppath}/linux/include/"*.h; do
56
ln -s "${f#${pkgdir}}" "${pkgdir}/usr/include/"
57
done
58
59
echo "/${_vxipnppath}" > "${pkgdir}"/${_vxipnppath}/etc/nivisa.dir
60
echo "/${_vxipnppath}" > "${pkgdir}"/${_vxipnppath}/etc/vxipnp.dir
61
ln -s /${_vxipnppath}/etc "${pkgdir}"/etc/natinst/nivisa
62
ln -s /${_vxipnppath}/etc "${pkgdir}"/etc/natinst/vxipnp
63
64
ln -s /${_vxipnppath}/linux/NIvisa/USB/AddUsbRawPermissions.sh "${pkgdir}"/usr/bin/AddUsbRawPermissions.sh
65
66
install -Dm644 99-usbtmc.rules "${pkgdir}/usr/lib/udev/rules.d/99-usbtmc.rules"
67
# environment variable: for gdm on Wayland
68
echo "VXIPNPPATH=/${_vxipnppath}" > "${pkgdir}"/usr/lib/environment.d/40-vxipnppath.conf
69
# environment variable: for xorg or console
70
echo "export VXIPNPPATH=/${_vxipnppath}" > "${pkgdir}/etc/profile.d/vxipnppath.sh"
71
install -D -m644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
72
}
73
74
# vim:set ts=2 sw=2 et:
75
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 |