diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-01-28 11:35:10 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-01-28 11:35:10 +0000 |
commit | b3f96fcc3251922a0cd215ea25b72cbb9600c935 (patch) | |
tree | 4c0602294a3e8c34ef3296b102d3378f52402b1a /kde-base/kdebase-startkde | |
parent | Fix KDE environment variables not to export XDG_CONFIG_DIRS to non-KDE serssi... (diff) | |
download | gentoo-2-b3f96fcc3251922a0cd215ea25b72cbb9600c935.tar.gz gentoo-2-b3f96fcc3251922a0cd215ea25b72cbb9600c935.tar.bz2 gentoo-2-b3f96fcc3251922a0cd215ea25b72cbb9600c935.zip |
Fix KDE environment variables not to export XDG_CONFIG_DIRS to non-KDE serssions. Thanks to Christoph Brill for reporting and Pacho Ramos for finding the problem again. See bug #164034.
(Portage version: 2.1.2-r4)
Diffstat (limited to 'kde-base/kdebase-startkde')
-rw-r--r-- | kde-base/kdebase-startkde/ChangeLog | 10 | ||||
-rw-r--r-- | kde-base/kdebase-startkde/files/digest-kdebase-startkde-3.5.6-r1 | 6 | ||||
-rw-r--r-- | kde-base/kdebase-startkde/kdebase-startkde-3.5.6-r1.ebuild | 80 |
3 files changed, 95 insertions, 1 deletions
diff --git a/kde-base/kdebase-startkde/ChangeLog b/kde-base/kdebase-startkde/ChangeLog index eef41fbc563e..7f936c843e92 100644 --- a/kde-base/kdebase-startkde/ChangeLog +++ b/kde-base/kdebase-startkde/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for kde-base/kdebase-startkde # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase-startkde/ChangeLog,v 1.81 2007/01/19 17:27:11 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase-startkde/ChangeLog,v 1.82 2007/01/28 11:35:10 flameeyes Exp $ + +*kdebase-startkde-3.5.6-r1 (28 Jan 2007) + + 28 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> + +kdebase-startkde-3.5.6-r1.ebuild: + Fix KDE environment variables not to export XDG_CONFIG_DIRS to non-KDE + serssions. Thanks to Christoph Brill for reporting and Pacho Ramos for + finding the problem again. See bug #164034. 19 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> kdebase-startkde-3.5.6.ebuild: diff --git a/kde-base/kdebase-startkde/files/digest-kdebase-startkde-3.5.6-r1 b/kde-base/kdebase-startkde/files/digest-kdebase-startkde-3.5.6-r1 new file mode 100644 index 000000000000..7f2b669fe56f --- /dev/null +++ b/kde-base/kdebase-startkde/files/digest-kdebase-startkde-3.5.6-r1 @@ -0,0 +1,6 @@ +MD5 420445e2dbddfd83ebc25e85a9b9cdda kdebase-3.5-patchset-03.tar.bz2 21409 +RMD160 941b919097d03347b10bccb51db2fa5e89d7ba16 kdebase-3.5-patchset-03.tar.bz2 21409 +SHA256 59c691754627f78daf7693e82496d808cf1cc31e2d6f32af829ec4ccfd776574 kdebase-3.5-patchset-03.tar.bz2 21409 +MD5 a53f589f58012e655a52220a6a151019 kdebase-3.5.6.tar.bz2 24155599 +RMD160 d3cbdcd148ea4c08d254f48faa10fc693517394c kdebase-3.5.6.tar.bz2 24155599 +SHA256 245b35f8b2e1533f9ae92b3b07bee5339a716dfb8db363d0126d2e7409b7bd7e kdebase-3.5.6.tar.bz2 24155599 diff --git a/kde-base/kdebase-startkde/kdebase-startkde-3.5.6-r1.ebuild b/kde-base/kdebase-startkde/kdebase-startkde-3.5.6-r1.ebuild new file mode 100644 index 000000000000..80c5b1764b7d --- /dev/null +++ b/kde-base/kdebase-startkde/kdebase-startkde-3.5.6-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase-startkde/kdebase-startkde-3.5.6-r1.ebuild,v 1.1 2007/01/28 11:35:10 flameeyes Exp $ + +KMNAME=kdebase +KMNOMODULE=true +KMEXTRACTONLY="kdm/kfrontend/sessions/kde.desktop.in startkde" +MAXKDEVER=$PV +KM_DEPRANGE="$PV $MAXKDEVER" +inherit kde-meta eutils + +SRC_URI="${SRC_URI} + mirror://gentoo/kdebase-3.5-patchset-03.tar.bz2" + +DESCRIPTION="startkde script, which starts a complete KDE session, and associated scripts" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="" + +# The kde apps called from the startkde script. +# kdesktop, kicker etc are started because they put files in $KDEDIR/share/autostart +# and so in theory they aren't strictly necessary deps. +RDEPEND="|| ( ( x11-apps/xmessage + x11-apps/xsetroot + x11-apps/xset + x11-apps/xrandr + x11-apps/mkfontdir + x11-apps/xprop + ) <virtual/x11-7 ) +$(deprange $PV $MAXKDEVER kde-base/kdesktop) +$(deprange $PV $MAXKDEVER kde-base/kcminit) +$(deprange $PV $MAXKDEVER kde-base/ksmserver) +$(deprange $PV $MAXKDEVER kde-base/kwin) +$(deprange $PV $MAXKDEVER kde-base/kpersonalizer) +$(deprange $PV $MAXKDEVER kde-base/kreadconfig) +$(deprange $PV $MAXKDEVER kde-base/ksplashml)" + + +src_compile() { :; } + +src_install() { + # startkde script + exeinto "${KDEDIR}/bin" + doexe startkde + + # startup and shutdown scripts + insinto "${KDEDIR}/env" + doins "${FILESDIR}/agent-startup.sh" + + exeinto "${KDEDIR}/shutdown" + doexe "${FILESDIR}/agent-shutdown.sh" + + # freedesktop environment variables + cat <<EOF > "${T}/xdg.sh" +export XDG_CONFIG_DIRS="${KDEDIR}/etc/xdg" +EOF + insinto "${KDEDIR}/env" + doins "${T}/xdg.sh" + + # x11 session script + cat <<EOF > "${T}/kde-${SLOT}" +#!/bin/sh +exec ${KDEDIR}/bin/startkde +EOF + exeinto /etc/X11/Sessions + doexe "${T}/kde-${SLOT}" + + # freedesktop compliant session script + sed -e "s:@KDE_BINDIR@:${KDEDIR}/bin:g;s:Name=KDE:Name=KDE ${SLOT}:" \ + "${S}/kdm/kfrontend/sessions/kde.desktop.in" > "${T}/kde-${SLOT}.desktop" + insinto /usr/share/xsessions + doins "${T}/kde-${SLOT}.desktop" +} + +pkg_postinst () { + echo + elog "To enable gpg-agent and/or ssh-agent in KDE sessions," + elog "edit ${KDEDIR}/env/agent-startup.sh and" + elog "${KDEDIR}/shutdown/agent-shutdown.sh" + echo +} |