[weasel-commit] Source: ConsoleKit=0.3.0-0.4.1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Sun, 19 Jul 2009 17:12:59 -0400

================================
ConsoleKit:source=0.3.0-0.4.1
cvc rdiff ConsoleKit -1 
/foresight.rpath.org@fl:devel//2//weasel.rpath.org@wgl:3-devel/0.3.0-0.4.1
================================
0.3.0-0.4.1 Filip Brcic (brcha@xxxxxxx) Sun Jul 19 17:12:49 2009
    ConsoleKit for weasel 3

ConsoleKit-0.3.0-get-vt-from-display-instead-of-controlling-tty.patch: new
ConsoleKit.recipe: new
--- /dev/null
+++ ConsoleKit.recipe
@@ -0,0 +42 @@
+#
+# Copyright (c) 2007-2008 rPath, Inc.
+# This file is distributed under the terms of the MIT License.
+# A copy is available at http://www.rpath.com/permanent/mit-license.html
+#
+
+loadSuperClass('rpmpackage')
+class ConsoleKit(RPMPackageRecipe,AutoPackageRecipe):
+    name = 'ConsoleKit'
+    version = '0.3.0'
+    rpmRelease = '2.fc10'
+    rpmPatches = 
['ConsoleKit-0.3.0-get-vt-from-display-instead-of-controlling-tty.patch']
+    buildRequires = [ 'chkconfig:runtime', 'dbus-glib:devel', 'dbus:devel',
+                      'glib:devel', 'libX11:devel', 'libXau:devel',
+                      'libXdmcp:devel', 'libxcb:devel', 'pkgconfig:devel',
+                      'xmlto:runtime', 'pam:devel', 'dbus:devellib',
+                      'PolicyKit:devel', 'zlib:devel','gettext:runtime',
+                      ]
+
+    def configure(r):
+         r.Configure('--with-pid-file=%(localstatedir)s/run/'
+                     'console-kit-daemon.pid --enable-pam-module '
+                     '--with-pam-module-dir=/%(lib)s/security')
+
+    def policy(r):
+        # get around missing trailing newsline
+        r.Run('echo >> %(destdir)s/%(sysconfdir)s/ConsoleKit/seats.d/'
+              '00-primary.seat')
+
+        r.Create('/var/log/ConsoleKit/history') 
+        r.InitialContents('/var/log/ConsoleKit/history')
+
+        r.ExcludeDirectories(exceptions='%(localstatedir)s/run/ConsoleKit')
+        r.ExcludeDirectories(exceptions='%(localstatedir)s/log/ConsoleKit')
+        r.Ownership('root','root','%(localstatedir)s/log/ConsoleKit')
+        r.SetModes('%(localstatedir)s/log/ConsoleKit', 0755)
+
+        r.ExcludeDirectories(exceptions='/usr/lib/ConsoleKit/run-session.d')
+        
r.ExcludeDirectories(exceptions='%(sysconfdir)s/ConsoleKit/run-session.d')
+
+        # allows x86 and x86_64 :lib co-existence
+        r.ComponentSpec(':runtime', '/usr/lib/ConsoleKit/scripts/.*')

ConsoleKit-0.3.0-2.fc10.src.rpm: new

Committed by: brcha

Other related posts: