]>
Commit | Line | Data |
---|---|---|
18de5133 MT |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = collecty | |
65ae6b27 | 7 | version = 003 |
44b8b631 | 8 | release = 4 |
18de5133 MT |
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 | |
59ee75fd MT |
26 | autoconf |
27 | automake | |
28 | docbook-utils | |
29 | docbook-xsl | |
30 | gettext-devel | |
31 | intltool | |
65ae6b27 | 32 | libatasmart-devel |
59ee75fd | 33 | libtool-devel |
37835947 | 34 | liboping-devel |
59ee75fd | 35 | libxslt |
65ae6b27 | 36 | lm-sensors-devel |
44b8b631 | 37 | python3-devel >= 3.4 |
65ae6b27 | 38 | python3-rrdtool |
59ee75fd | 39 | systemd-devel |
18de5133 MT |
40 | end |
41 | ||
59ee75fd MT |
42 | prepare_cmds |
43 | [ -e "configure" ] || ./autogen.sh | |
18de5133 MT |
44 | end |
45 | end | |
46 | ||
47 | packages | |
48 | package %{name} | |
49 | groups += Base | |
59ee75fd MT |
50 | |
51 | requires | |
65ae6b27 MT |
52 | python3-dbus |
53 | python3-gobject3 | |
54 | python3-rrdtool | |
59ee75fd MT |
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 | |
18de5133 | 80 | end |
897277ab MT |
81 | |
82 | package %{name}-debuginfo | |
83 | template DEBUGINFO | |
84 | end | |
18de5133 | 85 | end |