Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dbus/
Date: Tue, 11 Oct 2016 05:08:46
Message-Id: 1476162440.f88bce681f1945fed09ba3bee25f0dd7e7596e63.polynomial-c@gentoo
1 commit: f88bce681f1945fed09ba3bee25f0dd7e7596e63
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 11 05:00:57 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 11 05:07:20 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f88bce68
7
8 sys-apps/dbus: Security bump to versions 1.8.22 and 1.10.12 (bug #596772).
9
10 Package-Manager: portage-2.3.1
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/dbus/Manifest | 2 +
14 sys-apps/dbus/dbus-1.10.12.ebuild | 268 ++++++++++++++++++++++++++++++++++++++
15 sys-apps/dbus/dbus-1.8.22.ebuild | 252 +++++++++++++++++++++++++++++++++++
16 3 files changed, 522 insertions(+)
17
18 diff --git a/sys-apps/dbus/Manifest b/sys-apps/dbus/Manifest
19 index 1f62d01..a8aa557 100644
20 --- a/sys-apps/dbus/Manifest
21 +++ b/sys-apps/dbus/Manifest
22 @@ -1,4 +1,6 @@
23 DIST dbus-1.10.10.tar.gz 1984077 SHA256 9d8f1d069ab4d1a0255d7b400ea3bcef4430c42e729b1012abb2890e3f739a43 SHA512 8875c43d1f100461c3482a247f1a9d3ffd4377ae81e97676e0111d57f0393d53beeebb965c8a06054bf3af1ae4c72e1e456fdbc42c7ababc4e153e5ce7c23489 WHIRLPOOL 990b46bc75574108bd456579b77434d70767c15464df0f396bcd063ad1f3edeef74a4e6d6f388a3cbe006fb0d10067e5efa322afd28f2ffe7d50bf1d6b13f535
24 +DIST dbus-1.10.12.tar.gz 1984805 SHA256 210a79430b276eafc6406c71705e9140d25b9956d18068df98a70156dc0e475d SHA512 6616c7b2926a6fb6158d0a0a24d1b887173ca215a2f3185b95cc5f08df64fed1977e16c86c6ae530960453b6c585ae24ea4c9976e7537a45f9c6366c43baa52d WHIRLPOOL 9bd9ed70c4d9890dad09b2bcd07ee40ef472f1436cefe3bc89aaddbb183532939d6ce19da721a673a39f2e6b07e634b179190cec00e1a48fa2d9be6c830cc696
25 DIST dbus-1.10.8.tar.gz 1976732 SHA256 baf3d22baa26d3bdd9edc587736cd5562196ce67996d65b82103bedbe1f0c014 SHA512 becc6c27b81a716ca498f3cdce2dae9fe5b39d7d334f66a9eae7ae8ce6448ea8c5fdfc500138371992828693a2f8f3a503efb147e163103aa64eac9b4bcf9906 WHIRLPOOL 3b2276bbc606a3997dd95d831271b8b102f45e8fc5696d88886f1e7b72fd134413cd3d3dd1a2608dcdfdf8d4caefc94e634c90b278fccd7d74cc4cce44696d92
26 DIST dbus-1.8.16.tar.gz 1866436 SHA256 7f795268efd343ff0498786acb35097564390d40b1b6158daf1b4f742b522b07 SHA512 79e0fb21912fe5644e1babf96fc2a64595edef6524ef50d54f6beb8cd0f1224b8484a52a7815494b40bd00bf048176002ab35443c0bb6bd04abdc3c60599f1d5 WHIRLPOOL 5e992caf51c0fb24885099b957ce01205a249118c5db27c5161e6d45ae85a889d7f26d32dfa03a207025e87e233f74c6cffd09a5ccc44d4e598d3d535b8d4247
27 DIST dbus-1.8.20.tar.gz 1871722 SHA256 5c4fbf4c64621c96e871da91d2b729a5b00536e116d3c4612a469d924b1b703a SHA512 d63c29267e0445e329dc811e72d7858847fbae260920fd359b1fa889f08dead2a8b380e372718994daa92a262af970d1fcc58034fbcb8ffb3026ab5f30f63067 WHIRLPOOL 9eaf3ab12396159e119cfe3435fc5d160440dab4c4abce4d506450f6db59b72e6e4feba43b1ee9fd304a8e514983186a8e61f3a1f0c917c2c72891f72167201e
28 +DIST dbus-1.8.22.tar.gz 1894768 SHA256 19a52e5a42b2a2faf15a54745a098bb8cf55a76598fa4a0b8b6d886adcbe1d53 SHA512 e165ca07d0c1bc7a9e7e5e5541bb61fc24dccf52e762ce52e4c05c9a5a503bdcec6202171ca92789cde57121be360f40ac28b0ba5f9a7c23dbc4da4aec3627ff WHIRLPOOL b739a98b7be190f1ff5b40b8fe4e828e57519c8289a0806932d59037022be461806d28ec988d2766c82054fa066696c558e7d9371c12c2c9c66d6679f5e7a64f
29
30 diff --git a/sys-apps/dbus/dbus-1.10.12.ebuild b/sys-apps/dbus/dbus-1.10.12.ebuild
31 new file mode 100644
32 index 00000000..3d6b039
33 --- /dev/null
34 +++ b/sys-apps/dbus/dbus-1.10.12.ebuild
35 @@ -0,0 +1,268 @@
36 +# Copyright 1999-2016 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +# $Id$
39 +
40 +EAPI=6
41 +PYTHON_COMPAT=( python2_7 )
42 +
43 +inherit autotools eutils linux-info flag-o-matic python-any-r1 readme.gentoo-r1 systemd virtualx user multilib-minimal
44 +
45 +DESCRIPTION="A message bus system, a simple way for applications to talk to each other"
46 +HOMEPAGE="https://dbus.freedesktop.org/"
47 +SRC_URI="https://dbus.freedesktop.org/releases/dbus/${P}.tar.gz"
48 +
49 +LICENSE="|| ( AFL-2.1 GPL-2 )"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
52 +IUSE="debug doc selinux static-libs systemd test user-session X"
53 +
54 +RESTRICT="test"
55 +
56 +CDEPEND="
57 + >=dev-libs/expat-2
58 + selinux? (
59 + sys-libs/libselinux
60 + )
61 + systemd? ( sys-apps/systemd:0= )
62 + X? (
63 + x11-libs/libX11
64 + x11-libs/libXt
65 + )
66 + abi_x86_32? (
67 + !<=app-emulation/emul-linux-x86-baselibs-20131008-r4
68 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
69 + )
70 +"
71 +DEPEND="${CDEPEND}
72 + app-text/xmlto
73 + app-text/docbook-xml-dtd:4.4
74 + virtual/pkgconfig
75 + doc? ( app-doc/doxygen )
76 + test? (
77 + >=dev-libs/glib-2.36:2
78 + ${PYTHON_DEPS}
79 + )
80 +"
81 +RDEPEND="${CDEPEND}
82 + selinux? ( sec-policy/selinux-dbus )
83 +"
84 +
85 +DOC_CONTENTS="
86 + Some applications require a session bus in addition to the system
87 + bus. Please see \`man dbus-launch\` for more information.
88 +"
89 +
90 +# out of sources build dir for make check
91 +TBD=${WORKDIR}/${P}-tests-build
92 +
93 +pkg_setup() {
94 + enewgroup messagebus
95 + enewuser messagebus -1 -1 -1 messagebus
96 +
97 + use test && python-any-r1_pkg_setup
98 +
99 + if use kernel_linux; then
100 + CONFIG_CHECK="~EPOLL"
101 + linux-info_pkg_setup
102 + fi
103 +}
104 +
105 +src_prepare() {
106 + # Tests were restricted because of this
107 + sed -i \
108 + -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \
109 + -e '/"dispatch"/d' \
110 + bus/test-main.c || die
111 +
112 + eapply_user
113 +
114 + # required for asneeded patch but also for bug 263909, cross-compile so
115 + # don't remove eautoreconf
116 + eautoreconf
117 +}
118 +
119 +multilib_src_configure() {
120 + local docconf myconf
121 +
122 + # so we can get backtraces from apps
123 + case ${CHOST} in
124 + *-mingw*)
125 + # error: unrecognized command line option '-rdynamic' wrt #488036
126 + ;;
127 + *)
128 + append-flags -rdynamic
129 + ;;
130 + esac
131 +
132 + # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
133 + # not on an SELinux profile.
134 + myconf=(
135 + --localstatedir="${EPREFIX}/var"
136 + --docdir="${EPREFIX}/usr/share/doc/${PF}"
137 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
138 + $(use_enable static-libs static)
139 + $(use_enable debug verbose-mode)
140 + --disable-asserts
141 + --disable-checks
142 + $(use_enable selinux)
143 + $(use_enable selinux libaudit)
144 + --disable-apparmor
145 + $(use_enable kernel_linux inotify)
146 + $(use_enable kernel_FreeBSD kqueue)
147 + $(use_enable systemd)
148 + $(use_enable user-session)
149 + --disable-embedded-tests
150 + --disable-modular-tests
151 + $(use_enable debug stats)
152 + --with-session-socket-dir="${EPREFIX}"/tmp
153 + --with-system-pid-file="${EPREFIX}"/var/run/dbus.pid
154 + --with-system-socket="${EPREFIX}"/var/run/dbus/system_bus_socket
155 + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
156 + --with-dbus-user=messagebus
157 + $(use_with X x)
158 + )
159 +
160 + if [[ ${CHOST} == *-darwin* ]]; then
161 + myconf+=(
162 + --enable-launchd
163 + --with-launchd-agent-dir="${EPREFIX}"/Library/LaunchAgents
164 + )
165 + fi
166 +
167 + if multilib_is_native_abi; then
168 + docconf=(
169 + --enable-xml-docs
170 + $(use_enable doc doxygen-docs)
171 + )
172 + else
173 + docconf=(
174 + --disable-xml-docs
175 + --disable-doxygen-docs
176 + )
177 + myconf+=(
178 + --disable-selinux
179 + --disable-libaudit
180 + --disable-systemd
181 + --without-x
182 +
183 + # expat is used for the daemon only
184 + # fake the check for multilib library build
185 + ac_cv_lib_expat_XML_ParserCreate_MM=yes
186 + )
187 + fi
188 +
189 + einfo "Running configure in ${BUILD_DIR}"
190 + ECONF_SOURCE="${S}" econf "${myconf[@]}" "${docconf[@]}"
191 +
192 + if multilib_is_native_abi && use test; then
193 + mkdir "${TBD}" || die
194 + cd "${TBD}" || die
195 + einfo "Running configure in ${TBD}"
196 + ECONF_SOURCE="${S}" econf "${myconf[@]}" \
197 + $(use_enable test asserts) \
198 + $(use_enable test checks) \
199 + $(use_enable test embedded-tests) \
200 + $(has_version dev-libs/dbus-glib && echo --enable-modular-tests)
201 + fi
202 +}
203 +
204 +multilib_src_compile() {
205 + if multilib_is_native_abi; then
206 + # after the compile, it uses a selinuxfs interface to
207 + # check if the SELinux policy has the right support
208 + use selinux && addwrite /selinux/access
209 +
210 + einfo "Running make in ${BUILD_DIR}"
211 + emake
212 +
213 + if use test; then
214 + einfo "Running make in ${TBD}"
215 + emake -C "${TBD}"
216 + fi
217 + else
218 + emake -C dbus libdbus-1.la
219 + fi
220 +}
221 +
222 +src_test() {
223 + DBUS_VERBOSE=1 Xemake -j1 -C "${TBD}" check
224 +}
225 +
226 +multilib_src_install() {
227 + if multilib_is_native_abi; then
228 + emake DESTDIR="${D}" install
229 + else
230 + emake DESTDIR="${D}" install-pkgconfigDATA
231 + emake DESTDIR="${D}" -C dbus \
232 + install-libLTLIBRARIES install-dbusincludeHEADERS \
233 + install-nodist_dbusarchincludeHEADERS
234 + fi
235 +}
236 +
237 +multilib_src_install_all() {
238 + newinitd "${FILESDIR}"/dbus.initd-r1 dbus
239 +
240 + if use X; then
241 + # dbus X session script (#77504)
242 + # turns out to only work for GDM (and startx). has been merged into
243 + # other desktop (kdm and such scripts)
244 + exeinto /etc/X11/xinit/xinitrc.d
245 + doexe "${FILESDIR}"/80-dbus
246 + fi
247 +
248 + # needs to exist for dbus sessions to launch
249 + keepdir /usr/share/dbus-1/services
250 + keepdir /etc/dbus-1/{session,system}.d
251 + # machine-id symlink from pkg_postinst()
252 + keepdir /var/lib/dbus
253 + # let the init script create the /var/run/dbus directory
254 + rm -rf "${ED}"/var/run
255 +
256 + dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO
257 + readme.gentoo_create_doc
258 +
259 + prune_libtool_files --all
260 +}
261 +
262 +pkg_postinst() {
263 + readme.gentoo_print_elog
264 +
265 + # Ensure unique id is generated and put it in /etc wrt #370451 but symlink
266 + # for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse
267 + # dependencies with hardcoded paths (although the known ones got fixed already)
268 + dbus-uuidgen --ensure="${EROOT%/}"/etc/machine-id
269 + ln -sf "${EPREFIX}"/etc/machine-id "${EROOT%/}"/var/lib/dbus/machine-id
270 +
271 + if [[ ${CHOST} == *-darwin* ]]; then
272 + local plist="org.freedesktop.dbus-session.plist"
273 + elog
274 + elog
275 + elog "For MacOS/Darwin we now ship launchd support for dbus."
276 + elog "This enables autolaunch of dbus at session login and makes"
277 + elog "dbus usable under MacOS/Darwin."
278 + elog
279 + elog "The launchd plist file ${plist} has been"
280 + elog "installed in ${EPREFIX}/Library/LaunchAgents."
281 + elog "For it to be used, you will have to do all of the following:"
282 + elog " + cd ~/Library/LaunchAgents"
283 + elog " + ln -s ${EPREFIX}/Library/LaunchAgents/${plist}"
284 + elog " + logout and log back in"
285 + elog
286 + elog "If your application needs a proper DBUS_SESSION_BUS_ADDRESS"
287 + elog "specified and refused to start otherwise, then export the"
288 + elog "the following to your environment:"
289 + elog " DBUS_SESSION_BUS_ADDRESS=\"launchd:env=DBUS_LAUNCHD_SESSION_BUS_SOCKET\""
290 + fi
291 +
292 + if use user-session; then
293 + ewarn "You have enabled user-session. Please note this can cause"
294 + ewarn "bogus behaviors in several dbus consumers that are not prepared"
295 + ewarn "for this dbus activation method yet."
296 + ewarn
297 + ewarn "See the following link for background on this change:"
298 + ewarn "https://lists.freedesktop.org/archives/systemd-devel/2015-January/027711.html"
299 + ewarn
300 + ewarn "Known issues are tracked here:"
301 + ewarn "https://bugs.gentoo.org/show_bug.cgi?id=576028"
302 + fi
303 +}
304
305 diff --git a/sys-apps/dbus/dbus-1.8.22.ebuild b/sys-apps/dbus/dbus-1.8.22.ebuild
306 new file mode 100644
307 index 00000000..af1fcdc
308 --- /dev/null
309 +++ b/sys-apps/dbus/dbus-1.8.22.ebuild
310 @@ -0,0 +1,252 @@
311 +# Copyright 1999-2015 Gentoo Foundation
312 +# Distributed under the terms of the GNU General Public License v2
313 +# $Id$
314 +
315 +EAPI=5
316 +PYTHON_COMPAT=( python2_7 )
317 +
318 +inherit autotools eutils linux-info flag-o-matic python-any-r1 readme.gentoo systemd virtualx user multilib-minimal
319 +
320 +DESCRIPTION="A message bus system, a simple way for applications to talk to each other"
321 +HOMEPAGE="https://dbus.freedesktop.org/"
322 +SRC_URI="https://dbus.freedesktop.org/releases/dbus/${P}.tar.gz"
323 +
324 +LICENSE="|| ( AFL-2.1 GPL-2 )"
325 +SLOT="0"
326 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
327 +IUSE="debug doc selinux static-libs systemd test X"
328 +
329 +CDEPEND="
330 + >=dev-libs/expat-2
331 + selinux? (
332 + sys-libs/libselinux
333 + )
334 + systemd? ( sys-apps/systemd:0= )
335 + X? (
336 + x11-libs/libX11
337 + x11-libs/libXt
338 + )
339 + abi_x86_32? (
340 + !<=app-emulation/emul-linux-x86-baselibs-20131008-r4
341 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
342 + )
343 +"
344 +DEPEND="${CDEPEND}
345 + app-text/xmlto
346 + app-text/docbook-xml-dtd:4.4
347 + virtual/pkgconfig
348 + doc? ( app-doc/doxygen )
349 + test? (
350 + >=dev-libs/glib-2.24:2
351 + ${PYTHON_DEPS}
352 + )
353 +"
354 +RDEPEND="${CDEPEND}
355 + selinux? ( sec-policy/selinux-dbus )
356 +"
357 +
358 +DOC_CONTENTS="
359 + Some applications require a session bus in addition to the system
360 + bus. Please see \`man dbus-launch\` for more information.
361 +"
362 +
363 +# out of sources build dir for make check
364 +TBD=${WORKDIR}/${P}-tests-build
365 +
366 +pkg_setup() {
367 + enewgroup messagebus
368 + enewuser messagebus -1 -1 -1 messagebus
369 +
370 + use test && python-any-r1_pkg_setup
371 +
372 + if use kernel_linux; then
373 + CONFIG_CHECK="~EPOLL"
374 + linux-info_pkg_setup
375 + fi
376 +}
377 +
378 +src_prepare() {
379 + # Tests were restricted because of this
380 + sed -i \
381 + -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \
382 + -e '/"dispatch"/d' \
383 + bus/test-main.c || die
384 +
385 + epatch_user
386 +
387 + # required for asneeded patch but also for bug 263909, cross-compile so
388 + # don't remove eautoreconf
389 + eautoreconf
390 +}
391 +
392 +multilib_src_configure() {
393 + local docconf myconf
394 +
395 + # so we can get backtraces from apps
396 + case ${CHOST} in
397 + *-mingw*)
398 + # error: unrecognized command line option '-rdynamic' wrt #488036
399 + ;;
400 + *)
401 + append-flags -rdynamic
402 + ;;
403 + esac
404 +
405 + # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
406 + # not on an SELinux profile.
407 + myconf=(
408 + --localstatedir="${EPREFIX}/var"
409 + --docdir="${EPREFIX}/usr/share/doc/${PF}"
410 + --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
411 + $(use_enable static-libs static)
412 + $(use_enable debug verbose-mode)
413 + --disable-asserts
414 + --disable-checks
415 + $(use_enable selinux)
416 + $(use_enable selinux libaudit)
417 + $(use_enable kernel_linux inotify)
418 + $(use_enable kernel_FreeBSD kqueue)
419 + $(use_enable systemd)
420 + --disable-embedded-tests
421 + --disable-modular-tests
422 + $(use_enable debug stats)
423 + --with-session-socket-dir="${EPREFIX}"/tmp
424 + --with-system-pid-file="${EPREFIX}"/var/run/dbus.pid
425 + --with-system-socket="${EPREFIX}"/var/run/dbus/system_bus_socket
426 + --with-dbus-user=messagebus
427 + $(use_with X x)
428 + "$(systemd_with_unitdir)"
429 + )
430 +
431 + if [[ ${CHOST} == *-darwin* ]]; then
432 + myconf+=(
433 + --enable-launchd
434 + --with-launchd-agent-dir="${EPREFIX}"/Library/LaunchAgents
435 + )
436 + fi
437 +
438 + if multilib_is_native_abi; then
439 + docconf=(
440 + --enable-xml-docs
441 + $(use_enable doc doxygen-docs)
442 + )
443 + else
444 + docconf=(
445 + --disable-xml-docs
446 + --disable-doxygen-docs
447 + )
448 + myconf+=(
449 + --disable-selinux
450 + --disable-libaudit
451 + --disable-systemd
452 + --without-x
453 +
454 + # expat is used for the daemon only
455 + # fake the check for multilib library build
456 + ac_cv_lib_expat_XML_ParserCreate_MM=yes
457 + )
458 + fi
459 +
460 + einfo "Running configure in ${BUILD_DIR}"
461 + ECONF_SOURCE="${S}" econf "${myconf[@]}" "${docconf[@]}"
462 +
463 + if multilib_is_native_abi && use test; then
464 + mkdir "${TBD}" || die
465 + cd "${TBD}" || die
466 + einfo "Running configure in ${TBD}"
467 + ECONF_SOURCE="${S}" econf "${myconf[@]}" \
468 + $(use_enable test asserts) \
469 + $(use_enable test checks) \
470 + $(use_enable test embedded-tests) \
471 + $(has_version dev-libs/dbus-glib && echo --enable-modular-tests)
472 + fi
473 +}
474 +
475 +multilib_src_compile() {
476 + if multilib_is_native_abi; then
477 + # after the compile, it uses a selinuxfs interface to
478 + # check if the SELinux policy has the right support
479 + use selinux && addwrite /selinux/access
480 +
481 + einfo "Running make in ${BUILD_DIR}"
482 + emake
483 +
484 + if use test; then
485 + einfo "Running make in ${TBD}"
486 + emake -C "${TBD}"
487 + fi
488 + else
489 + emake -C dbus libdbus-1.la
490 + fi
491 +}
492 +
493 +src_test() {
494 + DBUS_VERBOSE=1 Xemake -j1 -C "${TBD}" check
495 +}
496 +
497 +multilib_src_install() {
498 + if multilib_is_native_abi; then
499 + emake DESTDIR="${D}" install
500 + else
501 + emake DESTDIR="${D}" install-pkgconfigDATA
502 + emake DESTDIR="${D}" -C dbus \
503 + install-libLTLIBRARIES install-dbusincludeHEADERS \
504 + install-nodist_dbusarchincludeHEADERS
505 + fi
506 +}
507 +
508 +multilib_src_install_all() {
509 + newinitd "${FILESDIR}"/dbus.initd dbus
510 +
511 + if use X; then
512 + # dbus X session script (#77504)
513 + # turns out to only work for GDM (and startx). has been merged into
514 + # other desktop (kdm and such scripts)
515 + exeinto /etc/X11/xinit/xinitrc.d
516 + doexe "${FILESDIR}"/80-dbus
517 + fi
518 +
519 + # needs to exist for dbus sessions to launch
520 + keepdir /usr/share/dbus-1/services
521 + keepdir /etc/dbus-1/{session,system}.d
522 + # machine-id symlink from pkg_postinst()
523 + keepdir /var/lib/dbus
524 + # let the init script create the /var/run/dbus directory
525 + rm -rf "${ED}"/var/run
526 +
527 + dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO
528 + readme.gentoo_create_doc
529 +
530 + prune_libtool_files --all
531 +}
532 +
533 +pkg_postinst() {
534 + readme.gentoo_print_elog
535 +
536 + # Ensure unique id is generated and put it in /etc wrt #370451 but symlink
537 + # for DBUS_MACHINE_UUID_FILE (see tools/dbus-launch.c) and reverse
538 + # dependencies with hardcoded paths (although the known ones got fixed already)
539 + dbus-uuidgen --ensure="${EROOT%/}"/etc/machine-id
540 + ln -sf "${EPREFIX}"/etc/machine-id "${EROOT%/}"/var/lib/dbus/machine-id
541 +
542 + if [[ ${CHOST} == *-darwin* ]]; then
543 + local plist="org.freedesktop.dbus-session.plist"
544 + elog
545 + elog
546 + elog "For MacOS/Darwin we now ship launchd support for dbus."
547 + elog "This enables autolaunch of dbus at session login and makes"
548 + elog "dbus usable under MacOS/Darwin."
549 + elog
550 + elog "The launchd plist file ${plist} has been"
551 + elog "installed in ${EPREFIX}/Library/LaunchAgents."
552 + elog "For it to be used, you will have to do all of the following:"
553 + elog " + cd ~/Library/LaunchAgents"
554 + elog " + ln -s ${EPREFIX}/Library/LaunchAgents/${plist}"
555 + elog " + logout and log back in"
556 + elog
557 + elog "If your application needs a proper DBUS_SESSION_BUS_ADDRESS"
558 + elog "specified and refused to start otherwise, then export the"
559 + elog "the following to your environment:"
560 + elog " DBUS_SESSION_BUS_ADDRESS=\"launchd:env=DBUS_LAUNCHD_SESSION_BUS_SOCKET\""
561 + fi
562 +}