]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - collecty/collecty.nm
collecty: Update to version 002
[people/amarx/ipfire-3.x.git] / collecty / collecty.nm
CommitLineData
18de5133
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = collecty
59ee75fd 7version = 002
18de5133
MT
8release = 1
9
10maintainer = Michael Tremer <michael.tremer@ipfire.org>
11groups = System/Monitoring
12url = http://git.ipfire.org/?p=oddments/collecty.git;a=summary
13license = GPLv3+
14summary = A system data collecting daemon.
15
16description
17 collecty is a daemon which collects data from the
18 system like CPU usage and many more.
19 It has been designed with power efficiency in mind.
20end
21
22source_dl = http://source.ipfire.org/releases/collecty/
23
24build
25 requires
59ee75fd
MT
26 autoconf
27 automake
28 docbook-utils
29 docbook-xsl
30 gettext-devel
31 intltool
32 libtool-devel
33 libxslt
18de5133 34 python
59ee75fd 35 systemd-devel
18de5133
MT
36 end
37
59ee75fd
MT
38 prepare_cmds
39 [ -e "configure" ] || ./autogen.sh
18de5133
MT
40 end
41end
42
43packages
44 package %{name}
45 groups += Base
59ee75fd
MT
46
47 requires
48 pygobject2
49 python-dbus
50 python-rrdtool
51 end
52
53 script postin
54 systemctl daemon-reload >/dev/null 2>&1 || :
55
56 # The collecty service should be started on default.
57 systemctl enable collecty.service > /dev/null 2>&1 || :
58 end
59
60 # Disable the service that is to be removed and stop it if it is still running.
61 script preun
62 systemctl --no-reload disable collecty.service >/dev/null 2>&1 || :
63 systemctl stop collecty.service >/dev/null 2>&1 || :
64 end
65
66 # Just tell systemd that unitfiles have been removed.
67 script postun
68 systemctl daemon-reload >/dev/null 2>&1 || :
69 end
70
71 # Try to restart the service if it is running.
72 script postup
73 systemctl daemon-reload >/dev/null 2>&1 || :
74 systemctl try-restart collecty.service >/dev/null 2>&1 || :
75 end
18de5133
MT
76 end
77end