]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - ibod/ibod.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/ms/ipfire-3.x.git] / ibod / ibod.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = ibod
7 version = 1.4
8 release = 2
9
10 groups = Networking/Tools
11 url = http://www.datenwelt.net/oss/ibod/
12 license = GPLv2
13 summary = An ISDN bandwidth monitor.
14
15 description
16 Ibod is a daemon program for GNU/Linux that constantly monitors \
17 the ISDN interface for inbound and outbound traffic throughput.
18 end
19
20 sources = %{thisapp}.tar.bz2
21
22 build
23 build
24 gcc %{CFLAGS} ibod.c -o ibod
25 end
26
27 install
28 mkdir -pv %{BUILDROOT}/usr/bin
29 mkdir -pv %{BUILDROOT}/usr/share/man/man{1,4}
30 mkdir -pv %{BUILDROOT}/etc/isdn
31 install -m 0755 ibod %{BUILDROOT}/usr/bin
32 install -m 0644 ibod.1 %{BUILDROOT}/usr/share/man/man1
33 install -m 0644 ibod.cf.4 %{BUILDROOT}/usr/share/man/man4
34 install -m 0644 ibod.cf %{BUILDROOT}/etc/isdn
35 end
36 end
37
38 packages
39 package %{name}
40 configfiles
41 /etc/isdn/ibod.cf
42 end
43
44 prerequires += systemd-units
45
46 # There isn't any chance at the moment to determine the names of
47 # spawned instances by a systemd service file.
48 #
49 # So we aren't able to stop any ibod process before uninstalling the package.
50 script postin
51 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
52 end
53
54 script postun
55 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
56 end
57
58 script postup
59 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
60 end
61 end
62
63 package %{name}-debuginfo
64 template DEBUGINFO
65 end
66 end