1 |
ssuominen 11/09/26 21:04:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dbus-1.4.16.ebuild |
5 |
Log: |
6 |
Version bump wrt #384293 by "ScytheMan" |
7 |
|
8 |
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.302 sys-apps/dbus/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.302&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.302&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/ChangeLog?r1=1.301&r2=1.302 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v |
20 |
retrieving revision 1.301 |
21 |
retrieving revision 1.302 |
22 |
diff -u -r1.301 -r1.302 |
23 |
--- ChangeLog 23 Sep 2011 12:45:03 -0000 1.301 |
24 |
+++ ChangeLog 26 Sep 2011 21:04:55 -0000 1.302 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-apps/dbus |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.301 2011/09/23 12:45:03 polynomial-c Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.302 2011/09/26 21:04:55 ssuominen Exp $ |
30 |
+ |
31 |
+*dbus-1.4.16 (26 Sep 2011) |
32 |
+ |
33 |
+ 26 Sep 2011; Samuli Suominen <ssuominen@g.o> +dbus-1.4.16.ebuild: |
34 |
+ Version bump wrt #384293 by "ScytheMan" |
35 |
|
36 |
23 Sep 2011; Lars Wendler <polynomial-c@g.o> files/dbus.init-1.0: |
37 |
non-maintainer commit: Fixed warnings in init script (bug #381883). |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-apps/dbus/dbus-1.4.16.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/dbus-1.4.16.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/dbus/dbus-1.4.16.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: dbus-1.4.16.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/dbus-1.4.16.ebuild,v 1.1 2011/09/26 21:04:55 ssuominen Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
inherit autotools eutils multilib flag-o-matic python systemd virtualx |
54 |
|
55 |
DESCRIPTION="A message bus system, a simple way for applications to talk to each other" |
56 |
HOMEPAGE="http://dbus.freedesktop.org/" |
57 |
SRC_URI="http://dbus.freedesktop.org/releases/dbus/${P}.tar.gz" |
58 |
|
59 |
LICENSE="|| ( GPL-2 AFL-2.1 )" |
60 |
SLOT="0" |
61 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
62 |
IUSE="debug doc selinux static-libs test X" |
63 |
|
64 |
RDEPEND=" |
65 |
X? ( |
66 |
x11-libs/libX11 |
67 |
x11-libs/libXt |
68 |
) |
69 |
selinux? ( |
70 |
sys-libs/libselinux |
71 |
sec-policy/selinux-dbus |
72 |
) |
73 |
>=dev-libs/expat-1.95.8 |
74 |
" |
75 |
DEPEND="${RDEPEND} |
76 |
dev-util/pkgconfig |
77 |
doc? ( |
78 |
app-doc/doxygen |
79 |
app-text/docbook-xml-dtd:4.1.2 |
80 |
app-text/xmlto |
81 |
) |
82 |
test? ( |
83 |
=dev-lang/python-2* |
84 |
>=dev-libs/glib-2.22:2 |
85 |
) |
86 |
" |
87 |
|
88 |
# out of sources build directory |
89 |
BD=${WORKDIR}/${P}-build |
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 |
if use test; then |
98 |
python_set_active_version 2 |
99 |
python_pkg_setup |
100 |
fi |
101 |
} |
102 |
|
103 |
src_prepare() { |
104 |
# Tests were restricted because of this |
105 |
sed -i \ |
106 |
-e 's/.*bus_dispatch_test.*/printf ("Disabled due to excess noise\\n");/' \ |
107 |
-e '/"dispatch"/d' \ |
108 |
bus/test-main.c || die |
109 |
|
110 |
epatch "${FILESDIR}"/${PN}-1.4.0-asneeded.patch |
111 |
|
112 |
# required for asneeded patch but also for bug 263909, cross-compile so |
113 |
# don't remove eautoreconf |
114 |
eautoreconf |
115 |
} |
116 |
|
117 |
src_configure() { |
118 |
local my_conf |
119 |
|
120 |
# so we can get backtraces from apps |
121 |
append-flags -rdynamic |
122 |
|
123 |
# libaudit is *only* used in DBus wrt SELinux support, so disable it, if |
124 |
# not on an SELinux profile. |
125 |
my_conf="--disable-asserts |
126 |
--disable-checks |
127 |
--disable-embedded-tests |
128 |
--disable-modular-tests |
129 |
$(use_with X x) |
130 |
$(use_enable debug verbose-mode) |
131 |
$(use_enable debug asserts) |
132 |
$(use_enable kernel_linux inotify) |
133 |
$(use_enable kernel_FreeBSD kqueue) |
134 |
$(use_enable selinux) |
135 |
$(use_enable selinux libaudit) |
136 |
$(use_enable static-libs static) |
137 |
--enable-shared |
138 |
--with-xml=expat |
139 |
--with-system-pid-file=/var/run/dbus.pid |
140 |
--with-system-socket=/var/run/dbus/system_bus_socket |
141 |
--with-session-socket-dir=/tmp |
142 |
--with-dbus-user=messagebus |
143 |
$(systemd_with_unitdir) |
144 |
--localstatedir=/var |
145 |
--htmldir=/usr/share/doc/${PF}/html" |
146 |
|
147 |
mkdir "${BD}" |
148 |
cd "${BD}" |
149 |
einfo "Running configure in ${BD}" |
150 |
ECONF_SOURCE="${S}" econf ${my_conf} \ |
151 |
$(use_enable doc doxygen-docs) \ |
152 |
$(use_enable doc xml-docs) |
153 |
|
154 |
if use test; then |
155 |
local circ |
156 |
has_version dev-libs/dbus-glib && circ="--enable-modular-tests" |
157 |
|
158 |
mkdir "${TBD}" |
159 |
cd "${TBD}" |
160 |
einfo "Running configure in ${TBD}" |
161 |
ECONF_SOURCE="${S}" econf \ |
162 |
${my_conf} \ |
163 |
$(use_enable test checks) \ |
164 |
$(use_enable test embedded-tests) \ |
165 |
$(use_enable test asserts) \ |
166 |
${circ} |
167 |
fi |
168 |
} |
169 |
|
170 |
src_compile() { |
171 |
# after the compile, it uses a selinuxfs interface to |
172 |
# check if the SELinux policy has the right support |
173 |
use selinux && addwrite /selinux/access |
174 |
|
175 |
cd "${BD}" |
176 |
einfo "Running make in ${BD}" |
177 |
emake || die |
178 |
|
179 |
if use test; then |
180 |
cd "${TBD}" |
181 |
einfo "Running make in ${TBD}" |
182 |
emake || die |
183 |
fi |
184 |
} |
185 |
|
186 |
src_test() { |
187 |
cd "${TBD}" |
188 |
DBUS_VERBOSE=1 Xemake -j1 check || die |
189 |
} |
190 |
|
191 |
src_install() { |
192 |
# initscript |
193 |
newinitd "${FILESDIR}"/dbus.init-1.0 dbus || die |
194 |
|
195 |
if use X; then |
196 |
# dbus X session script (#77504) |
197 |
# turns out to only work for GDM (and startx). has been merged into |
198 |
# other desktop (kdm and such scripts) |
199 |
exeinto /etc/X11/xinit/xinitrc.d/ |
200 |
doexe "${FILESDIR}"/80-dbus || die |
201 |
fi |
202 |
|
203 |
# needs to exist for the system socket |
204 |
keepdir /var/run/dbus |
205 |
|
206 |
# needs to exist for dbus sessions to launch |
207 |
keepdir /usr/lib/dbus-1.0/services |
208 |
keepdir /usr/share/dbus-1/services |
209 |
keepdir /etc/dbus-1/system.d/ |
210 |
keepdir /etc/dbus-1/session.d/ |
211 |
|
212 |
dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO || die |
213 |
dohtml doc/*.html || die |
214 |
|
215 |
cd "${BD}" |
216 |
emake DESTDIR="${D}" install || die |
217 |
|
218 |
# remove .la files |
219 |
find "${D}" -type f -name '*.la' -exec rm -f {} + |
220 |
} |
221 |
|
222 |
pkg_postinst() { |
223 |
elog "To start the D-Bus system-wide messagebus by default" |
224 |
elog "you should add it to the default runlevel :" |
225 |
elog "\`rc-update add dbus default\`" |
226 |
elog |
227 |
elog "Some applications require a session bus in addition to the system" |
228 |
elog "bus. Please see \`man dbus-launch\` for more information." |
229 |
elog |
230 |
ewarn "You must restart D-Bus \`/etc/init.d/dbus restart\` to run" |
231 |
ewarn "the new version of the daemon." |
232 |
ewarn "Don't do this while X is running because it will restart your X as well." |
233 |
|
234 |
# Move to /etc per #370451 and ensure unique id is generated |
235 |
[[ -e ${ROOT}/var/lib/dbus/machine-id ]] && \ |
236 |
mv -vf "${ROOT}"/var/lib/dbus/machine-id "${ROOT}"/etc/machine-id |
237 |
dbus-uuidgen --ensure="${ROOT}"/etc/machine-id |
238 |
} |