############################################################################### # IPFire.org - An Open Source Firewall Solution # # Copyright (C) - IPFire Development Team # ############################################################################### name = collecty version = 002 release = 1 maintainer = Michael Tremer groups = System/Monitoring url = http://git.ipfire.org/?p=oddments/collecty.git;a=summary license = GPLv3+ summary = A system data collecting daemon. description collecty is a daemon which collects data from the system like CPU usage and many more. It has been designed with power efficiency in mind. end source_dl = http://source.ipfire.org/releases/collecty/ build requires autoconf automake docbook-utils docbook-xsl gettext-devel intltool libtool-devel libxslt python systemd-devel end prepare_cmds [ -e "configure" ] || ./autogen.sh end end packages package %{name} groups += Base requires pygobject2 python-dbus python-rrdtool end script postin systemctl daemon-reload >/dev/null 2>&1 || : # The collecty service should be started on default. systemctl enable collecty.service > /dev/null 2>&1 || : end # Disable the service that is to be removed and stop it if it is still running. script preun systemctl --no-reload disable collecty.service >/dev/null 2>&1 || : systemctl stop collecty.service >/dev/null 2>&1 || : end # Just tell systemd that unitfiles have been removed. script postun systemctl daemon-reload >/dev/null 2>&1 || : end # Try to restart the service if it is running. script postup systemctl daemon-reload >/dev/null 2>&1 || : systemctl try-restart collecty.service >/dev/null 2>&1 || : end end end