]>
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 | |
59ee75fd | 7 | version = 002 |
18de5133 MT |
8 | release = 1 |
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 | |
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 |
41 | end | |
42 | ||
43 | packages | |
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 |
77 | end |