]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - collecty/collecty.nm
nettle: Update to 3.4.1
[people/stevee/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
5fc517c0
MT
7version = 004
8release = 1
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 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
45end
46
47packages
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 85end