summaryrefslogtreecommitdiff
path: root/config-mgmt-collectd.PKGBUILD
blob: ca7e4e9a470653568083f46be4f8581fc5e67f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}