From f2bd49205c252f40af3af2e0c0c03dfce491ab21 Mon Sep 17 00:00:00 2001 From: kwm Date: Wed, 1 May 2013 11:01:52 +0000 Subject: Fix build of colord. Make sure we reset PREFIX in plist after attemption to clean up /var/db/colord. This is important because GLIB_SCHEMAS adds it @exec/@unexec rules at the end of the plist. Make sure the /var/db/colord dir has correct permissions so we can write in it. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18408 df743ca5-7f9a-e211-a948-0013205c9059 --- graphics/colord/Makefile | 3 +++ graphics/colord/pkg-install | 10 ++++++++++ graphics/colord/pkg-plist | 1 + 3 files changed, 14 insertions(+) create mode 100644 graphics/colord/pkg-install diff --git a/graphics/colord/Makefile b/graphics/colord/Makefile index 7a127551e..e8f3646b0 100644 --- a/graphics/colord/Makefile +++ b/graphics/colord/Makefile @@ -69,4 +69,7 @@ post-patch: s|2MAN_FALSE='#'|2MAN_FALSE=|g" ${WRKSRC}/configure .endif +post-install: + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + .include diff --git a/graphics/colord/pkg-install b/graphics/colord/pkg-install new file mode 100644 index 000000000..26c9a4edb --- /dev/null +++ b/graphics/colord/pkg-install @@ -0,0 +1,10 @@ +#!/bin/sh + +case $2 in +POST-INSTALL) + /bin/mkdir -p /var/db/colord/icc + /usr/sbin/chown colord:colord /var/db/colord + /usr/sbin/chown colord:colord /var/db/colord/icc + exit 0 + ;; +esac diff --git a/graphics/colord/pkg-plist b/graphics/colord/pkg-plist index 387ac3e7b..e6fccecb5 100644 --- a/graphics/colord/pkg-plist +++ b/graphics/colord/pkg-plist @@ -195,3 +195,4 @@ share/polkit-1/actions/org.freedesktop.color.policy @cwd / @dirrmtry var/db/colord/icc @dirrmtry var/db/colord +@cwd -- cgit v1.2.3