Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/colord: colord-0.1.14-r1.ebuild ChangeLog colord-0.1.12.ebuild colord-0.1.13.ebuild
Date: Fri, 25 Nov 2011 18:15:33
Message-Id: 20111125181524.03AA42004B@flycatcher.gentoo.org
1 tetromino 11/11/25 18:15:23
2
3 Modified: ChangeLog
4 Added: colord-0.1.14-r1.ebuild
5 Removed: colord-0.1.12.ebuild colord-0.1.13.ebuild
6 Log:
7 Add patches to fix SQL injections (bug #391879, thanks to Agostino Sarubbo for reporting). Allow building against freebsd's libusb (bug #387959, thanks to Naohiro Aota). Drop old versions.
8
9 (Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.8 x11-misc/colord/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?rev=1.8&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?rev=1.8&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/ChangeLog?r1=1.7&r2=1.8
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v
21 retrieving revision 1.7
22 retrieving revision 1.8
23 diff -u -r1.7 -r1.8
24 --- ChangeLog 6 Nov 2011 17:10:34 -0000 1.7
25 +++ ChangeLog 25 Nov 2011 18:15:23 -0000 1.8
26 @@ -1,6 +1,16 @@
27 # ChangeLog for x11-misc/colord
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.7 2011/11/06 17:10:34 maekke Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.8 2011/11/25 18:15:23 tetromino Exp $
31 +
32 +*colord-0.1.14-r1 (25 Nov 2011)
33 +
34 + 25 Nov 2011; Alexandre Rostovtsev <tetromino@g.o>
35 + -colord-0.1.12.ebuild, -colord-0.1.13.ebuild, +colord-0.1.14-r1.ebuild,
36 + +files/colord-0.1.14-sql-injections.patch,
37 + +files/colord-0.1.14-sql-injections-2.patch:
38 + Add patches to fix SQL injections (bug #391879, thanks to Agostino Sarubbo for
39 + reporting). Allow building against freebsd's libusb (bug #387959, thanks to
40 + Naohiro Aota). Drop old versions.
41
42 06 Nov 2011; Markus Meier <maekke@g.o> colord-0.1.14.ebuild:
43 add ~arm, bug #387959
44
45
46
47 1.1 x11-misc/colord/colord-0.1.14-r1.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/colord-0.1.14-r1.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/colord/colord-0.1.14-r1.ebuild?rev=1.1&content-type=text/plain
51
52 Index: colord-0.1.14-r1.ebuild
53 ===================================================================
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/colord-0.1.14-r1.ebuild,v 1.1 2011/11/25 18:15:23 tetromino Exp $
57
58 EAPI="4"
59
60 inherit autotools eutils base
61
62 DESCRIPTION="System service to accurately color manage input and output devices"
63 HOMEPAGE="http://www.freedesktop.org/software/colord/"
64 SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~arm ~hppa ~x86"
69 IUSE="doc elibc_FreeBSD examples +introspection scanner +udev vala"
70
71 # FIXME: raise to libusb-1.0.9:1 when available
72 COMMON_DEPEND="
73 dev-db/sqlite:3
74 >=dev-libs/glib-2.28.0:2
75 >=media-libs/lcms-2.2:2
76 elibc_FreeBSD? ( >=sys-freebsd/freebsd-lib-8.0[usb] )
77 !elibc_FreeBSD? ( >=dev-libs/libusb-1.0.8:1 )
78 introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
79 scanner? ( media-gfx/sane-backends )
80 udev? ( || ( sys-fs/udev[gudev] sys-fs/udev[extras] ) )
81 "
82 RDEPEND="${COMMON_DEPEND}
83 media-gfx/shared-color-profiles"
84 DEPEND="${COMMON_DEPEND}
85 dev-libs/libxslt
86 >=dev-util/intltool-0.35
87 dev-util/pkgconfig
88 >=sys-devel/gettext-0.17
89 doc? (
90 app-text/docbook-xml-dtd:4.1.2
91 >=dev-util/gtk-doc-1.9
92 )
93 vala? ( dev-lang/vala:0.14[vapigen] )
94 "
95
96 # FIXME: needs pre-installed dbus service files
97 RESTRICT="test"
98
99 DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO)
100
101 pkg_setup() {
102 enewgroup colord
103 enewuser colord -1 -1 /var/lib/colord colord
104 }
105
106 src_prepare() {
107 # Fix SQL injection vulnerability (bug #391879); will be in next release
108 epatch "${FILESDIR}/${P}-sql-injections"{,-2}.patch
109
110 # Ubuntu patch to allow root and at_console to access colord without polkit;
111 # this behavior matches upstream default polkit settings.
112 epatch "${FILESDIR}/${PN}-0.1.13-use-dbus-security-for-permissions.patch"
113
114 epatch "${FILESDIR}/${PN}-0.1.11-fix-automagic-vala.patch"
115
116 # Use <libusb.h> for freebsd compatibility, bug #387959#c6
117 sed -e 's:#include <libusb-1.0/libusb.h>:#include <libusb.h>:' \
118 -i src/sensors/*.c src/sensors/*.h || die "sed failed"
119
120 eautoreconf
121 }
122
123 src_configure() {
124 # bug #387959#c6
125 if use elibc_FreeBSD; then
126 USB_CFLAGS="-I${EPREFIX}/usr/include"
127 USB_LIBS="-lusb"
128 echo "$USB_CFLAGS $USB_LIBS"
129 fi
130
131 # Disable polkit to allow registering devices when colord is running as
132 # non-root; https://bugs.launchpad.net/ubuntu/+source/colord/+bug/837851
133 econf \
134 --disable-examples \
135 --disable-static \
136 --disable-polkit \
137 --enable-reverse \
138 --disable-volume-search \
139 --with-daemon-user=colord \
140 --localstatedir="${EPREFIX}"/var \
141 $(use_enable doc gtk-doc) \
142 $(use_enable introspection) \
143 $(use_enable scanner sane) \
144 $(use_enable udev gudev) \
145 $(use_enable vala) \
146 VAPIGEN=$(type -p vapigen-0.14)
147 # parallel make fails in doc/api
148 use doc && MAKEOPTS=-j1
149 }
150
151 src_install() {
152 base_src_install
153
154 # Ensure config and profile directories exist and are writable
155 local d
156 for d in /var/lib/{color,colord}; do
157 keepdir "${d}"
158 fowners colord:colord "${d}"
159 done
160
161 if use examples; then
162 insinto /usr/share/doc/${PF}/examples
163 doins examples/*.c
164 fi
165
166 find "${D}" -name "*.la" -delete || die
167 }
168
169 pkg_postinst() {
170 # <=colord-0.1.11 ran as root and used /var/lib/lib/colord to store
171 # configuration files and /var/lib/lib/color for custom color profiles.
172 local old_dir="${EROOT}var/lib/lib/colord"
173 local new_dir="${EROOT}var/lib/colord"
174
175 if [[ -e "${old_dir}/mapping.db" || -e "${old_dir}/storage.db" ]] && \
176 ! [[ -e "${new_dir}/mapping.db" || -e "${new_dir}/storage.db" ]]; then
177 elog "Old colord configuration files are present in ${old_dir}. If you"
178 elog "are upgrading from colord-0.1.11 or older and had previously"
179 elog "customized your color management settings, you will need to copy"
180 elog "these files to ${new_dir} and then change the file ownership"
181 elog "to colord:colord :"
182 elog
183 elog " # cp ${old_dir}/*.db ${new_dir}"
184 elog " # chown colord:colord ${new_dir}/*.db"
185 elog
186 fi
187 old_dir="${EROOT}var/lib/lib/color"
188 new_dir="${EROOT}var/lib/color"
189 if [[ -e "${old_dir}/icc" && ! -e "${new_dir}/icc" ]]; then
190 elog "Old custom color profiles are present in ${old_dir}. If you are"
191 elog "upgrading from colord-0.1.11 or older, you will need to copy them"
192 elog "to ${new_dir} and then change the ownership to colord:colord :"
193 elog
194 elog " # cp -r ${old_dir}/icc ${new_dir}"
195 elog " # chown -R colord:colord ${new_dir}/icc"
196 elog
197 fi
198 }