]>
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 |
897277ab | 8 | release = 2 |
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 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 |
44 | end | |
45 | ||
46 | packages | |
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 | 84 | end |