summaryrefslogtreecommitdiffstats
path: root/sysutils/consolekit
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-01-24 05:45:04 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-01-24 05:45:04 +0800
commit05d23f5175a81710ebbc723a90e7daaa0fd11bc4 (patch)
tree83bba5cb86f7ab65f9b5cf06acff9e3f8d0f88aa /sysutils/consolekit
parent578d6075ff2292c745da76f0177ebeaaa8c46df2 (diff)
downloadmarcuscom-ports-05d23f5175a81710ebbc723a90e7daaa0fd11bc4.tar
marcuscom-ports-05d23f5175a81710ebbc723a90e7daaa0fd11bc4.tar.gz
marcuscom-ports-05d23f5175a81710ebbc723a90e7daaa0fd11bc4.tar.bz2
marcuscom-ports-05d23f5175a81710ebbc723a90e7daaa0fd11bc4.tar.lz
marcuscom-ports-05d23f5175a81710ebbc723a90e7daaa0fd11bc4.tar.xz
marcuscom-ports-05d23f5175a81710ebbc723a90e7daaa0fd11bc4.tar.zst
marcuscom-ports-05d23f5175a81710ebbc723a90e7daaa0fd11bc4.zip
Use the right localstatedir, and handle proper package installation.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10223 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/consolekit')
-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