Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pam.git;a=commitdiff;h=e7e15514bfc93a44e1173aa6297f9264a846f69b

commit e7e15514bfc93a44e1173aa6297f9264a846f69b
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sun Oct 4 17:02:07 2009 +0200

consolekit-0.3.0-3-i686
*added policykit support

diff --git a/source/xapps/consolekit/Fix_setIdandGetSession.diff 
b/source/xapps/consolekit/Fix_setIdandGetSession.diff
new file mode 100644
index 0000000..68331cc
--- /dev/null
+++ b/source/xapps/consolekit/Fix_setIdandGetSession.diff
@@ -0,0 +1,29 @@
+--- ConsoleKit-0.3.0/data/ConsoleKitold.conf   2008-04-19 07:39:49.000000000 
+0200
++++ ConsoleKit-0.3.0/data/ConsoleKit.conf      2009-05-27 11:49:34.000000000 
+0200
+@@ -31,6 +31,9 @@
+            send_member="CloseSession"/>
+     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
+            send_member="GetSeats"/>
++    <allow send_destination="org.freedesktop.ConsoleKit"
++           send_interface="org.freedesktop.ConsoleKit.Manager"
++           send_member="GetSessions"/>
+     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
+            send_member="GetSessionForCookie"/>
+     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
+@@ -45,6 +48,7 @@
+            send_member="GetSystemIdleHint"/>
+     <allow send_interface="org.freedesktop.ConsoleKit.Manager"
+            send_member="GetSystemIdleSinceHint"/>
++
+
+     <allow send_interface="org.freedesktop.ConsoleKit.Seat"
+            send_member="GetId"/>
+@@ -91,6 +95,8 @@
+            send_member="GetIdleHint"/>
+     <allow send_interface="org.freedesktop.ConsoleKit.Session"
+            send_member="GetIdleSinceHint"/>
++    <allow send_interface="org.freedesktop.ConsoleKit.Session"
++           send_member="SetIdleHint"/>
+   </policy>
+
+ </busconfig>
diff --git a/source/xapps/consolekit/FrugalBuild 
b/source/xapps/consolekit/FrugalBuild
index e9da6e2..c03f1b4 100644
--- a/source/xapps/consolekit/FrugalBuild
+++ b/source/xapps/consolekit/FrugalBuild
@@ -4,23 +4,22 @@
pkgname=consolekit
_F_archive_name="ConsoleKit"
pkgver=0.3.0
-pkgrel=2
+pkgrel=3
pkgdesc="Framework for defining and tracking users, login sessions and seats."
url="http://www.freedesktop.org/wiki/Software/ConsoleKit";
-source=(http://people.freedesktop.org/~mccann/dist/$_F_archive_name-$pkgver.tar.bz2
 rc.xconsolekit \
-       consolekit-0.3.0-shutdown.patch close_log.diff)
-up2date="lynx -dump http://people.freedesktop.org/~mccann/dist/ | Flasttar"
-depends=('libx11' 'dbus-glib' 'zlib')
+source=(http://www.freedesktop.org/software/ConsoleKit/dist/$_F_archive_name-$pkgver.tar.bz2
 rc.xconsolekit \
+       consolekit-0.3.0-shutdown.patch close_log.diff 
Fix_setIdandGetSession.diff \
+       consolekit-0.2.10-polkit-automagic.patch)
+up2date="Flasttar http://www.freedesktop.org/software/ConsoleKit/dist";
+depends=('libx11' 'dbus-glib' 'zlib' 'pam' 'policykit')
groups=('xapps')
archs=('i686' 'x86_64' 'ppc')
sha1sums=('e3b6156622cc14ebca7382a55b8ed15f2f2bad98' \
'5efcbfa507b4b5a1aff2670b3b2b507b50ba2d77' \
'f02205b3273047afdfe4438fac4f71f50655112b' \
-          'f05ccbcab5cc768edfe76307066c88dc721b9448')
-
-# If you bump this package think to verify if gnome-session can reboot or 
shutdown
-# for now this package is only use by gnome-session but the next gnome* could 
use.
-# Without PAM this thing is err useless ? - crazy -
+          'f05ccbcab5cc768edfe76307066c88dc721b9448' \
+          '92f3ff832598bb73e05c4dc5be488b71e5ff503d' \
+          'ada8d56ab096dc49d609f1d9f44679971936c0df')

build() {
Fbuild
diff --git a/source/xapps/consolekit/consolekit-0.2.10-polkit-automagic.patch 
b/source/xapps/consolekit/consolekit-0.2.10-polkit-automagic.patch
new file mode 100644
index 0000000..18b0de8
--- /dev/null
+++ b/source/xapps/consolekit/consolekit-0.2.10-polkit-automagic.patch
@@ -0,0 +1,29 @@
+diff -Naur ConsoleKit-0.2.10/configure.ac ConsoleKit-0.2.10.new/configure.ac
+--- ConsoleKit-0.2.10/configure.ac     2008-02-13 09:25:50.000000000 +0530
++++ ConsoleKit-0.2.10.new/configure.ac 2008-08-09 11:36:25.000000000 +0530
+@@ -55,10 +55,21 @@
+   gthread-2.0 >= $GLIB_REQUIRED_VERSION
+ )
+
+-PKG_CHECK_MODULES(POLKIT,
+-  polkit >= $POLKIT_REQUIRED_VERSION,
+-  have_polkit=yes,
+-  have_polkit=no)
++AC_ARG_ENABLE([polkit],
++  AC_HELP_STRING([--enable-polkit], [Enable PolicyKit support (default 
auto)]),
++  enable_polkit=$enableval,
++  enable_polkit=auto)
++
++if test "x$enable_polkit" != "xno"; then
++  PKG_CHECK_MODULES(POLKIT,
++    polkit >= $POLKIT_REQUIRED_VERSION,
++    have_polkit=yes,
++    have_polkit=no)
++  if test "x$enable_polkit"  = "xyes" -a "x$have_polkit" = "xno"; then
++    AC_MSG_ERROR([PolicyKit support explicitly requested but dependencies not 
found])
++  fi
++fi
++
+ if test "x$have_polkit" = "xyes" ; then
+        AC_DEFINE(HAVE_POLKIT, [], [Define if we have polkit])
+ fi
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to