Add ksystemlog pkgbuild, the patch is not proper anymore... we should imho drop this pkg from the ISO

This commit is contained in:
Manuel 2013-06-25 20:40:55 +00:00
parent 160cef55c1
commit f66677e4fe
3 changed files with 0 additions and 196 deletions

View File

@ -1,97 +0,0 @@
#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgbase=('kdeadmin')
pkgname=('kdeadmin-kcron'
'kdeadmin-kuser'
'kdeadmin-ksystemlog')
arch=('x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="split package"
url="http://www.kde.org/"
license=('GPL' 'LGPL' 'FDL')
install=kdeadmin.install
options=('docs' '!splithdr' 'splitdbg' 'log')
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdepimlibs>=${_kdever}" "kde-runtime>=${_kdever}"
"kdebindings-pykde4>=${_kdever}" "kdepim-runtime>=${_kdever}" "docbook-xsl")
source=("$_mirror/${pkgbase}-$_kdever.tar.xz"
"syslog-path.patch")
md5sums=(`grep ${pkgbase}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
'4b0c3e0a7b7561185e20014fcbc1118e')
build() {
cd ${srcdir}/${pkgbase}-${pkgver}
msg "fixing syslog path"
patch -p1 -i ${srcdir}/syslog-path.patch
# Set KUser default starting user to 1000
sed -i "s|ID 500 CACHE|ID 1000 CACHE|" kuser/CMakeLists.txt
cd ${srcdir}
rm -rf build
mkdir build && cd build
msg "starting build ..."
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \
-DBUILD_strigi-analyzer=OFF
make
}
package_kdeadmin-kcron() {
pkgdesc="Crontab editor"
depends=("kde-runtime>=${_kdever}")
groups=("${pkgbase}" "kde" "kde-uninstall")
conflicts=("kdeadmin-doc")
categories=('system')
splitdirs="kcron doc/kcron"
for i in ${splitdirs} ; do
cd ${srcdir}/build/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdeadmin-ksystemlog() {
pkgdesc="Log viewer"
screenshot="http://www.kde.org/images/screenshots/ksystemlog.png"
depends=("kde-runtime>=${_kdever}")
groups=("${pkgbase}" "kde" "kde-uninstall")
conflicts=("kdeadmin-doc")
categories=('system')
splitdirs="ksystemlog doc/ksystemlog"
for i in ${splitdirs} ; do
cd ${srcdir}/build/${i}
make DESTDIR=${pkgdir} install || return 1
done
}
package_kdeadmin-kuser() {
pkgdesc="Manage users and groups"
screenshot="http://www.kde.org/images/screenshots/kuser.png"
depends=("kde-runtime>=${_kdever}")
groups=("${pkgbase}" "kde" "kde-minimal" "kde-uninstall")
conflicts=("kdeadmin-doc")
categories=('system')
splitdirs="kuser doc/kuser"
for i in ${splitdirs} ; do
cd ${srcdir}/build/${i}
make DESTDIR=${pkgdir} install || return 1
done
}

View File

@ -1,88 +0,0 @@
post_install() {
if [ -e "/etc/chakra/updates.conf" ] ; then
. /etc/chakra/updates.conf
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
/usr/bin/chakra-update-icons
fi
if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then
/usr/bin/chakra-update-sycoca
fi
if [ "$UPDATE_USER_CONFIG" = "yes" ]; then
/usr/bin/chakra-update-user-sycoca
fi
else
echo " > WARNING"
echo " The package kde-common seems not to be installed,"
echo " this can possibly break the installation. Just install it"
echo " manually after this installation/update, run the following"
echo " commands and restart KDE afterwards:"
echo " sudo chakra-config-updater"
echo " kbuildsycoca4"
echo " "
fi
}
post_upgrade() {
if [ -e "/etc/chakra/updates.conf" ] ; then
. /etc/chakra/updates.conf
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
/usr/bin/chakra-update-icons
fi
if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then
/usr/bin/chakra-update-sycoca
fi
if [ "$UPDATE_USER_CONFIG" = "yes" ]; then
/usr/bin/chakra-update-user-sycoca
fi
else
echo " > WARNING"
echo " The package kde-common seems not to be installed,"
echo " this can possibly break the installation. Just install it"
echo " manually after this installation/update, run the following"
echo " commands and restart KDE afterwards:"
echo " sudo chakra-config-updater"
echo " kbuildsycoca4"
echo " "
fi
}
post_remove() {
if [ -e "/etc/chakra/updates.conf" ] ; then
. /etc/chakra/updates.conf
if [ "$UPDATE_XDG_ICON_DB" = "yes" ]; then
/usr/bin/chakra-update-icons
fi
if [ "$UPDATE_GLOBAL_CONFIG" = "yes" ]; then
/usr/bin/chakra-update-sycoca
fi
if [ "$UPDATE_USER_CONFIG" = "yes" ]; then
/usr/bin/chakra-update-user-sycoca
fi
else
echo " > WARNING"
echo " The package kde-common seems not to be installed,"
echo " this can possibly break the installation. Just install it"
echo " manually after this installation/update, run the following"
echo " commands and restart KDE afterwards:"
echo " sudo chakra-config-updater"
echo " kbuildsycoca4"
echo " "
fi
}
op=$1
shift
$op $*

View File

@ -1,11 +0,0 @@
--- 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
) {