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

commit d8358251be0498f8f675765b61ef4a9b478443c6
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Sat May 23 00:32:12 2009 +0200

consolekit-0.3.0-3-i686
*added pam support

diff --git a/source/xapps/consolekit/FrugalBuild 
b/source/xapps/consolekit/FrugalBuild
index e9da6e2..d492734 100644
--- a/source/xapps/consolekit/FrugalBuild
+++ b/source/xapps/consolekit/FrugalBuild
@@ -4,26 +4,28 @@
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)
+       consolekit-0.3.0-shutdown.patch close_log.diff 
consolekit-0.3.0-allow-setidle.patch consolekit-0.2.10-polkit-automagic.patch)
up2date="lynx -dump http://people.freedesktop.org/~mccann/dist/ | Flasttar"
-depends=('libx11' 'dbus-glib' 'zlib')
+depends=('libx11' 'dbus-glib' 'zlib' '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' \
+          '00145467e96ac917e0aa6a756a938f2c62434602' \
+          'ada8d56ab096dc49d609f1d9f44679971936c0df')
+Fconfopts="${fconfop...@]} --enable-pam-module"

build() {
-       Fbuild
+       Fpatchall
+       Fautoreconf
+       Fmake
+       Fmakeinstall
Frcd2 xconsolekit
}

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
diff --git a/source/xapps/consolekit/consolekit-0.3.0-allow-setidle.patch 
b/source/xapps/consolekit/consolekit-0.3.0-allow-setidle.patch
new file mode 100644
index 0000000..27aa96a
--- /dev/null
+++ b/source/xapps/consolekit/consolekit-0.3.0-allow-setidle.patch
@@ -0,0 +1,12 @@
+diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN 
ConsoleKit-0.3.0.orig/data/ConsoleKit.conf ConsoleKit-0.3.0/data/ConsoleKit.conf
+--- ConsoleKit-0.3.0.orig/data/ConsoleKit.conf 2008-04-19 01:39:49.000000000 
-0400
++++ ConsoleKit-0.3.0/data/ConsoleKit.conf      2009-04-27 15:20:57.000000000 
-0400
+@@ -90,6 +90,8 @@
+     <allow send_interface="org.freedesktop.ConsoleKit.Session"
+            send_member="GetIdleHint"/>
+     <allow send_interface="org.freedesktop.ConsoleKit.Session"
++           send_member="SetIdleHint"/>
++    <allow send_interface="org.freedesktop.ConsoleKit.Session"
+            send_member="GetIdleSinceHint"/>
+   </policy>
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to