summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-05-01 19:01:52 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-05-01 19:01:52 +0800
commitf2bd49205c252f40af3af2e0c0c03dfce491ab21 (patch)
tree41e4bced451b89b6e2928799dfe66b6e8888de9d
parent986a9e577c91855e87cdfe0ebd16ec6483f32a75 (diff)
downloadmarcuscom-ports-f2bd49205c252f40af3af2e0c0c03dfce491ab21.tar
marcuscom-ports-f2bd49205c252f40af3af2e0c0c03dfce491ab21.tar.gz
marcuscom-ports-f2bd49205c252f40af3af2e0c0c03dfce491ab21.tar.bz2
marcuscom-ports-f2bd49205c252f40af3af2e0c0c03dfce491ab21.tar.lz
marcuscom-ports-f2bd49205c252f40af3af2e0c0c03dfce491ab21.tar.xz
marcuscom-ports-f2bd49205c252f40af3af2e0c0c03dfce491ab21.tar.zst
marcuscom-ports-f2bd49205c252f40af3af2e0c0c03dfce491ab21.zip
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
-rw-r--r--graphics/colord/Makefile3
-rw-r--r--graphics/colord/pkg-install10
-rw-r--r--graphics/colord/pkg-plist1
3 files changed, 14 insertions, 0 deletions
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 <bsd.port.mk>
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