86 lines
2.0 KiB
Plaintext
86 lines
2.0 KiB
Plaintext
###############################################################################
|
|
# IPFire.org - An Open Source Firewall Solution #
|
|
# Copyright (C) - IPFire Development Team <info@ipfire.org> #
|
|
###############################################################################
|
|
|
|
name = collecty
|
|
version = 004
|
|
release = 1
|
|
|
|
maintainer = Michael Tremer <michael.tremer@ipfire.org>
|
|
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
|
|
libatasmart-devel
|
|
libtool-devel
|
|
liboping-devel
|
|
libxslt
|
|
lm-sensors-devel
|
|
python3-devel >= 3.4
|
|
python3-rrdtool
|
|
systemd-devel
|
|
end
|
|
|
|
prepare_cmds
|
|
[ -e "configure" ] || ./autogen.sh
|
|
end
|
|
end
|
|
|
|
packages
|
|
package %{name}
|
|
groups += Base
|
|
|
|
requires
|
|
python3-dbus
|
|
python3-gobject3
|
|
python3-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
|
|
|
|
package %{name}-debuginfo
|
|
template DEBUGINFO
|
|
end
|
|
end
|