summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée2015-07-07 21:16:58 +0200
committerMattias Andrée2015-07-07 21:16:58 +0200
commit7be49d53cb7fecf4eabc95f72479496dd9925aa0 (patch)
tree444a168eac39cd438cd50228d7ed7350ad843088
downloadaur-7be49d53cb7fecf4eabc95f72479496dd9925aa0.tar.gz
Initial import, version 1:395.af75e10
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD59
-rw-r--r--consolekit.logrotate5
-rw-r--r--consolekit.tmpfiles.conf1
-rw-r--r--pam-foreground-compat.ck16
5 files changed, 113 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4317788c0ef
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = consolekit-git
+ pkgdesc = A framework for defining and tracking users, login sessions, and seats
+ pkgver = 395.af75e10
+ pkgrel = 1
+ epoch = 1
+ url = http://www.freedesktop.org/wiki/Software/ConsoleKit
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = pkgconfig
+ makedepends = xmlto
+ makedepends = docbook-xsl
+ depends = polkit
+ depends = zlib
+ depends = libx11
+ depends = dbus-glib
+ provides = consolekit
+ conflicts = consolekit
+ replaces = consolekit
+ options = !libtool
+ source = git+git://anongit.freedesktop.org/ConsoleKit
+ source = pam-foreground-compat.ck
+ source = consolekit.logrotate
+ source = consolekit.tmpfiles.conf
+ md5sums = SKIP
+ md5sums = a8a4de71d9b0549b8143e5f6c2a36fc7
+ md5sums = 6fefa451d9fe2fc6d6269629d3529793
+ md5sums = 8c5a8059db515d40fae1379daf084094
+
+pkgname = consolekit-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e2dd48333e4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+# Previous maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+# Contributor: onestep_ua <onestep@ukr.net>
+
+pkgname=consolekit-git
+pkgver=395.af75e10
+pkgrel=1
+epoch=1
+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=('git' 'pkgconfig' 'xmlto' 'docbook-xsl')
+replaces=('consolekit')
+provides=('consolekit')
+conflicts=('consolekit')
+options=(!libtool)
+source=(git+git://anongit.freedesktop.org/ConsoleKit \
+ pam-foreground-compat.ck consolekit.logrotate consolekit.tmpfiles.conf)
+md5sums=('SKIP'
+ 'a8a4de71d9b0549b8143e5f6c2a36fc7'
+ '6fefa451d9fe2fc6d6269629d3529793'
+ '8c5a8059db515d40fae1379daf084094')
+
+pkgver() {
+ cd "$srcdir/ConsoleKit"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "$srcdir/ConsoleKit"
+
+ ./autogen.sh --prefix=/usr \
+ --sbindir=/usr/bin \
+ --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"
+ 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"
+}
diff --git a/consolekit.logrotate b/consolekit.logrotate
new file mode 100644
index 00000000000..7c5346ef839
--- /dev/null
+++ b/consolekit.logrotate
@@ -0,0 +1,5 @@
+/var/log/ConsoleKit/history {
+ missingok
+ notifempty
+ delaycompress
+}
diff --git a/consolekit.tmpfiles.conf b/consolekit.tmpfiles.conf
new file mode 100644
index 00000000000..4ec125110ae
--- /dev/null
+++ b/consolekit.tmpfiles.conf
@@ -0,0 +1 @@
+d /run/ConsoleKit 0755 - - -
diff --git a/pam-foreground-compat.ck b/pam-foreground-compat.ck
new file mode 100644
index 00000000000..7f6b122d5fc
--- /dev/null
+++ b/pam-foreground-compat.ck
@@ -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