Annotation of /trunk/core/dbus/dbus-1.12.8-r1.smage2
Parent Directory | Revision Log
Revision 31134 -
(hide annotations)
(download)
Tue Jun 5 12:03:24 2018 UTC (6 years, 3 months ago) by niro
File size: 4274 byte(s)
Tue Jun 5 12:03:24 2018 UTC (6 years, 3 months ago) by niro
File size: 4274 byte(s)
auto added: ver bump to 1.12.8-r1
1 | niro | 31134 | # $Id$ |
2 | |||
3 | PNAME="dbus" | ||
4 | PVER="1.12.8" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | SPLIT_PACKAGES="dbus-libs dbus dbus-x11" | ||
8 | |||
9 | PCAT="sys-apps" | ||
10 | HOMEPAGE="http://www.freedesktop.org/Software/dbus" | ||
11 | |||
12 | LIB_DEPEND=">= virtual/glibc" | ||
13 | |||
14 | DBUS_DEPEND=">= dev-libs/expat-2 | ||
15 | >= sys-apps/util-linux-2.27 | ||
16 | >= sys-libs/libsystemd-230" | ||
17 | |||
18 | X11_DEPEND=">= x11-libs/libX11-1.6 | ||
19 | >= x11-libs/libXt-1.1" | ||
20 | |||
21 | # disable atm | ||
22 | msetfeature "!check" | ||
23 | if mqueryfeature "check" | ||
24 | then | ||
25 | CHECK_DEPEND=">= dev-libs/dbus-glib-0.104 | ||
26 | >= dev-python/dbus-python-1.2.0" | ||
27 | else | ||
28 | CHECK_DEPEND="" | ||
29 | fi | ||
30 | |||
31 | SDEPEND="${LIB_DEPEND} | ||
32 | ${DBUS_DEPEND} | ||
33 | ${X11_DEPEND} | ||
34 | ${CHECK_DEPEND} | ||
35 | >= app-text/xmlto-0.0.26 | ||
36 | >= dev-util/pkgconfig-0.25 | ||
37 | >= sys-apps/systemd-230 | ||
38 | >= app-text/docbook-xml-dtd44-4.4 | ||
39 | >= app-text/docbook-xsl-stylesheets-1.75" | ||
40 | |||
41 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
42 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
43 | |||
44 | sminclude mtools multilib systemd | ||
45 | |||
46 | SESSION_SCRIPT_REV=2 | ||
47 | |||
48 | SRC_URI=( | ||
49 | http://dbus.freedesktop.org/releases/${PNAME}/${SRCFILE} | ||
50 | mirror://${PNAME}/${SRCFILE} | ||
51 | mirror://${PNAME}/${PNAME}-1.5.8-no-fatal-warnings.patch | ||
52 | ) | ||
53 | |||
54 | # use subdir $uri/dbus | ||
55 | UP2SUBDIR="${PNAME}" | ||
56 | UP2DATE="updatecmd_freedesktop ${PNAME} gz" | ||
57 | |||
58 | split_info_dbus-libs() | ||
59 | { | ||
60 | DESCRIPTION="Libraries for accessing D-BUS." | ||
61 | DEPEND="${LIB_DEPEND}" | ||
62 | PCAT="sys-libs" | ||
63 | } | ||
64 | |||
65 | split_info_dbus() | ||
66 | { | ||
67 | DESCRIPTION="D-BUS is a message bus system, a simple way for applications to talk to one another." | ||
68 | DEPEND="== sys-libs/dbus-libs-${PVER} | ||
69 | ${DBUS_DEPEND}" | ||
70 | } | ||
71 | |||
72 | split_info_dbus-x11() | ||
73 | { | ||
74 | DESCRIPTION="X11-requiring add-ons for D-BUS." | ||
75 | DEPEND="== sys-libs/dbus-libs-${PVER} | ||
76 | == sys-apps/dbus-${PVER} | ||
77 | ${X11_DEPEND}" | ||
78 | } | ||
79 | |||
80 | pkg_setup() | ||
81 | { | ||
82 | preinstall_dbus | ||
83 | } | ||
84 | |||
85 | src_prepare() | ||
86 | { | ||
87 | munpack ${SRCFILE} || die | ||
88 | |||
89 | # do not abort on fatal warnings by default | ||
90 | mpatch ${PNAME}-1.5.8-no-fatal-warnings.patch || die | ||
91 | } | ||
92 | |||
93 | src_compile() | ||
94 | { | ||
95 | # using /lib/systemd/system as systemd units dir even on multilib systems | ||
96 | # to have one common rules/script directory! | ||
97 | mconfigure \ | ||
98 | --with-system-pid-file=/run/dbus.pid \ | ||
99 | --with-system-socket=/run/dbus/system_bus_socket \ | ||
100 | --with-session-socket-dir=/tmp \ | ||
101 | --with-test-socket-dir=/tmp \ | ||
102 | --with-console-auth-dir=/run/console \ | ||
103 | --libexecdir=/usr/$(mlibdir)/dbus-1.0 \ | ||
104 | --localstatedir=/var \ | ||
105 | --with-dbus-user=messagebus \ | ||
106 | --with-xml=expat \ | ||
107 | --disable-verbose-mode \ | ||
108 | --disable-checks \ | ||
109 | --disable-asserts \ | ||
110 | --enable-inotify \ | ||
111 | --disable-dnotify \ | ||
112 | --with-x \ | ||
113 | --disable-doxygen-docs \ | ||
114 | --with-systemdsystemunitdir=$(mget-systemd-unit-dir) \ | ||
115 | --enable-systemd \ | ||
116 | --enable-user-session \ | ||
117 | || die | ||
118 | |||
119 | mmake || die | ||
120 | } | ||
121 | |||
122 | src_install_dbus-libs() | ||
123 | { | ||
124 | # fix ln issue on multilib: force overwrite of all symlinks | ||
125 | mmake DESTDIR=${BINDIR} LN_S="'ln -sf'" -C dbus install-libLTLIBRARIES || die | ||
126 | } | ||
127 | |||
128 | src_install_dbus() | ||
129 | { | ||
130 | # fix ln issue on multilib: force overwrite of all symlinks | ||
131 | mmake install DESTDIR=${BINDIR} LN_S="'ln -sf'" || die | ||
132 | # remove libraries provided by the dbus-libs package | ||
133 | mmake DESTDIR=${BINDIR} LN_S="'ln -sf'" -C dbus uninstall-libLTLIBRARIES || die | ||
134 | # remove dbus-launch provided by dbus-x11 package | ||
135 | mdelete /usr/bin/dbus-launch || die | ||
136 | mdelete /usr/share/man/man1/dbus-launch.1 || die | ||
137 | # remove dbus-run-session provided by dbus-x11 package | ||
138 | mdelete /usr/bin/dbus-run-session || die | ||
139 | mdelete /usr/share/man/man1/dbus-run-session.1 || die | ||
140 | |||
141 | # mark some dirs undeletable | ||
142 | mkeepdir /var/lib/dbus || die | ||
143 | mkeepdir /run/dbus || die | ||
144 | mkeepdir /usr/lib/dbus-1.0/services || die | ||
145 | mkeepdir /usr/share/dbus-1/services || die | ||
146 | mkeepdir /etc/dbus-1/system.d || die | ||
147 | mkeepdir /etc/dbus-1/session.d || die | ||
148 | |||
149 | minstalldocs AUTHORS ChangeLog COPYING HACKING NEWS README || die | ||
150 | } | ||
151 | |||
152 | src_install_dbus-x11() | ||
153 | { | ||
154 | all-abis minstallexec tools/.libs/dbus-launch || die | ||
155 | all-abis minstallman doc/dbus-launch.1 || die | ||
156 | |||
157 | all-abis minstallexec tools/.libs/dbus-run-session || die | ||
158 | all-abis minstallman doc/dbus-run-session.1 || die | ||
159 | } | ||
160 | |||
161 | preinstall_dbus() | ||
162 | { | ||
163 | # adds plugdev group | ||
164 | mgroupadd -o "-g 302" plugdev | ||
165 | |||
166 | # adds messagebus user | ||
167 | mgroupadd -o "-g 300" messagebus | ||
168 | museradd -o "-M -u 300 -g messagebus -d /dev/null -s /bin/false" messagebus | ||
169 | } | ||
170 | |||
171 | postinstall_dbus() | ||
172 | { | ||
173 | # only reload dbus-daemon if already running | ||
174 | if pidof dbus-daemon > /dev/null | ||
175 | then | ||
176 | mreloadunit dbus.service dbus-daemon | ||
177 | else | ||
178 | mstartunit dbus.service dbus-daemon | ||
179 | fi | ||
180 | } | ||
181 | |||
182 | postremove_dbus() | ||
183 | { | ||
184 | mstopunit dbus.service dbus-daemon | ||
185 | } |