collectd
MEDIUM
maintainer lilydjwg
10 votes
scanned 2026-09-11 15:22:58.728112
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:46
source=("https://storage.googleapis.com/collectd-tarballs/${pkgname}-${pkgver}.tar.bz2"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: lilydjwg <lilydjwg@gmail.com>
2
# Contributor: Gaetan Bisson <bisson@archlinux.org>
3
# Contributor: Gerhard Brauer <gerhard.brauer@web.de>
4
5
pkgname=collectd
6
pkgver=5.12.0
7
pkgrel=24
8
pkgdesc='Daemon which collects system performance statistics periodically'
9
url='https://collectd.org/'
10
arch=('x86_64' 'aarch64')
11
license=('MIT AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-only AND ISC AND MIT-0')
12
13
optdepends=('curl: apache, ascent, curl, nginx, and write_http plugins'
14
'libdbi: dbi plugin'
15
'libesmtp: notify_email plugin'
16
'libgcrypt: encryption and authentication for network plugin'
17
'libmemcached: memcachec plugin'
18
'mariadb-libs: mysql plugin'
19
'systemd-libs: UdevNameAttr option'
20
'iproute2: netlink plugin'
21
'net-snmp: snmp plugin'
22
'libnotify: notify_desktop plugin'
23
'openipmi: ipmi plugin'
24
'liboping: ping plugin'
25
'libpcap: dns plugin'
26
'perl: perl plugin'
27
'postgresql-libs: postgresql plugin'
28
'python: python plugin'
29
'rrdtool: rrdtool and rrdcached plugins'
30
'hiredis: redis plugin'
31
'lm_sensors: lm_sensors and sensors plugins'
32
'libvirt: libvirt plugin'
33
'libxml2: ascent and libvirt plugins'
34
'yajl: curl_json plugin'
35
'libatasmart: smart plugin'
36
'lvm2: lvm plugin'
37
'protobuf-c: write_riemann plugin'
38
'mosquitto: MQTT plugin'
39
'libmicrohttpd: prometheus plugin'
40
'librabbitmq-c: amqp plugin'
41
'nut: nut plugin')
42
43
makedepends=(${optdepends[@]%:*})
44
depends=('libltdl' 'iptables' 'libnsl')
45
46
source=("https://storage.googleapis.com/collectd-tarballs/${pkgname}-${pkgver}.tar.bz2"
47
https://github.com/collectd/collectd/commit/623e95394e0e62e7f9ced2104b786d21e9c0bf53.patch
48
https://github.com/collectd/collectd/commit/da62d300a1b9e3b8f3690a388105678a3a4620ea.patch
49
ansidecl.patch
50
'service')
51
sha256sums=('5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6'
52
'777544cbf803af4d08ea228b29619f8f6e7a4777a85e0fb30693d8240db7246b'
53
'5eec73b5a10070baf86e7529c1e2e632a1140560c2aaf67bd8b7aedbb652ebda'
54
'74088adbd378fd2942ab3b9a959fae110a38b9c411b82557df2b4d1276b61d20'
55
'83957b0b2cc7fa05a4d5f22e6c913ae2b0a4d7821f7b4e2d2e763054cc8c6c21')
56
57
backup=('etc/collectd.conf')
58
59
prepare() {
60
cd ${pkgname}-${pkgver}
61
sed -i '/sys\/mount.h/d' src/utils/mount/mount.h
62
patch -Np1 < ../623e95394e0e62e7f9ced2104b786d21e9c0bf53.patch
63
patch -Np0 < ../ansidecl.patch
64
patch -Np1 < ../da62d300a1b9e3b8f3690a388105678a3a4620ea.patch
65
}
66
67
build() {
68
cd ${pkgname}-${pkgver}
69
# fix nut plugin build
70
export CFLAGS="$CFLAGS -Wno-incompatible-pointer-types"
71
# quick fix for https://github.com/collectd/collectd/issues/4310
72
# libgcrypt-config is gone
73
export GCRYPT_CPPFLAGS="$(pkg-config libgcrypt --cflags)"
74
export GCRYPT_LIBS="$(pkg-config libgcrypt --libs)"
75
./configure \
76
--prefix=/usr \
77
--sysconfdir=/etc \
78
--localstatedir=/var \
79
--sbindir=/usr/bin \
80
--enable-redis \
81
--disable-werror \
82
--with-perl-bindings='INSTALLDIRS=vendor' \
83
84
make all V=1
85
}
86
87
package() {
88
cd ${pkgname}-${pkgver}
89
make DESTDIR="${pkgdir}" install
90
rmdir "${pkgdir}/var/run" # FS#30201
91
install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/collectd.service
92
install -Dm644 contrib/collectd2html.pl "${pkgdir}"/usr/share/collectd/collectd2html.pl
93
}
94
Changes since previous scan
--- PKGBUILD @ 2026-06-20 00:18+++ PKGBUILD @ 2026-09-11 15:22@@ -4,7 +4,7 @@ pkgname=collectd pkgver=5.12.0-pkgrel=23+pkgrel=24 pkgdesc='Daemon which collects system performance statistics periodically' url='https://collectd.org/' arch=('x86_64' 'aarch64')@@ -45,10 +45,12 @@ source=("https://storage.googleapis.com/collectd-tarballs/${pkgname}-${pkgver}.tar.bz2" https://github.com/collectd/collectd/commit/623e95394e0e62e7f9ced2104b786d21e9c0bf53.patch+ https://github.com/collectd/collectd/commit/da62d300a1b9e3b8f3690a388105678a3a4620ea.patch ansidecl.patch 'service') sha256sums=('5bae043042c19c31f77eb8464e56a01a5454e0b39fa07cf7ad0f1bfc9c3a09d6' '777544cbf803af4d08ea228b29619f8f6e7a4777a85e0fb30693d8240db7246b'+ '5eec73b5a10070baf86e7529c1e2e632a1140560c2aaf67bd8b7aedbb652ebda' '74088adbd378fd2942ab3b9a959fae110a38b9c411b82557df2b4d1276b61d20' '83957b0b2cc7fa05a4d5f22e6c913ae2b0a4d7821f7b4e2d2e763054cc8c6c21') @@ -59,6 +61,7 @@ sed -i '/sys\/mount.h/d' src/utils/mount/mount.h patch -Np1 < ../623e95394e0e62e7f9ced2104b786d21e9c0bf53.patch patch -Np0 < ../ansidecl.patch+ patch -Np1 < ../da62d300a1b9e3b8f3690a388105678a3a4620ea.patch } build() {Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-11 15:22:58 | Medium | 1 |
| 2026-06-20 00:18:46 | Medium | 1 |
| 2026-06-19 23:51:18 | Clean | 2 |
| 2026-06-19 19:07:35 | Low | 2 |
| 2026-06-18 16:11:54 | Medium | 1 |