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