[arch-commits] Commit in consolekit/repos (10 files)

Dave Reisner dreisner at archlinux.org
Sun May 27 04:30:34 UTC 2012


    Date: Sunday, May 27, 2012 @ 00:30:34
  Author: dreisner
Revision: 159794

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  consolekit/repos/staging-i686/
  consolekit/repos/staging-i686/PKGBUILD
    (from rev 159793, consolekit/trunk/PKGBUILD)
  consolekit/repos/staging-i686/consolekit.logrotate
    (from rev 159793, consolekit/trunk/consolekit.logrotate)
  consolekit/repos/staging-i686/consolekit.tmpfiles.conf
    (from rev 159793, consolekit/trunk/consolekit.tmpfiles.conf)
  consolekit/repos/staging-i686/pam-foreground-compat.ck
    (from rev 159793, consolekit/trunk/pam-foreground-compat.ck)
  consolekit/repos/staging-x86_64/
  consolekit/repos/staging-x86_64/PKGBUILD
    (from rev 159793, consolekit/trunk/PKGBUILD)
  consolekit/repos/staging-x86_64/consolekit.logrotate
    (from rev 159793, consolekit/trunk/consolekit.logrotate)
  consolekit/repos/staging-x86_64/consolekit.tmpfiles.conf
    (from rev 159793, consolekit/trunk/consolekit.tmpfiles.conf)
  consolekit/repos/staging-x86_64/pam-foreground-compat.ck
    (from rev 159793, consolekit/trunk/pam-foreground-compat.ck)

-----------------------------------------+
 staging-i686/PKGBUILD                   |   49 ++++++++++++++++++++++++++++++
 staging-i686/consolekit.logrotate       |    5 +++
 staging-i686/consolekit.tmpfiles.conf   |    1 
 staging-i686/pam-foreground-compat.ck   |   16 +++++++++
 staging-x86_64/PKGBUILD                 |   49 ++++++++++++++++++++++++++++++
 staging-x86_64/consolekit.logrotate     |    5 +++
 staging-x86_64/consolekit.tmpfiles.conf |    1 
 staging-x86_64/pam-foreground-compat.ck |   16 +++++++++
 8 files changed, 142 insertions(+)

