# 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.5.ebuild,v 1.11 2007/01/05 16:56:46 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 ) "${T}/xdg.sh" export XDG_DATA_DIRS="${KDEDIR}/share:/usr/share" export XDG_CONFIG_DIRS="${KDEDIR}/etc/xdg" EOF insinto "${KDEDIR}/env" doins "${T}/xdg.sh" # x11 session script cat < "${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 }