mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
collectd includes dozens of plugins. I moved into subpackages all plugins depend on any extra library (except libyajl), plugins for programs that are not in the base Alpine installation, plugins for monitoring hardware devices and some bigger plugins. I also added meta-package collectd-plugins-all that can be used to quickly install all the plugins. This allowed to decrease the size of the collectd package from 2.2 MiB to 1.5 MiB and removed dependency on libcrypto1.1, libcurl, and net-snmp-agent-libs.
17 lines
415 B
Bash
17 lines
415 B
Bash
#!/bin/sh
|
|
|
|
ver_new="$1"
|
|
ver_old="$2"
|
|
|
|
if [ "$(apk version -t "$ver_old" '5.12.0-r2')" = '<' ]; then
|
|
cat >&2 <<-EOF
|
|
*
|
|
* Many plugins has been moved from the collectd package into subpackages.
|
|
* If collectd fails to start due to missing plugins, you have to install
|
|
* them: apk add collectd-<plugin>. Or you can install meta-package
|
|
* collectd-plugins-all if you want *all* collectd plugins.
|
|
*
|
|
EOF
|
|
fi
|
|
|
|
exit 0
|