diff options
author | Pacho Ramos <pacho@gentoo.org> | 2011-09-28 11:40:40 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2011-09-28 11:40:40 +0000 |
commit | 42998fc641a231f156a339151d5079901df57b1e (patch) | |
tree | 015c0c4348993cb48fddb953b75c15d3eeb8c8df /x11-misc | |
parent | Version bump, bug #383527 by Sebastian Pipping and Alexandre Rostovtsev. (diff) | |
download | gentoo-2-42998fc641a231f156a339151d5079901df57b1e.tar.gz gentoo-2-42998fc641a231f156a339151d5079901df57b1e.tar.bz2 gentoo-2-42998fc641a231f156a339151d5079901df57b1e.zip |
Version bump that also runs as a different user than root. Thanks a lot to Alexandre Rostovtsev for doing all the work (bug #384607).
(Portage version: 2.1.10.19/cvs/Linux x86_64)
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/colord/ChangeLog | 8 | ||||
-rw-r--r-- | x11-misc/colord/colord-0.1.12.ebuild | 120 |
2 files changed, 127 insertions, 1 deletions
diff --git a/x11-misc/colord/ChangeLog b/x11-misc/colord/ChangeLog index f2be5a575a9c..c581bdbc4c32 100644 --- a/x11-misc/colord/ChangeLog +++ b/x11-misc/colord/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-misc/colord # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.1 2011/08/14 13:48:22 nirbheek Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/ChangeLog,v 1.2 2011/09/28 11:40:40 pacho Exp $ + +*colord-0.1.12 (28 Sep 2011) + + 28 Sep 2011; Pacho Ramos <pacho@gentoo.org> +colord-0.1.12.ebuild: + Version bump that also runs as a different user than root. Thanks a lot to + Alexandre Rostovtsev for doing all the work (bug #384607). *colord-0.1.11 (14 Aug 2011) diff --git a/x11-misc/colord/colord-0.1.12.ebuild b/x11-misc/colord/colord-0.1.12.ebuild new file mode 100644 index 000000000000..c137610bc41c --- /dev/null +++ b/x11-misc/colord/colord-0.1.12.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/colord/colord-0.1.12.ebuild,v 1.1 2011/09/28 11:40:40 pacho Exp $ + +EAPI="4" + +inherit eutils base + +DESCRIPTION="System service to accurately color manage input and output devices" +HOMEPAGE="http://www.freedesktop.org/software/colord/" +SRC_URI="http://www.freedesktop.org/software/colord/releases/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples +introspection scanner +udev" + +# FIXME: raise to libusb-1.0.9:1 when available +COMMON_DEPEND=" + dev-db/sqlite:3 + >=dev-libs/glib-2.28.0:2 + >=dev-libs/libusb-1.0.8:1 + >=media-libs/lcms-2.2:2 + >=sys-auth/polkit-0.97 + introspection? ( >=dev-libs/gobject-introspection-0.9.8 ) + scanner? ( media-gfx/sane-backends ) + udev? ( || ( sys-fs/udev[gudev] sys-fs/udev[extras] ) ) +" +RDEPEND="${COMMON_DEPEND} + media-gfx/shared-color-profiles" +# Automagic build-time vala dependency if USE=introspection +DEPEND="${COMMON_DEPEND} + app-text/docbook-sgml-utils + dev-libs/libxslt + >=dev-util/intltool-0.35 + dev-util/pkgconfig + >=sys-devel/gettext-0.17 + doc? ( + app-text/docbook-xml-dtd:4.1.2 + >=dev-util/gtk-doc-1.9 + ) + introspection? ( dev-lang/vala:0.14 ) +" + +# FIXME: needs pre-installed dbus service files +RESTRICT="test" + +DOCS=(AUTHORS ChangeLog MAINTAINERS NEWS README TODO) + +pkg_setup() { + enewgroup colord + enewuser colord -1 -1 /var/lib/colord colord +} + +src_configure() { + econf \ + --disable-examples \ + --disable-static \ + --enable-polkit \ + --enable-reverse \ + --disable-volume-search \ + --with-daemon-user=colord \ + --localstatedir="${EPREFIX}"/var \ + $(use_enable doc gtk-doc) \ + $(use_enable introspection) \ + $(use_enable scanner sane) \ + $(use_enable udev gudev) \ + VAPIGEN=$(type -p vapigen-0.14) + # parallel make fails in doc/api + use doc && MAKEOPTS=-j1 +} + +src_install() { + base_src_install + + # Ensure config and profile directories exist and are writable + local d + for d in /var/lib/{color,colord}; do + keepdir "${d}" + fowners colord:colord "${d}" + done + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/*.c + fi + + find "${D}" -name "*.la" -delete +} + +pkg_postinst() { + # <=colord-0.1.11 ran as root and used /var/lib/lib/colord to store + # configuration files and /var/lib/lib/color for custom color profiles. + local old_dir="${EROOT}var/lib/lib/colord" + local new_dir="${EROOT}var/lib/colord" + + if [[ -e "${old_dir}/mapping.db" || -e "${old_dir}/storage.db" ]] && \ + ! [[ -e "${new_dir}/mapping.db" || -e "${new_dir}/storage.db" ]]; then + elog "Old colord configuration files are present in ${old_dir}. If you" + elog "are upgrading from colord-0.1.11 or older and had previously" + elog "customized your color management settings, you will need to copy" + elog "these files to ${new_dir} and then change the file ownership" + elog "to colord:colord :" + elog + elog " # cp ${old_dir}/*.db ${new_dir}" + elog " # chown colord:colord ${new_dir}/*.db" + elog + fi + old_dir="${EROOT}var/lib/lib/color" + new_dir="${EROOT}var/lib/color" + if [[ -e "${old_dir}/icc" && ! -e "${new_dir}/icc" ]]; then + elog "Old custom color profiles are present in ${old_dir}. If you are" + elog "upgrading from colord-0.1.11 or older, you will need to copy them" + elog "to ${new_dir} and then change the ownership to colord:colord :" + elog + elog " # cp -r ${old_dir}/icc ${new_dir}" + elog " # chown -R colord:colord ${new_dir}/icc" + elog + fi +} |