summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/consolekit/Makefile4
-rw-r--r--sysutils/consolekit/pkg-plist2
2 files changed, 5 insertions, 1 deletions
diff --git a/sysutils/consolekit/Makefile b/sysutils/consolekit/Makefile
index 3cea6eedc..2864a5dca 100644
--- a/sysutils/consolekit/Makefile
+++ b/sysutils/consolekit/Makefile
@@ -7,6 +7,7 @@
PORTNAME= consolekit
PORTVERSION= 0.2.4
+PORTREVISION= 1
CATEGORIES= sysutils gnome
MASTER_SITES= http://people.freedesktop.org/~mccann/dist/
DISTFILES= ConsoleKit-${PORTVERSION}${EXTRACT_SUFX}
@@ -25,7 +26,8 @@ GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS= --with-pid-file=/var/run/${PORTNAME}.pid
+CONFIGURE_ARGS= --with-pid-file=/var/run/${PORTNAME}.pid \
+ --localstatedir=/var
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/ck-get-x11-display-device \
diff --git a/sysutils/consolekit/pkg-plist b/sysutils/consolekit/pkg-plist
index 556bc2ffc..45e5328bd 100644
--- a/sysutils/consolekit/pkg-plist
+++ b/sysutils/consolekit/pkg-plist
@@ -25,3 +25,5 @@ share/dbus-1/system-services/org.freedesktop.ConsoleKit.service
@dirrm etc/ConsoleKit/seats.d
@dirrmtry etc/ConsoleKit/run-session.d
@dirrm etc/ConsoleKit
+@exec mkdir -p /var/run/ConsoleKit
+@unexec rm -rf /var/run/ConsoleKit 2>/dev/null || true