Copied: consolekit/repos/staging-i686/PKGBUILD (from rev 159793, consolekit/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2012-05-27 04:30:34 UTC (rev 159794)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: onestep_ua <onestep at ukr.net>
+
+pkgname=consolekit
+pkgver=0.4.6
+pkgrel=4
+pkgdesc="A framework for defining and tracking users, login sessions, and seats"
+arch=('i686' 'x86_64')
+url="http://www.freedesktop.org/wiki/Software/ConsoleKit"
+license=('GPL')
+depends=('polkit' 'zlib' 'libx11' 'dbus-glib')
+makedepends=('pkgconfig' 'xmlto' 'docbook-xsl')
+options=(!libtool)
+#source=(http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-$pkgver.tar.bz2
+# this has not been released yet, so this is a snapshot
+source=(ftp://ftp.archlinux.org/other/${pkgname}/ConsoleKit-${pkgver}.tar.bz2
+        pam-foreground-compat.ck consolekit.logrotate consolekit.tmpfiles.conf)
+md5sums=('810990b607e338f06a6396c92b8a4a06'
+         'a8a4de71d9b0549b8143e5f6c2a36fc7'
+         '6fefa451d9fe2fc6d6269629d3529793'
+         '8c5a8059db515d40fae1379daf084094')
+
+build() {
+  cd "$srcdir/ConsoleKit-$pkgver"
+  ./configure --prefix=/usr \
+      --sysconfdir=/etc \
+      --localstatedir=/var \
+      --libexecdir=/usr/lib/ConsoleKit \
+      --with-systemdsystemunitdir=/usr/lib/systemd/system \
+      --enable-pam-module \
+      --with-pam-module-dir=/usr/lib/security \
+      --enable-docbook-docs \
+      --enable-udev-acl
+  make
+}
+
+package() {
+  cd "$srcdir/ConsoleKit-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -m755 "$srcdir/pam-foreground-compat.ck" "$pkgdir/usr/lib/ConsoleKit/run-session.d/"
+
+  # install the logrotate config
+  install -D -m644 "$srcdir/consolekit.logrotate" "$pkgdir/etc/logrotate.d/consolekit"
+
+  install -D -m644 "$srcdir/consolekit.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/consolekit.conf"
+
+  rm -rf "${pkgdir}/var/run"
+}

Copied: consolekit/repos/staging-i686/consolekit.logrotate (from rev 159793, consolekit/trunk/consolekit.logrotate)
===================================================================
--- staging-i686/consolekit.logrotate	                        (rev 0)
+++ staging-i686/consolekit.logrotate	2012-05-27 04:30:34 UTC (rev 159794)
@@ -0,0 +1,5 @@
+/var/log/ConsoleKit/history {
+    missingok
+    notifempty
+    delaycompress
+}

Copied: consolekit/repos/staging-i686/consolekit.tmpfiles.conf (from rev 159793, consolekit/trunk/consolekit.tmpfiles.conf)
===================================================================
--- staging-i686/consolekit.tmpfiles.conf	                        (rev 0)
+++ staging-i686/consolekit.tmpfiles.conf	2012-05-27 04:30:34 UTC (rev 159794)
@@ -0,0 +1 @@
+d /run/ConsoleKit 0755 - - -

Copied: consolekit/repos/staging-i686/pam-foreground-compat.ck (from rev 159793, consolekit/trunk/pam-foreground-compat.ck)
===================================================================
--- staging-i686/pam-foreground-compat.ck	                        (rev 0)
+++ staging-i686/pam-foreground-compat.ck	2012-05-27 04:30:34 UTC (rev 159794)
@@ -0,0 +1,16 @@
+#!/bin/sh
+TAGDIR=/var/run/console
+
+[ -n "$CK_SESSION_USER_UID" ] || exit 1
+
+TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
+
+if [ "$1" = "session_added" ]; then
+    mkdir -p "$TAGDIR"
+    echo "$CK_SESSION_ID" >> "$TAGFILE"
+fi
+
+if [ "$1" = "session_removed" ] && [ -e "$TAGFILE" ]; then
+    sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
+    [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
+fi

Copied: consolekit/repos/staging-x86_64/PKGBUILD (from rev 159793, consolekit/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2012-05-27 04:30:34 UTC (rev 159794)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: onestep_ua <onestep at ukr.net>
+
+pkgname=consolekit
+pkgver=0.4.6
+pkgrel=4
+pkgdesc="A framework for defining and tracking users, login sessions, and seats"
+arch=('i686' 'x86_64')
+url="http://www.freedesktop.org/wiki/Software/ConsoleKit"
+license=('GPL')
+depends=('polkit' 'zlib' 'libx11' 'dbus-glib')
+makedepends=('pkgconfig' 'xmlto' 'docbook-xsl')
+options=(!libtool)
+#source=(http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-$pkgver.tar.bz2
+# this has not been released yet, so this is a snapshot
+source=(ftp://ftp.archlinux.org/other/${pkgname}/ConsoleKit-${pkgver}.tar.bz2
+        pam-foreground-compat.ck consolekit.logrotate consolekit.tmpfiles.conf)
+md5sums=('810990b607e338f06a6396c92b8a4a06'
+         'a8a4de71d9b0549b8143e5f6c2a36fc7'
+         '6fefa451d9fe2fc6d6269629d3529793'
+         '8c5a8059db515d40fae1379daf084094')
+
+build() {
+  cd "$srcdir/ConsoleKit-$pkgver"
+  ./configure --prefix=/usr \
+      --sysconfdir=/etc \
+      --localstatedir=/var \
+      --libexecdir=/usr/lib/ConsoleKit \
+      --with-systemdsystemunitdir=/usr/lib/systemd/system \
+      --enable-pam-module \
+      --with-pam-module-dir=/usr/lib/security \
+      --enable-docbook-docs \
+      --enable-udev-acl
+  make
+}
+
+package() {
+  cd "$srcdir/ConsoleKit-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -m755 "$srcdir/pam-foreground-compat.ck" "$pkgdir/usr/lib/ConsoleKit/run-session.d/"
+
+  # install the logrotate config
+  install -D -m644 "$srcdir/consolekit.logrotate" "$pkgdir/etc/logrotate.d/consolekit"
+
+  install -D -m644 "$srcdir/consolekit.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/consolekit.conf"
+
+  rm -rf "${pkgdir}/var/run"
+}

Copied: consolekit/repos/staging-x86_64/consolekit.logrotate (from rev 159793, consolekit/trunk/consolekit.logrotate)
===================================================================
--- staging-x86_64/consolekit.logrotate	                        (rev 0)
+++ staging-x86_64/consolekit.logrotate	2012-05-27 04:30:34 UTC (rev 159794)
@@ -0,0 +1,5 @@
+/var/log/ConsoleKit/history {
+    missingok
+    notifempty
+    delaycompress
+}

Copied: consolekit/repos/staging-x86_64/consolekit.tmpfiles.conf (from rev 159793, consolekit/trunk/consolekit.tmpfiles.conf)
===================================================================
--- staging-x86_64/consolekit.tmpfiles.conf	                        (rev 0)
+++ staging-x86_64/consolekit.tmpfiles.conf	2012-05-27 04:30:34 UTC (rev 159794)
@@ -0,0 +1 @@
+d /run/ConsoleKit 0755 - - -

Copied: consolekit/repos/staging-x86_64/pam-foreground-compat.ck (from rev 159793, consolekit/trunk/pam-foreground-compat.ck)
===================================================================
--- staging-x86_64/pam-foreground-compat.ck	                        (rev 0)
+++ staging-x86_64/pam-foreground-compat.ck	2012-05-27 04:30:34 UTC (rev 159794)
@@ -0,0 +1,16 @@
+#!/bin/sh
+TAGDIR=/var/run/console
+
+[ -n "$CK_SESSION_USER_UID" ] || exit 1
+
+TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
+
+if [ "$1" = "session_added" ]; then
+    mkdir -p "$TAGDIR"
+    echo "$CK_SESSION_ID" >> "$TAGFILE"
+fi
+
+if [ "$1" = "session_removed" ] && [ -e "$TAGFILE" ]; then
+    sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
+    [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
+fi




More information about the arch-commits mailing list