[arch-commits] Commit in consolekit/trunk (PKGBUILD consolekit.logrotate)

Ionut Biru ibiru at archlinux.org
Fri Aug 6 16:24:41 EDT 2010


    Date: Friday, August 6, 2010 @ 16:24:41
  Author: ibiru
Revision: 86890

upgpkg: consolekit 0.4.1-3 add temporally logrotate config until new gdm is released to fix missing user list because of ck-history

Added:
  consolekit/trunk/consolekit.logrotate
Modified:
  consolekit/trunk/PKGBUILD

----------------------+
 PKGBUILD             |   23 ++++++++++++++---------
 consolekit.logrotate |    5 +++++
 2 files changed, 19 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-08-06 18:02:54 UTC (rev 86889)
+++ PKGBUILD	2010-08-06 20:24:41 UTC (rev 86890)
@@ -4,7 +4,7 @@
 
 pkgname=consolekit
 pkgver=0.4.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A framework for defining and tracking users, login sessions, and seats"
 arch=('i686' 'x86_64')
 url="http://www.freedesktop.org/wiki/Software/ConsoleKit"
@@ -15,23 +15,28 @@
 source=(http://www.freedesktop.org/software/ConsoleKit/dist/ConsoleKit-${pkgver}.tar.bz2
         pam-foreground-compat.ck
         nodaemon.patch
-        reorder-initialization.patch)
+        reorder-initialization.patch
+        consolekit.logrotate)
 md5sums=('48eda4483cc97841d5f88e8e003eb6d7'
          'a8a4de71d9b0549b8143e5f6c2a36fc7'
          'a5bfd56bc89411ff5bb18276a68cb212'
-         '99fa8cb1bf232050cc0c076378e216c5')
+         '99fa8cb1bf232050cc0c076378e216c5'
+         '6fefa451d9fe2fc6d6269629d3529793')
 
 build() {
   cd "${srcdir}/ConsoleKit-${pkgver}"
-  patch -Np1 -i "${srcdir}/nodaemon.patch" || return 1
-  patch -Np1 -i "${srcdir}/reorder-initialization.patch" || return 1
+  patch -Np1 -i "${srcdir}/nodaemon.patch"
+  patch -Np1 -i "${srcdir}/reorder-initialization.patch"
   ./configure --prefix=/usr \
       --sysconfdir=/etc \
       --localstatedir=/var \
       --libexecdir=/usr/lib/ConsoleKit \
       --enable-pam-module \
-      --enable-docbook-docs || return 1
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
-  install -m755 "${srcdir}/pam-foreground-compat.ck" "${pkgdir}/usr/lib/ConsoleKit/run-session.d/" || return 1
+      --enable-docbook-docs
+  make
+  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
 }

Added: consolekit.logrotate
===================================================================
--- consolekit.logrotate	                        (rev 0)
+++ consolekit.logrotate	2010-08-06 20:24:41 UTC (rev 86890)
@@ -0,0 +1,5 @@
+/var/log/ConsoleKit/history {
+    missingok
+    notifempty
+    delaycompress
+}



More information about the arch-commits mailing list