From 2fa565ef4aeddee13bc3cf5bf839312670cb7ce1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 9 Jul 2012 22:47:06 +0200 Subject: [PATCH] ConsoleKit: switch to /usr. --- .../ConsoleKit/patches/switch-to-run.patch | 27 ------------------- srcpkgs/ConsoleKit/template | 8 +++--- 2 files changed, 4 insertions(+), 31 deletions(-) delete mode 100644 srcpkgs/ConsoleKit/patches/switch-to-run.patch diff --git a/srcpkgs/ConsoleKit/patches/switch-to-run.patch b/srcpkgs/ConsoleKit/patches/switch-to-run.patch deleted file mode 100644 index 705d71920f..0000000000 --- a/srcpkgs/ConsoleKit/patches/switch-to-run.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- src/ck-manager.c.orig 2012-07-09 12:38:27.749426822 +0200 -+++ src/ck-manager.c 2012-07-09 12:39:08.292465239 +0200 -@@ -181,8 +181,8 @@ ck_manager_dump (CkManager *manager) - { - int fd; - int res; -- const char *filename = LOCALSTATEDIR "/run/ConsoleKit/database"; -- const char *filename_tmp = LOCALSTATEDIR "/run/ConsoleKit/database~"; -+ const char *filename = "/run/ConsoleKit/database"; -+ const char *filename_tmp = "/run/ConsoleKit/database~"; - - if (manager == NULL) { - return; -@@ -190,11 +190,11 @@ ck_manager_dump (CkManager *manager) - - /* always make sure we have a directory */ - errno = 0; -- res = g_mkdir_with_parents (LOCALSTATEDIR "/run/ConsoleKit", -+ res = g_mkdir_with_parents ("/run/ConsoleKit", - S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); - if (res < 0) { - g_warning ("Unable to create directory %s (%s)", -- LOCALSTATEDIR "/run/ConsoleKit", -+ "/run/ConsoleKit", - g_strerror (errno)); - return; - } diff --git a/srcpkgs/ConsoleKit/template b/srcpkgs/ConsoleKit/template index bc44f0a479..930d8032e9 100644 --- a/srcpkgs/ConsoleKit/template +++ b/srcpkgs/ConsoleKit/template @@ -1,17 +1,17 @@ # Template file for 'ConsoleKit' pkgname=ConsoleKit version=0.4.5 -revision=8 -distfiles="http://www.freedesktop.org/software/$pkgname/dist/$pkgname-$version.tar.bz2" +revision=9 build_style=gnu-configure configure_args="--enable-docbook-docs --enable-pam-module ---with-systemdsystemunitdir=/lib/systemd/system ---with-pid-file=/run/ConsoleKit/pid" +--with-systemdsystemunitdir=/usr/lib/systemd/system +--with-pam-module-dir=/usr/lib/security" makedepends="pkg-config xmlto libX11-devel dbus-devel glib-devel dbus-glib-devel pam-devel polkit-devel zlib-devel" short_desc="Framework for defining and tracking users, login sessions and seats" maintainer="Juan RP " homepage="http://www.freedesktop.org/wiki/Software/ConsoleKit" license="GPL-2" +distfiles="http://www.freedesktop.org/software/$pkgname/dist/$pkgname-$version.tar.bz2" checksum=43e0780c53078e125efcec3f847e484dc3533e49b408ce6a0ab1b223686b9c38 long_desc=" ConsoleKit is a framework for keeping track of the various users, sessions,