. ${BUILDFILE%/*}/common.sh pkgver=20180918 package() { preamble pkgdesc="Parabola server configuration: Make collectd play nice with configuration management" # #### collectd depends=(collectd) # In order for configuration sets to modularly adjust the collectd # configuration, we patch `/etc/collectd.conf` to include # `/etc/collectd.d/*.conf`. Also, we uncomment the default value of # the TypesDB command, to make it safe for *.conf files to augement # the types DB with their own TypesDB commands. add-file -m755 usr/share/holo/files/10-"$pkgname"/etc/collectd.conf.holoscript <<'EOF' #!/bin/sh { sed -r 's/^#+\s*TypesDB/TypesDB/' echo echo 'Include "/etc/collectd.d/*.conf"' } | awk '/^$/{ s=1 } /./&&!x[$0]++{ if(s){print ""} print; s=0 }' EOF postamble }