diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2014-11-27 22:49:50 +1100 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2014-11-27 22:49:50 +1100 |
| commit | 4d4e8a208d6b7435b11785655c4ddbbbd589e8a5 (patch) | |
| tree | 3083dea56b630b6de9af2a5c794e0fd007e504f5 | |
| parent | b67a9474c849ad3b27f86a8dad703475fac0b491 (diff) | |
| download | kde-4d4e8a208d6b7435b11785655c4ddbbbd589e8a5.tar.gz kde-4d4e8a208d6b7435b11785655c4ddbbbd589e8a5.tar.bz2 kde-4d4e8a208d6b7435b11785655c4ddbbbd589e8a5.zip | |
[kde-apps] Remove old kde-workspace packages.
49 files changed, 9 insertions, 1031 deletions
diff --git a/kde-apps/freespacenotifier/freespacenotifier-4.11.49.9999.ebuild b/kde-apps/freespacenotifier/freespacenotifier-4.11.49.9999.ebuild deleted file mode 100644 index 3f36456c888..00000000000 --- a/kde-apps/freespacenotifier/freespacenotifier-4.11.49.9999.ebuild +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -KMNAME="kde-workspace" -inherit kde4-meta - -DESCRIPTION="A module that monitors free disk space on the home dir" -KEYWORDS="" -IUSE="debug" diff --git a/kde-apps/freespacenotifier/metadata.xml b/kde-apps/freespacenotifier/metadata.xml deleted file mode 100644 index a23f444b67d..00000000000 --- a/kde-apps/freespacenotifier/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>kde</herd> -</pkgmetadata> diff --git a/kde-apps/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch b/kde-apps/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch deleted file mode 100644 index 78520d4acc4..00000000000 --- a/kde-apps/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch +++ /dev/null @@ -1,15 +0,0 @@ -Index: kcheckpass/CMakeLists.txt -=================================================================== ---- kcheckpass/CMakeLists.txt (revision 1112521) -+++ kcheckpass/CMakeLists.txt (working copy) -@@ -23,10 +23,6 @@ - macro_add_compile_flags(kcheckpass -U_REENTRANT) - target_link_libraries(kcheckpass ${KDE4_KDEFAKES_LIBS} ${UNIXAUTH_LIBRARIES} ${SOCKET_LIBRARIES}) - install(TARGETS kcheckpass DESTINATION ${LIBEXEC_INSTALL_DIR}) --install(CODE " -- set(KCP_PATH \"\$ENV{DESTDIR}${LIBEXEC_INSTALL_DIR}/kcheckpass\") -- EXECUTE_PROCESS(COMMAND sh -c \"chown root '\${KCP_PATH}' && chmod +s '\${KCP_PATH}'\") --") - - install_pam_service(kcheckpass) - diff --git a/kde-apps/kcheckpass/kcheckpass-4.11.49.9999.ebuild b/kde-apps/kcheckpass/kcheckpass-4.11.49.9999.ebuild deleted file mode 100644 index 45a026168e1..00000000000 --- a/kde-apps/kcheckpass/kcheckpass-4.11.49.9999.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -KMNAME="kde-workspace" -inherit kde4-meta - -DESCRIPTION="A simple password checker, used by any software in need of user authentication" -KEYWORDS="" -IUSE="debug pam" - -RDEPEND=" - pam? ( - >=kde-base/kdebase-pam-7 - virtual/pam - ) -" - -src_prepare() { - kde4-meta_src_prepare - - use pam && epatch "${FILESDIR}/${PN}-4.4.2-no-SUID-no-GUID.patch" -} - -src_configure() { - local mycmakeargs=( - $(cmake-utils_use_with pam) - ) - - kde4-meta_src_configure -} diff --git a/kde-apps/kcheckpass/metadata.xml b/kde-apps/kcheckpass/metadata.xml deleted file mode 100644 index a23f444b67d..00000000000 --- a/kde-apps/kcheckpass/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>kde</herd> -</pkgmetadata> diff --git a/kde-apps/kcminit/kcminit-4.11.49.9999.ebuild b/kde-apps/kcminit/kcminit-4.11.49.9999.ebuild deleted file mode 100644 index 720f3bcebf8..00000000000 --- a/kde-apps/kcminit/kcminit-4.11.49.9999.ebuild +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -KMNAME="kde-workspace" -inherit kde4-meta - -DESCRIPTION="KCMInit - runs startups initialization for Control Modules" -KEYWORDS="" -IUSE="debug" - -DEPEND=" - x11-libs/libX11 -" -RDEPEND="${DEPEND}" diff --git a/kde-apps/kcminit/metadata.xml b/kde-apps/kcminit/metadata.xml deleted file mode 100644 index a23f444b67d..00000000000 --- a/kde-apps/kcminit/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>kde</herd> -</pkgmetadata> diff --git a/kde-apps/kdebase-cursors/kdebase-cursors-4.11.49.9999.ebuild b/kde-apps/kdebase-cursors/kdebase-cursors-4.11.49.9999.ebuild deleted file mode 100644 index 50e813bebbd..00000000000 --- a/kde-apps/kdebase-cursors/kdebase-cursors-4.11.49.9999.ebuild +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -KMNAME="kde-workspace" -KMMODULE="cursors" -inherit kde4-meta - -DESCRIPTION="oxygen cursors from kdebase" -IUSE="" -KEYWORDS="" diff --git a/kde-apps/kdebase-cursors/metadata.xml b/kde-apps/kdebase-cursors/metadata.xml deleted file mode 100644 index a23f444b67d..00000000000 --- a/kde-apps/kdebase-cursors/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>kde</herd> -</pkgmetadata> diff --git a/kde-apps/kdebase-startkde/files/KDE-4 b/kde-apps/kdebase-startkde/files/KDE-4 deleted file mode 100755 index 86a49d88eec..00000000000 --- a/kde-apps/kdebase-startkde/files/KDE-4 +++ /dev/null @@ -1,97 +0,0 @@ -#!/bin/sh -# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $ - -# source of this file: x11-apps/xinit-1.3.0-r2 - -case $# in -1) - case $1 in - failsafe) - exec xterm -geometry 80x24-0-0 - ;; - esac -esac - -# redirect errors to a file in user's home directory if we can -for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER" -do - if ( cp /dev/null "$errfile" 2> /dev/null ) - then - chmod 600 "$errfile" - exec > "$errfile" 2>&1 - break - fi -done - -# clean up after xbanner -if which freetemp 2> /dev/null ; then - freetemp -fi - -userresources=$HOME/.Xresources -usermodmap=$HOME/.Xmodmap -userxkbmap=$HOME/.Xkbmap - -sysresources=/etc/X11/Xresources -sysmodmap=/etc/X11/Xmodmap -sysxkbmap=/etc/X11/Xkbmap - -rh6sysresources=/etc/X11/xinit/Xresources -rh6sysmodmap=/etc/X11/xinit/Xmodmap - - -# merge in defaults -if [ -f "$rh6sysresources" ]; then - xrdb -merge "$rh6sysresources" -fi - -if [ -f "$sysresources" ]; then - xrdb -merge "$sysresources" -fi - -if [ -f "$userresources" ]; then - xrdb -merge "$userresources" -fi - -# merge in keymaps -if [ -f "$sysxkbmap" ]; then - setxkbmap `cat "$sysxkbmap"` - XKB_IN_USE=yes -fi - -if [ -f "$userxkbmap" ]; then - setxkbmap `cat "$userxkbmap"` - XKB_IN_USE=yes -fi - -# -# Eeek, this seems like too much magic here -# -if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then - if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then - xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config` - if [ -n "$xkbsymbols" ]; then - setxkbmap -symbols "$xkbsymbols" - XKB_IN_USE=yes - fi - fi -fi - -# xkb and xmodmap don't play nice together -if [ -z "$XKB_IN_USE" ]; then - if [ -f "$rh6sysmodmap" ]; then - xmodmap "$rh6sysmodmap" - fi - - if [ -f "$sysmodmap" ]; then - xmodmap "$sysmodmap" - fi - - if [ -f "$usermodmap" ]; then - xmodmap "$usermodmap" - fi -fi - -unset XKB_IN_USE - -exec "@GENTOO_PORTAGE_EPREFIX@/usr/bin/startkde" diff --git a/kde-apps/kdebase-startkde/files/agent-shutdown.sh b/kde-apps/kdebase-startkde/files/agent-shutdown.sh deleted file mode 100644 index 07cf74772b5..00000000000 --- a/kde-apps/kdebase-startkde/files/agent-shutdown.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# -# This file is executed at kde shutdown. -# Uncomment the following lines to kill the agents -# that were started at session startup. - -#if [ -n "${GPG_AGENT_INFO}" ]; then -# kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1 -#fi - -#if [ -n "${SSH_AGENT_PID}" ]; then -# eval "$(ssh-agent -s -k)" -#fi diff --git a/kde-apps/kdebase-startkde/files/agent-startup.sh b/kde-apps/kdebase-startkde/files/agent-startup.sh deleted file mode 100644 index 4b99f6e8b63..00000000000 --- a/kde-apps/kdebase-startkde/files/agent-startup.sh +++ /dev/null @@ -1,29 +0,0 @@ -# Agents startup file -# -# This file is sourced at kde startup, so that -# the environment variables set here are available -# throughout the session. - -# Uncomment the following lines to start gpg-agent -# and/or ssh-agent at kde startup. -# If you do so, do not forget to uncomment the respective -# lines in KDEDIR/shutdown/agent-shutdown.sh to -# properly kill the agents when the session ends. - -#if [ -x /usr/bin/gpg-agent ]; then -# eval "$(/usr/bin/gpg-agent --daemon)" -#fi - -#if [ -x /usr/bin/ssh-agent ]; then -# eval "$(/usr/bin/ssh-agent -s)" -#fi - -# Uncomment the following lines to start rxvt-unicode which has the ability to -# run multiple terminals in one single process, thus starting up faster and -# saving resources. -# The --opendisplay ensures that the daemon quits when the X server terminates, -# therefore we don't need matching lines in agent-shutdown.sh. - -#if [ -x /usr/bin/urxvtd ]; then -# /usr/bin/urxvtd --opendisplay --fork --quiet -#fi diff --git a/kde-apps/kdebase-startkde/files/gentoo-startkde4-4.patch b/kde-apps/kdebase-startkde/files/gentoo-startkde4-4.patch deleted file mode 100644 index 4d517750770..00000000000 --- a/kde-apps/kdebase-startkde/files/gentoo-startkde4-4.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- startkde.cmake.old 2011-03-24 13:07:04.919889148 +0100 -+++ startkde.cmake 2011-03-24 13:14:42.033174445 +0100 -@@ -187,6 +187,11 @@ - done - done - -+# Gentoo part for FHS installs -+for file in "@GENTOO_PORTAGE_EPREFIX@/etc/kde/startup/"*.sh; do -+ test -r "${file}" && . "${file}" -+done -+ - # Set the path for Qt plugins provided by KDE - if test -n "$QT_PLUGIN_PATH"; then - QT_PLUGIN_PATH="$QT_PLUGIN_PATH:`kde4-config --path qtplugins`" -@@ -400,6 +405,11 @@ - done - done - -+# Gentoo part for FHS installs -+for file in "@GENTOO_PORTAGE_EPREFIX@/etc/kde/shutdown/"*.sh; do -+ test -r "${file}" && . "${file}" -+done -+ - unset KDE_FULL_SESSION - xprop -root -remove KDE_FULL_SESSION - unset KDE_SESSION_VERSION diff --git a/kde-apps/kdebase-startkde/files/kdebase-startkde-kscreen.patch b/kde-apps/kdebase-startkde/files/kdebase-startkde-kscreen.patch deleted file mode 100644 index 65644aff83a..00000000000 --- a/kde-apps/kdebase-startkde/files/kdebase-startkde-kscreen.patch +++ /dev/null @@ -1,20 +0,0 @@ -Only try to run krandrstartup if it exists wrt bug #524266. - -After f7f5d84c85b6c7f946b94808849648b4cb6ea667, krandrstartup is no longer -available if kde-base/systemsettings is built with USE="kscreen". Otherwise, -KDE will fail to start - -Source: http://pkgs.fedoraproject.org/cgit/kde-workspace.git/tree/startkde.cmake -diff --git a/startkde.cmake b/startkde.cmake -index afc2cfb..4220e64 100644 ---- a/startkde.cmake -+++ b/startkde.cmake -@@ -105,7 +105,7 @@ if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" - fi - fi - --. krandrstartup -+KRANDRSTARTUP=`which krandrstartup 2>/dev/null` && . $KRANDRSTARTUP - - if test "$kcmfonts_general_forcefontdpi" -ne 0; then - xrdb -quiet -merge -nocpp <<EOF diff --git a/kde-apps/kdebase-startkde/kdebase-startkde-4.11.49.9999.ebuild b/kde-apps/kdebase-startkde/kdebase-startkde-4.11.49.9999.ebuild deleted file mode 100644 index 373e2dcd7fb..00000000000 --- a/kde-apps/kdebase-startkde/kdebase-startkde-4.11.49.9999.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -KMNAME="kde-workspace" -KMNOMODULE="true" -inherit kde4-meta prefix - -DESCRIPTION="Startkde script, which starts a complete KDE session, and associated scripts" -KEYWORDS="" -IUSE="+wallpapers" - -# The KDE apps called from the startkde script. -# These provide the most minimal KDE desktop. -RDEPEND=" - $(add_kdebase_dep kcminit) - $(add_kdebase_dep kdebase-runtime-meta) - wallpapers? ( $(add_kdebase_dep kde-wallpapers) ) - $(add_kdebase_dep kfmclient) - $(add_kdebase_dep knotify) - $(add_kdebase_dep kreadconfig) - $(add_kdebase_dep krunner) - $(add_kdebase_dep ksmserver) - $(add_kdebase_dep ksplash) - $(add_kdebase_dep kstartupconfig) - $(add_kdebase_dep kwin) - $(add_kdebase_dep phonon-kde) - $(add_kdebase_dep plasma-apps) - $(add_kdebase_dep plasma-workspace) - $(add_kdebase_dep systemsettings) - x11-apps/mkfontdir - x11-apps/xmessage - x11-apps/xprop - x11-apps/xrandr - x11-apps/xrdb - x11-apps/xsetroot - x11-apps/xset -" - -KMEXTRACTONLY=" - ConfigureChecks.cmake - kdm/ - startkde.cmake -" - -PATCHES=( - "${FILESDIR}/gentoo-startkde4-4.patch" - "${FILESDIR}/${PN}-kscreen.patch" -) - -src_prepare() { - kde4-meta_src_prepare - - cp "${FILESDIR}/KDE-4" "${T}" - - # fix ${EPREFIX} - eprefixify startkde.cmake "${T}/KDE-4" -} - -src_install() { - kde4-meta_src_install - - # startup and shutdown scripts - insinto /etc/kde/startup - doins "${FILESDIR}/agent-startup.sh" - - insinto /etc/kde/shutdown - doins "${FILESDIR}/agent-shutdown.sh" - - # x11 session script - exeinto /etc/X11/Sessions - doexe "${T}/KDE-4" - - # freedesktop compliant session script - sed -e "s:\${BIN_INSTALL_DIR}:${EPREFIX}/usr/bin:g" \ - "${S}/kdm/kfrontend/sessions/kde-plasma.desktop.cmake" > "${T}/KDE-4.desktop" - insinto /usr/share/xsessions - doins "${T}/KDE-4.desktop" -} - -pkg_postinst () { - kde4-meta_pkg_postinst - - echo - elog "To enable gpg-agent and/or ssh-agent in KDE sessions," - elog "edit ${EPREFIX}/etc/kde/startup/agent-startup.sh and" - elog "${EPREFIX}/etc/kde/shutdown/agent-shutdown.sh" - echo - elog "The name of the session script has changed." - elog "If you currently have XSESSION=\"kde-$(get_kde_version)\" in your" - elog "configuration files, you will need to change it to" - elog "XSESSION=\"KDE-4\"" -} diff --git a/kde-apps/kdebase-startkde/metadata.xml b/kde-apps/kdebase-startkde/metadata.xml deleted file mode 100644 index 783e379c92b..00000000000 --- a/kde-apps/kdebase-startkde/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>kde</herd> - <use> - <flag name="wallpapers">Install the KDE wallpapers</flag> - </use> -</pkgmetadata> diff --git a/kde-apps/kdm/files/kdm-4-gentoo-xinitrc.d.patch b/kde-apps/kdm/files/kdm-4-gentoo-xinitrc.d.patch deleted file mode 100644 index 538363af045..00000000000 --- a/kde-apps/kdm/files/kdm-4-gentoo-xinitrc.d.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -Nurp kdm-4.3.1.orig/kdm/kfrontend/genkdmconf.c kdm-4.3.1/kdm/kfrontend/genkdmconf.c ---- kdm-4.3.1.orig/kdm/kfrontend/genkdmconf.c 2009-09-20 07:57:19.746730568 +0200 -+++ kdm-4.3.1/kdm/kfrontend/genkdmconf.c 2009-09-20 08:01:17.767496412 +0200 -@@ -687,6 +687,15 @@ static const char def_session2[] = - "[ -f /etc/xprofile ] && . /etc/xprofile\n" - "[ -f $HOME/.xprofile ] && . $HOME/.xprofile\n" - "\n" -+"# run all system xinitrc shell scripts.\n" -+"if [ -d /etc/X11/xinit/xinitrc.d ]; then\n" -+" for i in /etc/X11/xinit/xinitrc.d/* ; do\n" -+" if [ -x \"$i\" ]; then\n" -+" . \"$i\"\n" -+" fi\n" -+" done\n" -+"fi\n" -+"\n" - "case $session in\n" - " \"\")\n" - " exec xmessage -center -buttons OK:0 -default OK \"Sorry, $DESKTOP_SESSION is no valid session.\"\n" diff --git a/kde-apps/kdm/files/kdm-logrotate b/kde-apps/kdm/files/kdm-logrotate deleted file mode 100644 index 4bce1a0392d..00000000000 --- a/kde-apps/kdm/files/kdm-logrotate +++ /dev/null @@ -1,8 +0,0 @@ -/var/log/kdm.log { - maxage 365 - size=+1024k - notifempty - missingok - compress - copytruncate -} diff --git a/kde-apps/kdm/files/kdm.service b/kde-apps/kdm/files/kdm.service deleted file mode 100644 index 412ffa394ff..00000000000 --- a/kde-apps/kdm/files/kdm.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=KDM Display Manager -Conflicts=getty@tty1.service -After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service - -[Service] -ExecStart=/usr/bin/kdm -nodaemon -Restart=always -IgnoreSIGPIPE=no - -[Install] -Alias=display-manager.service diff --git a/kde-apps/kdm/kdm-4.11.49.9999.ebuild b/kde-apps/kdm/kdm-4.11.49.9999.ebuild deleted file mode 100644 index b24547a0c08..00000000000 --- a/kde-apps/kdm/kdm-4.11.49.9999.ebuild +++ /dev/null @@ -1,162 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 - -KDE_HANDBOOK="optional" -KMNAME="kde-workspace" -inherit systemd kde4-meta flag-o-matic user - -DESCRIPTION="KDE login manager, similar to xdm and gdm" -KEYWORDS="" -IUSE="debug +consolekit kerberos pam systemd" - -REQUIRED_USE="consolekit? ( !systemd ) systemd? ( !consolekit )" - -DEPEND=" - $(add_kdebase_dep libkworkspace) - media-libs/qimageblitz - x11-libs/libX11 - x11-libs/libXau - x11-libs/libXdmcp - x11-libs/libXtst - consolekit? ( - >=sys-apps/dbus-1.0.2 - sys-auth/consolekit - ) - kerberos? ( virtual/krb5 ) - pam? ( - $(add_kdebase_dep kcheckpass) - virtual/pam - ) - systemd? ( sys-apps/systemd ) -" -RDEPEND="${DEPEND} - $(add_kdebase_dep kdepasswd) - >=x11-apps/xinit-1.0.5-r2 - x11-apps/xmessage -" - -KMEXTRA=" - libs/kdm/ -" - -PATCHES=( - "${FILESDIR}/${PN}-4-gentoo-xinitrc.d.patch" -) - -pkg_setup() { - kde4-meta_pkg_setup - - # Create kdm:kdm user - KDM_HOME=/var/lib/kdm - enewgroup kdm - enewuser kdm -1 -1 "${KDM_HOME}" kdm -} - -src_configure() { - local mycmakeargs=( - $(cmake-utils_use kerberos KDE4_KRB5AUTH) - $(cmake-utils_use_with pam) - $(cmake-utils_use_with consolekit CkConnector) - ) - - kde4-meta_src_configure -} - -src_install() { - export GENKDMCONF_FLAGS="--no-old --no-backup" - - kde4-meta_src_install - - # an equivalent file is already installed by kde-base/startkde, bug 377151 - rm "${ED}/usr/share/apps/kdm/sessions/kde-plasma.desktop" || die - - # Customize the kdmrc configuration: - # - SessionDirs set to /usr/share/xsessions - # - increase server timeout to 30s - # - TerminateServer=true to workaround X server regen bug, bug 278473 - # - DataDir set to /var/lib/kdm - # - FaceDir set to /var/lib/kdm/faces - sed -e "s|^.*SessionsDirs=.*$|#&\nSessionsDirs=${EPREFIX}/usr/share/apps/kdm/sessions,${EPREFIX}/usr/share/xsessions|" \ - -e "/#ServerTimeout=/s/^.*$/ServerTimeout=30/" \ - -e "/#TerminateServer=/s/^.*$/TerminateServer=true/" \ - -e "s|^.*DataDir=.*$|#&\nDataDir=${EPREFIX}${KDM_HOME}|" \ - -e "s|^.*FaceDir=.*$|#&\nFaceDir=${EPREFIX}${KDM_HOME}/faces|" \ - -i "${ED}"/usr/share/config/kdm/kdmrc \ - || die "Failed to set ServerTimeout and SessionsDirs correctly in kdmrc." - - # Don't install empty dir - rmdir "${ED}"/usr/share/config/kdm/sessions - - # Set up permissions to kdm work directory - keepdir "${KDM_HOME}" - fowners root:kdm "${KDM_HOME}" - fperms 1770 "${KDM_HOME}" - - # install logrotate file - insinto /etc/logrotate.d - newins "${FILESDIR}"/kdm-logrotate kdm - - systemd_dounit "${FILESDIR}"/kdm.service -} - -pkg_postinst() { - kde4-meta_pkg_postinst - - local file src dest dir old_dirs=( - /var/lib/kdm-live - /var/lib/kdm-4.6 - /var/lib/kdm-4.5 - /var/lib/kdm-4.4 - /usr/share/apps/kdm - /usr/kde/4.4/share/apps/kdm - /usr/kde/4.3/share/apps/kdm - /usr/kde/4.2/share/apps/kdm - ) - - mkdir -p "${EROOT}${KDM_HOME}/faces" - # Set the default kdm face icon if it's not already set by the system admin - # because this is user-overrideable in that way, it's not in src_install - for file in faces/.default.face.icon:default1.png faces/root.face.icon:root1.png kdmsts: ; do - src=${file#*:} - dest=${file%:*} - if [[ ! -e ${EROOT}${KDM_HOME}/$dest ]]; then - for dir in "${old_dirs[@]}"; do - if [[ -e ${EROOT}${dir}/${dest} ]]; then - cp "${EROOT}${dir}/${dest}" "${EROOT}${KDM_HOME}/${dest}" - break 2 - fi - done - if [[ -n ${src} ]]; then - cp "${EROOT}/usr/share/apps/kdm/pics/users/${src}" \ - "${EROOT}${KDM_HOME}/${dest}" - fi - fi - done - for dir in "${old_dirs[@]}"; do - if [[ ${dir} != /usr/* && -d ${EROOT}${dir} ]]; then - echo - elog "The directory ${EROOT%/}${dir} still exists from an older installation of KDE." - elog "You may wish to copy relevant settings into ${EROOT%/}${KDM_HOME}." - echo - elog "After doing so, you may delete t |
