suricata-nfqueue
MEDIUM
maintainer amish
5 votes
scanned 2026-10-28 15:50:30.098556
Why flagged
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
Triggered rules
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:24
source=(https://www.openinfosecfoundation.org/download/${_pkgname}-${pkgver}.tar.gz{,.sig}
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Amish <contact at via dot aur>
2
# Contributor: Jeremy MountainJohnson <jay@jskier.com>
3
4
pkgname=suricata-nfqueue
5
_pkgname=suricata
6
pkgver=8.0.5
7
pkgrel=1
8
pkgdesc="A high performance Network IDS, IPS and Network Security Monitoring engine"
9
arch=('x86_64')
10
url="https://suricata.io/"
11
license=('GPL-2.0-or-later')
12
provides=('suricata')
13
conflicts=('suricata')
14
replaces=('suricata')
15
makedepends=('rust' 'clang' 'cbindgen' 'llvm' 'pkgconf')
16
depends=('hyperscan' 'jansson' 'libcap-ng' 'libmagic.so' 'libmaxminddb' 'libnet' 'libnetfilter_queue' 'libpcap' 'libyaml' 'lz4' 'pcre2' 'python-yaml' 'libunwind' 'libbpf')
17
optdepends=('geoipupdate: GeoIP2 databases')
18
install=suricata.install
19
backup=('etc/suricata/suricata.yaml'
20
'etc/suricata/local.yaml'
21
'etc/suricata/classification.config'
22
'etc/suricata/reference.config'
23
'etc/suricata/threshold.config')
24
source=(https://www.openinfosecfoundation.org/download/${_pkgname}-${pkgver}.tar.gz{,.sig}
25
suricata-update.{service,timer})
26
sha256sums=('04cad79a2a91499a729e41bfb570060c3cedb94cd5a5584d79582ebd18574ee0'
27
'SKIP'
28
'57505c464d30623c9d6611ca4b5d08a580c0116b20a4280f39c3720a3f369a92'
29
'330c93e72a02f4f80972ab1641ee550b32cfdc2f40c78331294bcc009af06d71')
30
validpgpkeys=('B36FDAF2607E10E8FFA89E5E2BA9C98CCDF1E93A') # Open Information Security Foundation
31
32
build() {
33
cd "${srcdir}/${_pkgname}-${pkgver}"
34
35
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
36
--with-clang=/usr/bin/clang --without-docs \
37
--enable-ebpf --enable-ebpf-build \
38
--disable-gccmarch-native \
39
--enable-geoip \
40
--enable-nfqueue
41
42
# Build the Rust crate first so cargo compiles the vendored liblua.a
43
make -C rust
44
45
# Locate the static liblua.a produced by the suricata-lua-sys crate.
46
# Static libs are unaffected by -Wl,--as-needed so this reliably links.
47
local _lua_a
48
_lua_a=$(find "$(pwd)/rust/target/release/build" -path '*/suricata-lua-sys-*/out/lua/liblua.a' 2>/dev/null | head -1)
49
[[ -n "${_lua_a}" ]] || { echo "ERROR: vendored liblua.a not found"; return 1; }
50
51
# Patch src/Makefile in-place so that every subsequent make call
52
# (build and install) sees liblua.a in LIBS. Patching here is
53
# necessary because the path is only known after cargo has run.
54
sed -i "s|^LIBS = |LIBS = ${_lua_a} |" src/Makefile
55
56
make
57
}
58
59
check() {
60
cd "${srcdir}/${_pkgname}-${pkgver}"
61
make -k check || true
62
}
63
64
package() {
65
cd "${srcdir}/${_pkgname}-${pkgver}"
66
make DESTDIR="${pkgdir}" install
67
68
install -Dm644 -t "${pkgdir}/etc/${_pkgname}" "${_pkgname}".yaml threshold.config etc/{classification.config,reference.config}
69
install -Dm644 "${_pkgname}".yaml "${pkgdir}/etc/${_pkgname}/${_pkgname}.yaml.default"
70
install -Dm644 /dev/null "${pkgdir}/etc/${_pkgname}/local.yaml"
71
72
echo "include: local.yaml" >> "${pkgdir}/etc/${_pkgname}/${_pkgname}.yaml"
73
sed -i -e 's:/var/run:/run/suricata:g' \
74
-e 's:^#magic-file\: /.*:magic-file\: /usr/share/file/misc/magic.mgc:' \
75
-e '/^ - suricata.rules/ a \ \ - local.rules' \
76
-e 's/^#run-as:/run-as:/' \
77
-e 's/^# user:.*/ user: suricata/' \
78
-e 's/^# group:.*/ group: suricata/' \
79
-e 's/^# threshold-file:/threshold-file:/' \
80
"${pkgdir}/etc/${_pkgname}/${_pkgname}.yaml"
81
82
install -Dm644 etc/"${_pkgname}".logrotate "${pkgdir}/etc/logrotate.d/${_pkgname}"
83
sed -i -e 's:/var/run:/run/suricata:g' \
84
"${pkgdir}/etc/logrotate.d/${_pkgname}"
85
install -Dm644 -t "${pkgdir}"/usr/lib/systemd/system etc/"${_pkgname}".service "${srcdir}"/suricata-update.{service,timer}
86
sed -i -e 's:/var/run:/run/suricata:g' \
87
-e 's:^Description=.*:Description=Suricata IDS/IPS daemon:g' \
88
-e 's:^After=.*:After=network.target:g' \
89
-e 's:^ExecStartPre=.*:PIDFile=suricata/suricata.pid:g' \
90
-e 's:^ExecStart=.*:ExecStart=/usr/bin/suricata -c /etc/suricata/suricata.yaml --pidfile /run/suricata/suricata.pid -q 0:g' \
91
"${pkgdir}/usr/lib/systemd/system/${_pkgname}.service"
92
93
echo "u suricata -" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/sysusers.d/${_pkgname}.conf"
94
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/tmpfiles.d/${_pkgname}.conf" << 'EOF'
95
d /run/suricata 0750 suricata suricata
96
d /var/log/suricata 0755 suricata suricata
97
d /var/lib/suricata 0750 suricata suricata
98
d /var/lib/suricata/rules 0750 suricata suricata
99
d /var/lib/suricata/update 0750 suricata suricata
100
f /var/lib/suricata/rules/local.rules 0640 suricata suricata
101
EOF
102
}
103
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-28 15:50:30 | Medium | 1 |
| 2026-06-19 19:07:35 | Clean | 2 |
| 2026-06-18 18:04:49 | Clean | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |