]> git.ipfire.org Git - ipfire-3.x.git/blame - collecty/collecty.nm
liboping: New package
[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
65ae6b27 7version = 003
897277ab 8release = 2
18de5133
MT
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
65ae6b27 32 libatasmart-devel
59ee75fd
MT
33 libtool-devel
34 libxslt
65ae6b27
MT
35 lm-sensors-devel
36 python3-devel
37 python3-rrdtool
59ee75fd 38 systemd-devel
18de5133
MT
39 end
40
59ee75fd
MT
41 prepare_cmds
42 [ -e "configure" ] || ./autogen.sh
18de5133
MT
43 end
44end
45
46packages
47 package %{name}
48 groups += Base
59ee75fd
MT
49
50 requires
65ae6b27
MT
51 python3-dbus
52 python3-gobject3
53 python3-rrdtool
59ee75fd
MT
54 end
55
56 script postin
57 systemctl daemon-reload >/dev/null 2>&1 || :
58
59 # The collecty service should be started on default.
60 systemctl enable collecty.service > /dev/null 2>&1 || :
61 end
62
63 # Disable the service that is to be removed and stop it if it is still running.
64 script preun
65 systemctl --no-reload disable collecty.service >/dev/null 2>&1 || :
66 systemctl stop collecty.service >/dev/null 2>&1 || :
67 end
68
69 # Just tell systemd that unitfiles have been removed.
70 script postun
71 systemctl daemon-reload >/dev/null 2>&1 || :
72 end
73
74 # Try to restart the service if it is running.
75 script postup
76 systemctl daemon-reload >/dev/null 2>&1 || :
77 systemctl try-restart collecty.service >/dev/null 2>&1 || :
78 end
18de5133 79 end
897277ab
MT
80
81 package %{name}-debuginfo
82 template DEBUGINFO
83 end
18de5133 84end