CXXVII. Kdeutils-ksystemlog (KDE4.14)
PKGBUILD
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgname=kdeadmin-ksystemlog
pkgver=14.12.0
pkgrel=1
pkgdesc='System log viewer tool'
url='http://kde.org/applications/system/ksystemlog/'
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdeadmin')
depends=('kdebase-runtime')
makedepends=('cmake' 'automoc4')
source=("http://download.kde.org/stable/applications/${pkgver}/src/ksystemlog-${pkgver}.tar.xz"
'syslog-path.patch')
sha1sums=('843692ee457be7876710f6d76322865de2275bfc'
'20095ce6e0f3e5b6800a7c6e52de6fddba62c031')
prepare() {
cd ksystemlog-${pkgver}
patch -p2 -i "${srcdir}"/syslog-path.patch
}
build() {
mkdir build
cd build
cmake ../ksystemlog-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd build
make DESTDIR=$pkgdir install
}
syslog-path.patch
--- kdeadmin-4.6.0/ksystemlog/src/modes/system/systemConfiguration.h~ 2011-01-27 14:24:29.840000005 +0100
+++ kdeadmin-4.6.0/ksystemlog/src/modes/system/systemConfiguration.h 2011-01-27 14:24:53.803333335 +0100
@@ -39,7 +39,7 @@
SystemConfiguration() :
GenericLogModeConfiguration(
QLatin1String( SYSTEM_LOG_MODE_ID ),
- QStringList() << QLatin1String( "/var/log/syslog" ),
+ QStringList() << QLatin1String( "/var/log/messages.log" ),
QList<int>() << INFORMATION_LOG_LEVEL_ID
) {