diff options
-rw-r--r-- | config-mgmt-collectd.PKGBUILD | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config-mgmt-collectd.PKGBUILD b/config-mgmt-collectd.PKGBUILD new file mode 100644 index 0000000..ca7e4e9 --- /dev/null +++ b/config-mgmt-collectd.PKGBUILD @@ -0,0 +1,23 @@ +. ${BUILDFILE%/*}/common.sh +pkgver=20170131 + +depends=(collectd) + +package() { +preamble +# #### collectd + +# In order for configuration sets to modularly adjust the collectd +# configuration, we patch `/etc/collectd.conf` to include +# `/etc/collectd.d/*.conf`. +add-file -m755 usr/share/holo/files/10-"$pkgname"/etc/collectd.conf.holoscript <<EOF +#!/bin/sh +{ + grep -vxF 'Include "/etc/collectd.d/*.conf"' + echo + echo 'Include "/etc/collectd.d/*.conf"' +} | cat -s +EOF + +postamble +} |