Gentoo Archives: gentoo-commits

From: "Stephen Klimaszewski (steev)" <steev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/dbus: dbus-1.3.0.ebuild ChangeLog
Date: Mon, 03 Aug 2009 02:13:45
Message-Id: E1MXn3W-0001ge-Tb@stork.gentoo.org
1 steev 09/08/03 02:13:42
2
3 Modified: ChangeLog
4 Added: dbus-1.3.0.ebuild
5 Log:
6 Add DBus 1.3.0
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.236 sys-apps/dbus/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.236&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.236&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?r1=1.235&r2=1.236
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v
19 retrieving revision 1.235
20 retrieving revision 1.236
21 diff -u -r1.235 -r1.236
22 --- ChangeLog 26 Jul 2009 11:13:49 -0000 1.235
23 +++ ChangeLog 3 Aug 2009 02:13:42 -0000 1.236
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-apps/dbus
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.235 2009/07/26 11:13:49 eva Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.236 2009/08/03 02:13:42 steev Exp $
29 +
30 +*dbus-1.3.0 (03 Aug 2009)
31 +
32 + 03 Aug 2009; <steev@g.o> +dbus-1.3.0.ebuild:
33 + Add dbus 1.3.0.
34
35 26 Jul 2009; Gilles Dartiguelongue <eva@g.o>
36 -files/dbus-1.0.1-fixfilecreation.patch, -dbus-1.0.2-r2.ebuild,
37
38
39
40 1.1 sys-apps/dbus/dbus-1.3.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/dbus-1.3.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/dbus-1.3.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: dbus-1.3.0.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/dbus-1.3.0.ebuild,v 1.1 2009/08/03 02:13:42 steev Exp $
50
51 inherit eutils multilib flag-o-matic
52
53 DESCRIPTION="A message bus system, a simple way for applications to talk to each other"
54 HOMEPAGE="http://dbus.freedesktop.org/"
55 SRC_URI="http://dbus.freedesktop.org/releases/dbus/${P}.tar.gz"
56
57 LICENSE="|| ( GPL-2 AFL-2.1 )"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
60 IUSE="debug doc selinux test X"
61
62 RDEPEND="X? ( x11-libs/libXt x11-libs/libX11 )
63 selinux? ( sys-libs/libselinux
64 sec-policy/selinux-dbus )
65 >=dev-libs/expat-1.95.8
66 !<sys-apps/dbus-0.91"
67 DEPEND="${RDEPEND}
68 dev-util/pkgconfig
69 doc? ( app-doc/doxygen
70 app-text/xmlto )"
71
72 src_unpack() {
73 unpack ${A}
74 cd "${S}"
75
76 # Tests were restricted because of this
77 sed -e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \
78 -e '/"dispatch"/d' -i "${S}/bus/test-main.c"
79 }
80
81 src_compile() {
82 # so we can get backtraces from apps
83 append-flags -rdynamic
84
85 # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
86 # not on an SELinux profile.
87 econf \
88 $(use_with X x) \
89 $(use_enable kernel_linux inotify) \
90 $(use_enable kernel_FreeBSD kqueue) \
91 $(use_enable selinux) \
92 $(use_enable selinux libaudit) \
93 $(use_enable debug verbose-mode) \
94 $(use_enable debug asserts) \
95 $(use_enable test tests) \
96 $(use_enable test asserts) \
97 --with-xml=expat \
98 --with-system-pid-file=/var/run/dbus.pid \
99 --with-system-socket=/var/run/dbus/system_bus_socket \
100 --with-session-socket-dir=/tmp \
101 --with-dbus-user=messagebus \
102 --localstatedir=/var \
103 $(use_enable doc doxygen-docs) \
104 --disable-xml-docs \
105 || die "econf failed"
106
107 # after the compile, it uses a selinuxfs interface to
108 # check if the SELinux policy has the right support
109 use selinux && addwrite /selinux/access
110
111 emake || die "make failed"
112 }
113
114 src_test() {
115 DBUS_VERBOSE=1 make check || die "make check failed"
116 }
117
118 src_install() {
119 emake DESTDIR="${D}" install || die "make install failed"
120
121 # initscript
122 newinitd "${FILESDIR}"/dbus.init-1.0 dbus
123
124 if use X ; then
125 # dbus X session script (#77504)
126 # turns out to only work for GDM. has been merged into other desktop
127 # (kdm and such scripts)
128 exeinto /etc/X11/xinit/xinitrc.d/
129 doexe "${FILESDIR}"/30-dbus
130 fi
131
132 # needs to exist for the system socket
133 keepdir /var/run/dbus
134 # needs to exist for machine id
135 keepdir /var/lib/dbus
136 # needs to exist for dbus sessions to launch
137
138 keepdir /usr/lib/dbus-1.0/services
139 keepdir /usr/share/dbus-1/services
140 keepdir /etc/dbus-1/system.d/
141 keepdir /etc/dbus-1/session.d/
142
143 dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO
144 if use doc; then
145 dohtml doc/*html
146 fi
147 }
148
149 pkg_preinst() {
150 enewgroup messagebus
151 enewuser messagebus -1 "-1" -1 messagebus
152 }
153
154 pkg_postinst() {
155 elog "To start the D-Bus system-wide messagebus by default"
156 elog "you should add it to the default runlevel :"
157 elog "\`rc-update add dbus default\`"
158 elog
159 elog "Some applications require a session bus in addition to the system"
160 elog "bus. Please see \`man dbus-launch\` for more information."
161 elog
162 elog
163 ewarn "You MUST run 'revdep-rebuild' after emerging this package"
164 elog
165 ewarn "You must restart D-Bus \`/etc/init.d/dbus restart\` to run"
166 ewarn "the new version of the daemon."
167
168 if has_version x11-base/xorg-server && built_with_use x11-base/xorg-server hal; then
169 elog
170 ewarn "You are currently running X with the hal useflag enabled"
171 ewarn "restarting the dbus service WILL restart X as well"
172 ebeep 5
173 fi
174
175 if use test; then
176 elog
177 ewarn "You have unit tests enabled, this results in an insecure library"
178 ewarn "It is recommended that you reinstall *without* FEATURES=test"
179 fi
180 }