]>
Commit | Line | Data |
---|---|---|
eef47701 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
eef47701 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = dbus |
064958a4 | 7 | version = 1.15.2 |
580e5e84 | 8 | release = 1 |
eef47701 | 9 | |
580e5e84 | 10 | maintainer = Stefan Schantl <stefan.schantl@ipfire.org> |
802ea3af | 11 | groups = System/Daemons |
064958a4 | 12 | url = https://www.freedesktop.org/software/dbus/ |
802ea3af MT |
13 | license = GPLv2+ AFL |
14 | summary = D-BUS message bus. | |
eef47701 | 15 | |
802ea3af | 16 | description |
d265d367 SS |
17 | D-BUS is a system for sending messages between applications. It is |
18 | used both for the system-wide message bus service, and as a | |
eef47701 | 19 | per-user-login-session messaging facility. |
802ea3af | 20 | end |
eef47701 | 21 | |
064958a4 PM |
22 | source_dl = https://dbus.freedesktop.org/releases/dbus/ |
23 | sources = %{thisapp}.tar.xz | |
eef47701 | 24 | |
802ea3af MT |
25 | build |
26 | requires | |
1ccb4c07 | 27 | /usr/bin/xsltproc |
802ea3af | 28 | expat-devel |
b6386122 | 29 | libcap-ng-devel |
1ccb4c07 SS |
30 | systemd-devel |
31 | xmlto | |
802ea3af | 32 | end |
920bbeb6 | 33 | |
802ea3af | 34 | configure_options += \ |
580e5e84 | 35 | --with-systemdsystemunitdir=%{unitdir} \ |
802ea3af | 36 | --with-dbus-user=dbus |
11f10f24 SS |
37 | |
38 | export LD_LIBRARY_PATH = %{DIR_APP}/dbus/.libs | |
39 | ||
40 | test | |
41 | make check | |
42 | end | |
802ea3af | 43 | end |
6142f9c9 | 44 | |
802ea3af MT |
45 | packages |
46 | package %{name} | |
d265d367 SS |
47 | prerequires += shadow-utils |
48 | ||
49 | script prein | |
216671a7 | 50 | getent group dbus >/dev/null || groupadd -r dbus |
d265d367 | 51 | getent passwd dbus >/dev/null || \ |
216671a7 SS |
52 | useradd -r -g dbus -d / -s /sbin/nologin \ |
53 | -c "User for dbus service" dbus | |
d265d367 SS |
54 | exit 0 |
55 | end | |
56 | ||
57 | # Just search for new unit files that were just installed. | |
58 | script postin | |
580e5e84 | 59 | systemctl daemon-reload >/dev/null 2>&1 || : |
1f9bc2f0 | 60 | |
d265d367 | 61 | # The dbus service should be started on default. |
580e5e84 | 62 | systemctl enable dbus.service > /dev/null 2>&1 || : |
d265d367 SS |
63 | end |
64 | ||
65 | # Disable the service that is to be removed and stop it if it is still running. | |
66 | script preun | |
580e5e84 MT |
67 | systemctl --no-reload disable dbus.service >/dev/null 2>&1 || : |
68 | systemctl stop dbus.service >/dev/null 2>&1 || : | |
d265d367 SS |
69 | end |
70 | ||
71 | # Just tell systemd that unitfiles have been removed. | |
72 | script postun | |
580e5e84 | 73 | systemctl daemon-reload >/dev/null 2>&1 || : |
d265d367 SS |
74 | end |
75 | ||
76 | # Try to restart the service if it is running. | |
77 | script postup | |
580e5e84 MT |
78 | systemctl daemon-reload >/dev/null 2>&1 || : |
79 | systemctl try-restart dbus.service >/dev/null 2>&1 || : | |
d265d367 | 80 | end |
802ea3af | 81 | end |
1f9bc2f0 | 82 | |
802ea3af MT |
83 | package %{name}-libs |
84 | template LIBS | |
85 | end | |
1f9bc2f0 | 86 | |
802ea3af MT |
87 | package %{name}-devel |
88 | template DEVEL | |
1f9bc2f0 | 89 | |
278ecf9f | 90 | files += %{libdir}/dbus-1.0 |
802ea3af | 91 | end |
1f9bc2f0 MT |
92 | |
93 | package %{name}-debuginfo | |
94 | template DEBUGINFO | |
95 | end | |
802ea3af | 96 | end |