Gentoo Archives: gentoo-commits

From: "Doug Klima (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/dbus: ChangeLog dbus-1.1.20.ebuild
Date: Wed, 27 Feb 2008 20:48:09
Message-Id: E1JUTCA-0005qn-MT@stork.gentoo.org
1 cardoe 08/02/27 20:48:06
2
3 Modified: ChangeLog
4 Added: dbus-1.1.20.ebuild
5 Log:
6 fix for CVE-2008-0595. potentially fixes bug #211076
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.210 sys-apps/dbus/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.210&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?rev=1.210&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/ChangeLog?r1=1.209&r2=1.210
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v
19 retrieving revision 1.209
20 retrieving revision 1.210
21 diff -u -r1.209 -r1.210
22 --- ChangeLog 12 Feb 2008 13:01:15 -0000 1.209
23 +++ ChangeLog 27 Feb 2008 20:48:06 -0000 1.210
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-apps/dbus
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.209 2008/02/12 13:01:15 steev Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/ChangeLog,v 1.210 2008/02/27 20:48:06 cardoe Exp $
29 +
30 +*dbus-1.1.20 (27 Feb 2008)
31 +
32 + 27 Feb 2008; Doug Klima <cardoe@g.o> +dbus-1.1.20.ebuild:
33 + fix for CVE-2008-0595. potentially fixes bug #211076
34
35 12 Feb 2008; Steev Klimaszewski <steev@g.o> dbus-1.1.4.ebuild:
36 Disable libaudit when not using SELinux. Should close bug #209571.
37
38
39
40 1.1 sys-apps/dbus/dbus-1.1.20.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/dbus-1.1.20.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/dbus/dbus-1.1.20.ebuild?rev=1.1&content-type=text/plain
44
45 Index: dbus-1.1.20.ebuild
46 ===================================================================
47 # Copyright 1999-2008 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.1.20.ebuild,v 1.1 2008/02/27 20:48:06 cardoe Exp $
50
51 inherit eutils multilib autotools 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 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_compile() {
73 # so we can get backtraces from apps
74 append-flags -rdynamic
75
76 local myconf=""
77
78 hasq test ${FEATURES} && myconf="${myconf} --enable-tests=yes"
79 # libaudit is *only* used in DBus wrt SELinux support, so disable it, if
80 # not on an SELinux profile.
81 econf \
82 $(use_with X x) \
83 $(use_enable kernel_linux inotify) \
84 $(use_enable kernel_FreeBSD kqueue) \
85 $(use_enable selinux) \
86 $(use_enable selinux libaudit) \
87 $(use_enable debug verbose-mode) \
88 $(use_enable debug asserts) \
89 --with-xml=expat \
90 --with-system-pid-file=/var/run/dbus.pid \
91 --with-system-socket=/var/run/dbus/system_bus_socket \
92 --with-session-socket-dir=/tmp \
93 --with-dbus-user=messagebus \
94 --localstatedir=/var \
95 $(use_enable doc doxygen-docs) \
96 --disable-xml-docs \
97 ${myconf} \
98 || die "econf failed"
99
100 # after the compile, it uses a selinuxfs interface to
101 # check if the SELinux policy has the right support
102 use selinux && addwrite /selinux/access
103
104 emake || die "make failed"
105 }
106
107 src_test() {
108 DBUS_VERBOSE=1 make check || die "make check failed"
109 }
110
111 src_install() {
112 emake DESTDIR="${D}" install || die "make install failed"
113
114 # initscript
115 newinitd "${FILESDIR}"/dbus.init-1.0 dbus
116
117 # dbus X session script (#77504)
118 # turns out to only work for GDM. has been merged into other desktop
119 # (kdm and such scripts)
120 exeinto /etc/X11/xinit/xinitrc.d/
121 doexe "${FILESDIR}"/30-dbus
122
123 # needs to exist for the system socket
124 keepdir /var/run/dbus
125 # needs to exist for machine id
126 keepdir /var/lib/dbus
127 # needs to exist for dbus sessions to launch
128
129 keepdir /usr/lib/dbus-1.0/services
130 keepdir /usr/share/dbus-1/services
131 keepdir /etc/dbus-1/system.d/
132 keepdir /etc/dbus-1/session.d/
133
134 dodoc AUTHORS ChangeLog HACKING NEWS README doc/TODO
135 if use doc; then
136 dohtml doc/*html
137 fi
138 }
139
140 pkg_preinst() {
141 enewgroup messagebus || die "Problem adding messagebus group"
142 enewuser messagebus -1 "-1" -1 messagebus || die "Problem adding messagebus user"
143 }
144
145 pkg_postinst() {
146 elog "To start the D-Bus system-wide messagebus by default"
147 elog "you should add it to the default runlevel :"
148 elog "\`rc-update add dbus default\`"
149 elog
150 elog "Some applications require a session bus in addition to the system"
151 elog "bus. Please see \`man dbus-launch\` for more information."
152 elog
153 ewarn
154 ewarn "You MUST run 'revdep-rebuild' after emerging this package"
155 elog "If you notice any issues, please rebuild sys-apps/hal"
156 ewarn
157 ewarn "If you are currently running X with the hal useflag enabled"
158 ewarn "restarting the dbus service WILL restart X as well"
159 ebeep 5
160 ewarn
161 }
162
163
164
165 --
166 gentoo-commits@l.g.o mailing list