summaryrefslogtreecommitdiff
path: root/packages/sys-analyzer/collectd/collectd.exlib
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sys-analyzer/collectd/collectd.exlib')
-rw-r--r--packages/sys-analyzer/collectd/collectd.exlib29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/sys-analyzer/collectd/collectd.exlib b/packages/sys-analyzer/collectd/collectd.exlib
new file mode 100644
index 0000000..9e5c3ed
--- /dev/null
+++ b/packages/sys-analyzer/collectd/collectd.exlib
@@ -0,0 +1,29 @@
+# Distributed under the terms of the GNU General Public License v2
+# Copyright 2020 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
+
+require github [ user=collectd tag=${PNV} ]
+require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.16 ] ]
+
+export_exlib_phases src_install
+
+SUMMARY="The system statistics collection daemon."
+LICENCES="MIT"
+SLOT="0"
+
+#RESTRICT="test"
+
+#TODO: suggestions
+
+DEFAULT_SRC_CONFIGURE_PARAMS=(
+ --disable-werror
+)
+
+collectd_src_install() {
+ default
+ nonfatal edo rmdir "${IMAGE}"/var/lib/log
+ nonfatal edo rmdir "${IMAGE}"/var/lib/run
+ nonfatal edo rmdir "${IMAGE}"/var/lib/lib/collectd
+ nonfatal edo rmdir "${IMAGE}"/var/lib/lib
+ nonfatal edo rmdir "${IMAGE}"/var/lib
+ nonfatal edo rmdir "${IMAGE}"/var
+}