summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWulf Krueger <philantrop@gentoo.org>2008-04-15 10:05:12 +0000
committerWulf Krueger <philantrop@gentoo.org>2008-04-15 10:05:12 +0000
commitc2cee11ec88dafe37c49ee20377fd63157f21cee (patch)
tree2f7bf9038afaf39fdf30df3c3a0dcd43a4610977 /kde-base/kdebase
parentPulled updates from the overlay. (diff)
downloadhistorical-c2cee11ec88dafe37c49ee20377fd63157f21cee.tar.gz
historical-c2cee11ec88dafe37c49ee20377fd63157f21cee.tar.bz2
historical-c2cee11ec88dafe37c49ee20377fd63157f21cee.zip
Re-added Lubos Lunak's Xinerama patch as kindly provided by Vladimir Brik on bug 211469. Removed obsolete patches.
Package-Manager: portage-2.1.5_rc2
Diffstat (limited to 'kde-base/kdebase')
-rw-r--r--kde-base/kdebase/ChangeLog18
-rw-r--r--kde-base/kdebase/Manifest15
-rw-r--r--kde-base/kdebase/files/kate-3.5.5-visibility.patch77
-rw-r--r--kde-base/kdebase/files/kate-3.5.7-session-save.patch18
-rw-r--r--kde-base/kdebase/files/kdebase-kioslaves-3.5.5-fstab.patch73
-rw-r--r--kde-base/kdebase/files/kdebase-startkde-3.5.3-xinitrcd.patch18
-rw-r--r--kde-base/kdebase/files/kdesktop-3.5.3-screensaver.patch101
-rw-r--r--kde-base/kdebase/files/kdm-3.5.7-login.diff63
-rw-r--r--kde-base/kdebase/files/konqueror-3.5.7-185603-spoofing.diff49
-rw-r--r--kde-base/kdebase/files/konqueror-3.5.7-location.patch12
-rw-r--r--kde-base/kdebase/files/kwin-3.5.5-input-shape.patch63
-rw-r--r--kde-base/kdebase/files/nsplugins-3.5.5-npapi-64bit.patch20
-rw-r--r--kde-base/kdebase/files/nsplugins-3.5.6-keyboard-handler.diff77
-rw-r--r--kde-base/kdebase/kdebase-3.5.9-r2.ebuild258
14 files changed, 278 insertions, 584 deletions
diff --git a/kde-base/kdebase/ChangeLog b/kde-base/kdebase/ChangeLog
index c5f58e47c4e4..138a8149e753 100644
--- a/kde-base/kdebase/ChangeLog
+++ b/kde-base/kdebase/ChangeLog
@@ -1,6 +1,22 @@
# ChangeLog for kde-base/kdebase
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/ChangeLog,v 1.438 2008/03/20 17:47:47 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/ChangeLog,v 1.439 2008/04/15 10:05:10 philantrop Exp $
+
+*kdebase-3.5.9-r2 (15 Apr 2008)
+
+ 15 Apr 2008; Wulf C. Krueger <philantrop@gentoo.org>
+ -files/kdesktop-3.5.3-screensaver.patch,
+ -files/kdebase-startkde-3.5.3-xinitrcd.patch,
+ -files/kdebase-kioslaves-3.5.5-fstab.patch,
+ -files/kwin-3.5.5-input-shape.patch,
+ -files/nsplugins-3.5.5-npapi-64bit.patch,
+ -files/kate-3.5.5-visibility.patch,
+ -files/nsplugins-3.5.6-keyboard-handler.diff,
+ -files/konqueror-3.5.7-185603-spoofing.diff,
+ -files/konqueror-3.5.7-location.patch, -files/kdm-3.5.7-login.diff,
+ -files/kate-3.5.7-session-save.patch, +kdebase-3.5.9-r2.ebuild:
+ Re-added Lubos Lunak's Xinerama patch as kindly provided by Vladimir Brik
+ on bug 211469. Removed obsolete patches.
20 Mar 2008; Ingmar Vanhassel <ingmar@gentoo.org>
-files/kdebase-4.0.1-opengl.patch,
diff --git a/kde-base/kdebase/Manifest b/kde-base/kdebase/Manifest
index 51e2ee547771..9c1b09b1eda4 100644
--- a/kde-base/kdebase/Manifest
+++ b/kde-base/kdebase/Manifest
@@ -2,26 +2,17 @@ AUX Gentoo_Bugzilla.desktop 283 RMD160 84ec8315ffead9bc04bc358d971e7ab653971f17
AUX Gentoo_Forums.desktop 220 RMD160 fa508890fc6b109a7f78b23aa9e0e87db0edad5d SHA1 90e25c262a79cd0c20afe98f8b99c2265ffbe3df SHA256 6e873ab6fadddd8429ac67f6f03e53843ec44524b178572db9111ff4799cdc60
AUX agent-shutdown.sh 323 RMD160 9a0451c1e58e688c022ecd2b37f08cac433b187d SHA1 1abb7a1503a80d95e4db34fa7fe58accce6e8109 SHA256 6a2d645ef38d3db9d36166fac699848d07eb166f71a646d7f1466efeb394eb11
AUX agent-startup.sh 550 RMD160 62b38cdc14970db4f8ae09c90d7bc2a388255301 SHA1 86efb56cb6c746fe069e964f5e2e3f521d782a0a SHA256 f43a591922dd5a2649cad7b3d42827ee56aa21c09564e5eebb0cf7fa2eeb5fc4
-AUX kate-3.5.5-visibility.patch 2248 RMD160 58915fcb0f8083e25a2ed85022312b53a6bce816 SHA1 14aa880d8e12e31051df193e162f4a515ed5d45c SHA256 d6546f8f188d6d4f5d75de61ede58f901d2a7d3410d7bb853ad40205aba2d560
-AUX kate-3.5.7-session-save.patch 830 RMD160 b985212c85c11b563bbeb0a8348e2771e8b6e43d SHA1 910d98f125e0d20a54a25069e7df296eb8857657 SHA256 191b6fea38483d631ba87b8fdeff6ad65ace7f9aba8e0aeb2f8ecfb6bf1d336a
-AUX kdebase-kioslaves-3.5.5-fstab.patch 3103 RMD160 53a4f0ded4d368f93eb29650d12d266735d7bf9e SHA1 1ffe0d67e77970774a5a2420f79b0579716dc8a7 SHA256 6a17470a3245a59c6e84a0142e64633e74b2bb12649e9c46c0903dd8fa4edb29
-AUX kdebase-startkde-3.5.3-xinitrcd.patch 596 RMD160 abc33f225160eed8db35d64e6c88099463bb2b20 SHA1 bcc9ffbaa6a3c247867a9f1417aa40f750e0d5e5 SHA256 22d894acb04d9bcf2c4b2a072b7d1bbfa0370f51e2b44c0dc1a40e05cca5c497
-AUX kdesktop-3.5.3-screensaver.patch 3336 RMD160 f8ac6f039ea14dbbf1f8579cd610a8f5e0f26bd2 SHA1 637dea7fab3bd9882dc09e9ed31904024016201f SHA256 0e6fa9e399914805c72042ddb358ea3760f30f6d1b2b782f744a3fe20d9c18d8
-AUX kdm-3.5.7-login.diff 1605 RMD160 4322545997610c528e56d6b810ebbda8ff4095d0 SHA1 b270a1d5b3980f49a274308bec7fc649be1bd315 SHA256 c1edb2d2377f1f090262cce6cd92504a6a49cb15089e195778acae5e9b2ed384
AUX kdm-3.5.8-login.diff 921 RMD160 d4c0563ef09e17c15ce384dfa30abeff5b4bbdc5 SHA1 946f42fff2e5323e409b543cefa62ce93906c842 SHA256 f7b458f1dff83e2c67e4d696363209c548fb8a2a85029d2f5e1be512286a84ad
AUX kdm-3.5.9-respect-cflags.patch 669 RMD160 23bace1d034c9051fadf9d29886e824bff57dad3 SHA1 a3fff3c118266f999a91abfb7f4496694c311f5c SHA256 1dd4b590955dafd0484b04102872d0de58c3fd2bf0b6d44362d2ffc2d3244656
-AUX konqueror-3.5.7-185603-spoofing.diff 1901 RMD160 bb59c1e78e5709d72b123c5b3b5a538fc09f564e SHA1 3868392701ebe9fce14567a1f52d458d00f31287 SHA256 70a5022b38aa93616032c02518b66a9b938f17aa42c14a9b1de71d0ee73d1e72
-AUX konqueror-3.5.7-location.patch 454 RMD160 868630c762c1c35174fc3d7c0b1de83711c31c13 SHA1 79be2ce4f11a0c0054952cf279a08ab9ca3f1b4a SHA256 f22aaf1dcb994f5e2fb87483489184527f0ff9b1f42162e56ed37c79c668236c
AUX ksmserver-3.5.8-gdm_interop_197133.patch 1224 RMD160 800d158dab30766f09ebe929ec1bde52c9337951 SHA1 c1501c1a388a215f1700a47ada4f15371b350e16 SHA256 705f8b644d0d25f4692818dd3c6c0919505e5af33424f34913bf7052ac055e11
-AUX kwin-3.5.5-input-shape.patch 2920 RMD160 d059a3386e6ff4ed06b5c843cc68105524808820 SHA1 3e1d3993ba87c157c6bf2c2db9f07a235e657568 SHA256 29f7c0677f0d799f983122e5ce05689ac326046452b6c9f6f71d2488161ac9db
-AUX nsplugins-3.5.5-npapi-64bit.patch 718 RMD160 c4420f4625bfde9eb5e647371297192f8831a28f SHA1 dd5c2a8f60810eaeee06fdb94537d33b698cae7f SHA256 932895b1724ad7bc21d0732130169b967f8704696a86cfa2a154f0129b6472f2
-AUX nsplugins-3.5.6-keyboard-handler.diff 2360 RMD160 d7b5e2ed6f95bc9a493b62713f43f56f653e2f60 SHA1 b73137e16379ddcf2d4b6941d5619b026eb2ad1b SHA256 bc162a970d1e5511bb757de7881af2b8604224cf83f2115da28b68c7a7c37c1d
+DIST kde-3.5.9-seli-xinerama.tar.bz2 15150 RMD160 09f9dc74e52d1507a73d1140654021d2baedde3a SHA1 cb8eaba630ee7c8f93c634512d52a9d1603d5405 SHA256 769b0135b327b3274aa45d78ae882811073041fdbfd55267106b1a3f42115966
DIST kdebase-3.5-patchset-10.tar.bz2 38090 RMD160 b3fdca9c5220a213c1390ef558542640e810834a SHA1 a2a1a638bb6b7ac0b00d7588c53a1b60013cb3bb SHA256 73d3541312366a1aedf9ebe5187e565458224682ef188a20b735f7e54718e572
DIST kdebase-3.5-patchset-11.tar.bz2 39328 RMD160 134ff835ff3577d138d259f43cb358e17b58ccd1 SHA1 d50aea5163611194f7e675b9b154e6b692ab8f7c SHA256 c9c0eb62c66739dd01baf07c9c01feb3854d56548f480b4cd99228896cecd100
DIST kdebase-3.5.8.tar.bz2 24200172 RMD160 6441b5eaead5fff5c42c532fb11c0d37001cb6ea SHA1 07f2e33aef101e97237676719ef2bf8418d894b2 SHA256 0f1876d1c68f01ed8fee346c1bae4f53dd2c1dc56db94e309b3d1adfc6138493
DIST kdebase-3.5.9.tar.bz2 24239563 RMD160 2552d850e62efd044c178e2eb04efdcce90e4a33 SHA1 a6a19e0b26ed7a2b138a4a7594c8486e26610de8 SHA256 6e958803055928cda73273996696e5f7aaad803a3854853f4ec44428c49c831e
EBUILD kdebase-3.5.8-r6.ebuild 7879 RMD160 2c1b1ada37e847ba7275d5e6eebdb2b8c92960e8 SHA1 98a6bc1b750ef071385f51815baea6078d18107f SHA256 ab32d9dc5fda630444f3a02a8dc38dcf9846f54669ec5f2c3b12d9440a72139e
EBUILD kdebase-3.5.9-r1.ebuild 8141 RMD160 8de154d4836d944a7de8b720a8ed4d703e596ab3 SHA1 fd89d8a8e2fb02ebe2b3de533c22cb3e16b4c493 SHA256 0a68951f5824474937bef9f98c6cdf86dca8868c56ffa06878e9f3637a203673
+EBUILD kdebase-3.5.9-r2.ebuild 8239 RMD160 593db7c0b64e53f175c74633f13d16c3c76ef64a SHA1 09ecd72ded4dc4de6d9ceab5b67909933748a25c SHA256 c6a14e54c01eac3a677dbe408dcf140c8f0db425606b9432c62108491bded0f3
EBUILD kdebase-3.5.9.ebuild 8172 RMD160 35bd3da0ab294063dd176f1da8757f328937b36a SHA1 cfc70cee64e8f97641e820755a7b23f851349f62 SHA256 deb934a983e5fb69427fc1663108b4579b0b1f4fedf9964be3d1837feb6fd672
-MISC ChangeLog 73649 RMD160 1af9626d9c2b9d9ef45bf23c5d781207e45c452a SHA1 d3841b0cc805d46f87d8932c0edd957a301b3b49 SHA256 58503d68dd42fa777fbb6518e9b388433843719e64dfe0f423496966ed1e3111
+MISC ChangeLog 74350 RMD160 203801a3946a5fef2a047393ecc2a42c4456473d SHA1 e6fe44f6a7c25cc74e89aecc0378350ff3affcab SHA256 78453a95c964b6844d1fd867bda12f4f94e35868f6f8bc7cc270fe6147282399
MISC metadata.xml 156 RMD160 ecce3b981f150c45ae1e84e2d208e678d6124259 SHA1 b64f7c0b4e5db816d82ad19848f72118af129d35 SHA256 2f4da28506b9d4185f320f67a6191d30c7a921217ed4447ed46ea0bc4aefc79a
diff --git a/kde-base/kdebase/files/kate-3.5.5-visibility.patch b/kde-base/kdebase/files/kate-3.5.5-visibility.patch
deleted file mode 100644
index 4468a30ffff6..000000000000
--- a/kde-base/kdebase/files/kate-3.5.5-visibility.patch
+++ /dev/null
@@ -1,77 +0,0 @@
-SVN commit 599194 by dhaumann:
-
-fix missing KDE_EXPORTs which caused undefined references for kate plugins.
-
-CCMAIL: kwrite-devel@kde.org
-
-
- M +1 -1 application.h
- M +1 -1 documentmanager.h
- M +2 -2 plugin.h
- M +1 -1 pluginconfiginterface.h
- M +1 -1 pluginconfiginterfaceextension.h
-
-
---- branches/KDE/3.5/kdebase/kate/interfaces/application.h #599193:599194
-@@ -72,7 +72,7 @@
- * Returns the application object
- * @return Application application object
- */
--Application *application ();
-+KDE_EXPORT Application *application ();
-
- }
-
---- branches/KDE/3.5/kdebase/kate/interfaces/documentmanager.h #599193:599194
-@@ -104,7 +104,7 @@
- * Returns the document manager object
- * @return DocumentManager document manager object
- */
--DocumentManager *documentManager ();
-+KDE_EXPORT DocumentManager *documentManager ();
-
- }
-
---- branches/KDE/3.5/kdebase/kate/interfaces/plugin.h #599193:599194
-@@ -52,7 +52,7 @@
- unsigned int myPluginNumber;
- };
-
--Plugin *createPlugin ( const char* libname, Application *application = 0, const char *name = 0,const QStringList &args = QStringList() );
-+KDE_EXPORT Plugin *createPlugin ( const char* libname, Application *application = 0, const char *name = 0,const QStringList &args = QStringList() );
-
- /*
- * view plugin class
-@@ -80,7 +80,7 @@
- unsigned int myPluginViewInterfaceNumber;
- };
-
--PluginViewInterface *pluginViewInterface (Plugin *plugin);
-+KDE_EXPORT PluginViewInterface *pluginViewInterface (Plugin *plugin);
-
- }
-
---- branches/KDE/3.5/kdebase/kate/interfaces/pluginconfiginterface.h #599193:599194
-@@ -56,7 +56,7 @@
- };
-
- class Plugin;
--PluginConfigInterface *pluginConfigInterface (Plugin *plugin);
-+KDE_EXPORT PluginConfigInterface *pluginConfigInterface (Plugin *plugin);
-
- }
-
---- branches/KDE/3.5/kdebase/kate/interfaces/pluginconfiginterfaceextension.h #599193:599194
-@@ -97,7 +97,7 @@
- };
-
- class Plugin;
--PluginConfigInterfaceExtension *pluginConfigInterfaceExtension (Plugin *plugin);
-+KDE_EXPORT PluginConfigInterfaceExtension *pluginConfigInterfaceExtension (Plugin *plugin);
-
- }
-
-_______________________________________________
-KWrite-Devel mailing list
-KWrite-Devel@kde.org
-https://mail.kde.org/mailman/listinfo/kwrite-devel \ No newline at end of file
diff --git a/kde-base/kdebase/files/kate-3.5.7-session-save.patch b/kde-base/kdebase/files/kate-3.5.7-session-save.patch
deleted file mode 100644
index fe8029365357..000000000000
--- a/kde-base/kdebase/files/kate-3.5.7-session-save.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- branches/KDE/3.5/kdebase/kate/app/katesession.cpp 2007/06/16 03:24:38 676114
-+++ branches/KDE/3.5/kdebase/kate/app/katesession.cpp 2007/06/16 03:24:56 676115
-@@ -381,13 +381,13 @@
-
- if (sesExit == "ask")
- {
-- KDialogBase dlg( i18n ("Save Session?")
-+ KDialogBase* dlg = new KDialogBase(i18n ("Save Session?")
- , KDialogBase::Yes | KDialogBase::No
- , KDialogBase::Yes, KDialogBase::No
- );
-
- bool dontAgain = false;
-- int res = KMessageBox::createKMessageBox(&dlg, QMessageBox::Question,
-+ int res = KMessageBox::createKMessageBox(dlg, QMessageBox::Question,
- i18n("Save current session?"), QStringList(),
- i18n("Do not ask again"), &dontAgain, KMessageBox::Notify);
-
diff --git a/kde-base/kdebase/files/kdebase-kioslaves-3.5.5-fstab.patch b/kde-base/kdebase/files/kdebase-kioslaves-3.5.5-fstab.patch
deleted file mode 100644
index 3f0721e75fb7..000000000000
--- a/kde-base/kdebase/files/kdebase-kioslaves-3.5.5-fstab.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From: Stephan Kulow <coolo@kde.org>
-To: kde-commits@kde.org
-Subject: branches/KDE/3.5/kdebase/kioslave/media/mediamanager
-Date: Mon, 09 Oct 2006 09:32:17 +0000
-Message-Id: <1160386337.725673.25740.nullmailer@svn.kde.org>
-Cc: kde-packager@kde.org
-Content-Type: text/plain;
- charset="us-ascii"
-Content-Transfer-Encoding: 7bit
-X-Length: 6245
-
-SVN commit 593835 by coolo:
-
-devices that are in fstab should show up no matter what HAL thinks
-CCMAIL: kde-packager@kde.org
-
-
- M +16 -7 halbackend.cpp
-
-
---- branches/KDE/3.5/kdebase/kioslave/media/mediamanager/halbackend.cpp #593834:593835
-@@ -215,11 +215,6 @@
- !libhal_device_get_property_bool(m_halContext, udi, "volume.disc.is_blank", NULL) )
- return;
-
-- if ( ( libhal_device_get_property_QString(m_halContext, udi, "volume.fsusage") == "filesystem" &&
-- !libhal_device_get_property_bool(m_halContext, udi, "volume.is_mounted", NULL ) ) &&
-- ( libhal_device_get_property_bool(m_halContext, udi, "volume.ignore", NULL ) ) )
-- return;
--
- /* Query drive udi */
- QString driveUdi = libhal_device_get_property_QString(m_halContext, udi, "block.storage_device");
- /* We don't list floppy volumes because we list floppy drives */
-@@ -240,7 +235,19 @@
-
- /* Create medium */
- Medium* medium = new Medium(udi, "");
-+ setVolumeProperties(medium);
-
-+ if ( isInFstab( medium ).isNull() )
-+ {
-+ // if it's not mountable by user and not by HAL, don't show it at all
-+ if ( ( libhal_device_get_property_QString(m_halContext, udi, "volume.fsusage") == "filesystem" &&
-+ !libhal_device_get_property_bool(m_halContext, udi, "volume.is_mounted", NULL ) ) &&
-+ ( libhal_device_get_property_bool(m_halContext, udi, "volume.ignore", NULL ) ) )
-+ {
-+ delete medium;
-+ return;
-+ }
-+ }
- QMap<QString,QString> options = MediaManagerUtils::splitOptions(mountoptions(udi));
- kdDebug() << "automount " << options["automount"] << endl;
- if (options["automount"] == "true" && allowNotification ) {
-@@ -248,7 +255,6 @@
- if (!error.isEmpty())
- kdDebug() << "error " << error << endl;
- }
-- setVolumeProperties(medium);
- m_mediaList.addMedium(medium, allowNotification);
-
- return;
-@@ -992,7 +998,10 @@
-
- for (; it!=end; ++it)
- {
-- kdDebug() << "isInFstab -" << medium->deviceNode() << "- -" << (*it)->realDeviceName() << "- -" << (*it)->mountedFrom() << endl;
-+ QString reald = (*it)->realDeviceName();
-+ if ( reald.endsWith( "/" ) )
-+ reald = reald.left( reald.length() - 1 );
-+ kdDebug() << "isInFstab -" << medium->deviceNode() << "- -" << reald << "- -" << (*it)->mountedFrom() << "-" << endl;
- if ((*it)->mountedFrom() == medium->deviceNode() || ( !medium->deviceNode().isEmpty() && (*it)->realDeviceName() == medium->deviceNode() ) )
- {
- QStringList opts = (*it)->mountOptions();
diff --git a/kde-base/kdebase/files/kdebase-startkde-3.5.3-xinitrcd.patch b/kde-base/kdebase/files/kdebase-startkde-3.5.3-xinitrcd.patch
deleted file mode 100644
index 88a7e1baf467..000000000000
--- a/kde-base/kdebase/files/kdebase-startkde-3.5.3-xinitrcd.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Index: kdebase-startkde-3.5.3/startkde
-===================================================================
---- kdebase-startkde-3.5.3.orig/startkde
-+++ kdebase-startkde-3.5.3/startkde
-@@ -188,6 +188,13 @@ for prefix in `echo "$exepath" | sed -n
- done
- done
-
-+# Source scripts in /etc/X11/xinit/xinitrc.d/ for system-level defined stuff
-+if test -d "/etc/X11/xinit/xinitrc.d/"; then
-+ for file in "/etc/X11/xinit/xinitrc.d/"*; do
-+ test -x "$file" && . "$file"
-+ done
-+fi
-+
- # Activate the kde font directories.
- #
- # There are 4 directories that may be used for supplying fonts for KDE.
diff --git a/kde-base/kdebase/files/kdesktop-3.5.3-screensaver.patch b/kde-base/kdebase/files/kdesktop-3.5.3-screensaver.patch
deleted file mode 100644
index 8edf3a6b97c4..000000000000
--- a/kde-base/kdebase/files/kdesktop-3.5.3-screensaver.patch
+++ /dev/null
@@ -1,101 +0,0 @@
-Index: kdesktop/lockeng.cc
-===================================================================
---- kdesktop/lockeng.cc (revision 548007)
-+++ kdesktop/lockeng.cc (revision 548008)
-@@ -42,9 +42,6 @@
- XGetScreenSaver(qt_xdisplay(), &mXTimeout, &mXInterval,
- &mXBlanking, &mXExposures);
-
-- // We'll handle blanking
-- XSetScreenSaver(qt_xdisplay(), 0, mXInterval, mXBlanking, mXExposures);
--
- mState = Waiting;
- mXAutoLock = 0;
- mEnabled = false;
-@@ -158,6 +155,9 @@
- mXAutoLock->setDPMS(mDPMS);
- //mXAutoLock->changeCornerLockStatus( mLockCornerTopLeft, mLockCornerTopRight, mLockCornerBottomLeft, mLockCornerBottomRight);
-
-+ // We'll handle blanking
-+ XSetScreenSaver(qt_xdisplay(), mTimeout + 10, mXInterval, mXBlanking, mXExposures);
-+
- mXAutoLock->start();
-
- kdDebug(1204) << "Saver Engine started, timeout: " << mTimeout << endl;
-@@ -170,6 +170,7 @@
- mXAutoLock = 0;
- }
-
-+ XSetScreenSaver(qt_xdisplay(), 0, mXInterval, mXBlanking, mXExposures);
- kdDebug(1204) << "Saver Engine disabled" << endl;
- }
-
-@@ -291,7 +292,6 @@
- kdDebug(1204) << "SaverEngine: stopping lock" << endl;
- emitDCOPSignal("KDE_stop_screensaver()", QByteArray());
-
--
- mLockProcess.kill();
-
- if (mXAutoLock)
-@@ -300,6 +300,7 @@
- }
- processLockTransactions();
- mState = Waiting;
-+ XSetScreenSaver(qt_xdisplay(), mTimeout + 10, mXInterval, mXBlanking, mXExposures);
- }
-
- void SaverEngine::lockProcessExited()
-@@ -314,6 +315,7 @@
- }
- processLockTransactions();
- mState = Waiting;
-+ XSetScreenSaver(qt_xdisplay(), mTimeout + 10, mXInterval, mXBlanking, mXExposures);
- }
-
- //---------------------------------------------------------------------------
-@@ -322,6 +324,8 @@
- //
- void SaverEngine::idleTimeout()
- {
-+ // disable X screensaver
-+ XSetScreenSaver(qt_xdisplay(), 0, mXInterval, mXBlanking, mXExposures);
- startLockProcess( DefaultLock );
- }
-
-Index: kdesktop/xautolock.cc
-===================================================================
---- kdesktop/xautolock.cc (revision 548007)
-+++ kdesktop/xautolock.cc (revision 548008)
-@@ -192,6 +192,7 @@
-
- bool activate = false;
-
-+ kdDebug() << now << " " << mTrigger << endl;
- if (now >= mTrigger)
- {
- resetTrigger();
-@@ -202,6 +203,8 @@
- BOOL on;
- CARD16 state;
- DPMSInfo( qt_xdisplay(), &state, &on );
-+
-+ kdDebug() << "DPMSInfo " << state << " " << on << endl;
- // If DPMS is active, it makes XScreenSaverQueryInfo() report idle time
- // that is always smaller than DPMS timeout (X bug I guess). So if DPMS
- // saving is active, simply always activate our saving too, otherwise
-@@ -217,9 +220,11 @@
- #ifdef HAVE_XSCREENSAVER
- static XScreenSaverInfo* mitInfo = 0;
- if (!mitInfo) mitInfo = XScreenSaverAllocInfo ();
-- XScreenSaverQueryInfo (qt_xdisplay(), DefaultRootWindow (qt_xdisplay()), mitInfo);
-- if (mitInfo->state == ScreenSaverDisabled)
-- activate = false;
-+ if (XScreenSaverQueryInfo (qt_xdisplay(), DefaultRootWindow (qt_xdisplay()), mitInfo)) {
-+ kdDebug() << "XScreenSaverQueryInfo " << mitInfo->state << " " << ScreenSaverDisabled << endl;
-+ if (mitInfo->state == ScreenSaverDisabled)
-+ activate = false;
-+ }
- #endif
-
- if(mActive && activate)
diff --git a/kde-base/kdebase/files/kdm-3.5.7-login.diff b/kde-base/kdebase/files/kdm-3.5.7-login.diff
deleted file mode 100644
index 40b6abb8ec0e..000000000000
--- a/kde-base/kdebase/files/kdm-3.5.7-login.diff
+++ /dev/null
@@ -1,63 +0,0 @@
---- kdm/backend/session.c
-+++ kdm/bakcend/session.c
-@@ -121,8 +121,9 @@
- static void
- DoAutoLogon( void )
- {
-- StrDup( &curuser, td->autoUser );
-- StrDup( &curpass, td->autoPass );
-+ ReStr( &curuser, td->autoUser );
-+ ReStr( &curpass, td->autoPass );
-+ ReStr( &curtype, "classic" );
- cursource = PWSRC_AUTOLOGIN;
- }
-
-@@ -141,7 +142,9 @@
- td->hstent->npass = 0;
- newdmrc = td->hstent->nargs;
- td->hstent->nargs = 0;
-+ ReStr( &curtype, "classic" );
- cursource = (td->hstent->rLogin == 1) ? PWSRC_RELOGIN : PWSRC_MANUAL;
-+ return 1;
- } else if (*td->autoUser && !td->autoDelay && (tdiff > 0 || td->autoAgain))
- {
- unsigned int lmask;
-@@ -153,11 +156,9 @@
- if (lmask & ShiftMask)
- return 0;
- DoAutoLogon();
-- } else {
-- cursource = PWSRC_MANUAL;
-- return 0;
-+ return 1;
- }
-- return 1;
-+ return 0;
- }
-
-
-@@ -369,6 +370,7 @@
- if (curtype) free( curtype );
- curtype = GRecvStr();
- Debug( " type %\"s\n", curtype );
-+ cursource = PWSRC_MANUAL;
- if (Verify( conv_interact, rootok )) {
- Debug( " -> return success\n" );
- GSendInt( V_OK );
-@@ -378,7 +380,6 @@
- case G_AutoLogin:
- Debug( "G_AutoLogin\n" );
- DoAutoLogon();
-- StrDup( &curtype, "classic" );
- if (Verify( conv_auto, FALSE )) {
- Debug( " -> return success\n" );
- GSendInt( V_OK );
-@@ -565,7 +566,7 @@
- tdiff = td->autoAgain ?
- 1 : time( 0 ) - td->hstent->lastExit - td->openDelay;
- if (AutoLogon( tdiff )) {
-- if (!StrDup( &curtype, "classic" ) || !Verify( conv_auto, FALSE ))
-+ if (!Verify( conv_auto, FALSE ))
- goto gcont;
- if (greeter)
- GSendInt( V_OK );
diff --git a/kde-base/kdebase/files/konqueror-3.5.7-185603-spoofing.diff b/kde-base/kdebase/files/konqueror-3.5.7-185603-spoofing.diff
deleted file mode 100644
index 0d6e44ef4f82..000000000000
--- a/kde-base/kdebase/files/konqueror-3.5.7-185603-spoofing.diff
+++ /dev/null
@@ -1,49 +0,0 @@
---- konqueror/konq_combo.cc
-+++ konqueror/konq_combo.cc
-@@ -158,6 +158,9 @@ void KonqCombo::setURL( const QString& u
- kapp->dcopClient()->send( "konqueror*", "KonquerorIface",
- "addToCombo(QString,QCString)", data);
- }
-+ // important security consideration: always display the beginning
-+ // of the url rather than its end to prevent spoofing attempts.
-+ lineEdit()->setCursorPosition( 0 );
- }
-
- void KonqCombo::setTemporary( const QString& text )
---- konqueror/konq_mainwindow.cc
-+++ konqueror/konq_mainwindow.cc
-@@ -611,12 +611,11 @@ void KonqMainWindow::openURL( KonqView *
- }
- else // no known serviceType, use KonqRun
- {
-- if ( ( view && view == m_currentView ) ||
-- ( !view && !req.newTab ) ) // startup with argument
-+ if ( ( !view || view->url().isEmpty() ) && !req.newTab ) // startup with argument
- {
- // Show it for now in the location bar, but we'll need to store it in the view
- // later on (can't do it yet since either view == 0 or updateHistoryEntry will be called).
-- kdDebug(1202) << "setLocationBarURL : url = " << url << endl;
-+ kdDebug(1202) << "setLocationBarURL (startup) : url = " << url << endl;
- setLocationBarURL( url );
- }
-
-@@ -819,8 +818,6 @@ bool KonqMainWindow::openView( QString s
- if ( childView )
- {
- enableAllActions( true );
--
-- m_pViewManager->setActivePart( childView->part() );
- m_currentView = childView;
- }
- }
---- konqueror/konq_viewmgr.cc
-+++ konqueror/konq_viewmgr.cc
-@@ -1395,6 +1395,8 @@ void KonqViewManager::slotActivePartChan
-
- void KonqViewManager::emitActivePartChanged()
- {
-+ // prevent unnecessary multiple calls to slotPartActivated:
-+ m_activePartChangedTimer->stop();
- m_pMainWindow->slotPartActivated( activePart() );
- }
-
diff --git a/kde-base/kdebase/files/konqueror-3.5.7-location.patch b/kde-base/kdebase/files/konqueror-3.5.7-location.patch
deleted file mode 100644
index 7061e6a1b940..000000000000
--- a/kde-base/kdebase/files/konqueror-3.5.7-location.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Index: konqueror/konq_combo.cc
-===================================================================
---- konqueror/konq_combo.cc (revision 643782)
-+++ konqueror/konq_combo.cc (working copy)
-@@ -158,6 +158,7 @@
- kapp->dcopClient()->send( "konqueror*", "KonquerorIface",
- "addToCombo(QString,QCString)", data);
- }
-+ lineEdit()->setCursorPosition( 0 );
- }
-
- void KonqCombo::setTemporary( const QString& text )
diff --git a/kde-base/kdebase/files/kwin-3.5.5-input-shape.patch b/kde-base/kdebase/files/kwin-3.5.5-input-shape.patch
deleted file mode 100644
index 94cd32d24636..000000000000
--- a/kde-base/kdebase/files/kwin-3.5.5-input-shape.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From l.lunak@kde.org Tue Oct 10 12:25:53 2006
-To: kde-commits@kde.org
-Subject: branches/KDE/3.5/kdebase/kwin
-Message-Id: <1160475953.522428.2616.nullmailer@svn.kde.org>
-Cc: kde-packager@kde.org,
- 135250-done@bugs.kde.org
-Content-Type: text/plain;
- charset="us-ascii"
-Content-Transfer-Encoding: 7bit
-X-Length: 6070
-X-UID: 85
-
-SVN commit 594159 by lunakl:
-
-Build the input shape on a helper window instead of directly,
-this avoids having a hole in the shape temporarily. This seems
-to break non-click-to-focus mouse policies on some systems
-(works fine here though).
-BUG: 135250
-CCMAIL: kde-packager@kde.org
-
-
-
- M +19 -6 client.cpp
-
-
---- branches/KDE/3.5/kdebase/kwin/client.cpp #594158:594159
-@@ -477,16 +477,29 @@
- // calls it or when the decoration is created/destroyed
-
- if( Shape::version() >= 0x11 ) // 1.1, has input shape support
-- { // there appears to be no way to find out if a window has input
-- // shape set or not, so always set propagate the input shape
-- // (it's the same like the bounding shape by default)
-- XShapeCombineShape( qt_xdisplay(), frameId(), ShapeInput, 0, 0,
-+ { // There appears to be no way to find out if a window has input
-+ // shape set or not, so always propagate the input shape
-+ // (it's the same like the bounding shape by default).
-+ // Also, build the shape using a helper window, not directly
-+ // in the frame window, because the sequence set-shape-to-frame,
-+ // remove-shape-of-client, add-input-shape-of-client has the problem
-+ // that after the second step there's a hole in the input shape
-+ // until the real shape of the client is added and that can make
-+ // the window lose focus (which is a problem with mouse focus policies)
-+ static Window helper_window = None;
-+ if( helper_window == None )
-+ helper_window = XCreateSimpleWindow( qt_xdisplay(), qt_xrootwin(),
-+ 0, 0, 1, 1, 0, 0, 0 );
-+ XResizeWindow( qt_xdisplay(), helper_window, width(), height());
-+ XShapeCombineShape( qt_xdisplay(), helper_window, ShapeInput, 0, 0,
- frameId(), ShapeBounding, ShapeSet );
-- XShapeCombineShape( qt_xdisplay(), frameId(), ShapeInput,
-+ XShapeCombineShape( qt_xdisplay(), helper_window, ShapeInput,
- clientPos().x(), clientPos().y(),
- window(), ShapeBounding, ShapeSubtract );
-- XShapeCombineShape( qt_xdisplay(), frameId(), ShapeInput,
-+ XShapeCombineShape( qt_xdisplay(), helper_window, ShapeInput,
- clientPos().x(), clientPos().y(),
- window(), ShapeInput, ShapeUnion );
-+ XShapeCombineShape( qt_xdisplay(), frameId(), ShapeInput, 0, 0,
-+ helper_window, ShapeInput, ShapeSet );
- }
- }
diff --git a/kde-base/kdebase/files/nsplugins-3.5.5-npapi-64bit.patch b/kde-base/kdebase/files/nsplugins-3.5.5-npapi-64bit.patch
deleted file mode 100644
index 090219caa0b4..000000000000
--- a/kde-base/kdebase/files/nsplugins-3.5.5-npapi-64bit.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- kdebase-3.4.2/nsplugins/sdk/npapi.h.npapi-64bit-fixes 2005-05-23 14:14:25.000000000 +0200
-+++ kdebase-3.4.2/nsplugins/sdk/npapi.h 2006-11-13 10:49:45.000000000 +0100
-@@ -58,7 +58,7 @@
- typedef unsigned short uint16;
- #endif
- #ifndef _UINT32
--#if defined(__alpha)
-+#if defined(__alpha) || defined(_AIX) || defined(__x86_64__) || defined(__LP64__)
- typedef unsigned int uint32;
- #else /* __alpha */
- typedef unsigned long uint32;
-@@ -68,7 +68,7 @@ typedef unsigned long uint32;
- typedef short int16;
- #endif
- #ifndef _INT32
--#if defined(__alpha) || defined(_AIX)
-+#if defined(__alpha) || defined(_AIX) || defined(__x86_64__) || defined(__LP64__)
- typedef int int32;
- #else /* __alpha || _AIX */
- typedef long int32;
diff --git a/kde-base/kdebase/files/nsplugins-3.5.6-keyboard-handler.diff b/kde-base/kdebase/files/nsplugins-3.5.6-keyboard-handler.diff
deleted file mode 100644
index 8d301d6d4e69..000000000000
--- a/kde-base/kdebase/files/nsplugins-3.5.6-keyboard-handler.diff
+++ /dev/null
@@ -1,77 +0,0 @@
-------------------------------------------------------------------------
-r652585 | lunakl | 2007-04-11 16:26:32 +0200 (Wed, 11 Apr 2007) | 3 lines
-Changed paths:
- M /branches/KDE/3.5/kdebase/nsplugins/viewer/qxteventloop.cpp
-
-Fix keyboard events handling.
-
-
-------------------------------------------------------------------------
-Index: nsplugins/viewer/qxteventloop.cpp
-===================================================================
---- nsplugins/viewer/qxteventloop.cpp (revision 652584)
-+++ nsplugins/viewer/qxteventloop.cpp (revision 652585)
-@@ -32,12 +32,16 @@
- ** not clear to you.
- **
- **********************************************************************/
-+
-+#include <config.h>
-+
- #include "qxteventloop.h"
-
- #if QT_VERSION >= 0x030100
-
- #include <qapplication.h>
- #include <qwidgetintdict.h>
-+#include <kglobal.h>
-
- // resolve the conflict between X11's FocusIn and QEvent::FocusIn
- const int XFocusOut = FocusOut;
-@@ -52,6 +56,8 @@ const int XKeyRelease = KeyRelease;
-
- Boolean qmotif_event_dispatcher( XEvent *event );
-
-+static void handle_xquerykeymap( Display* dpy, XEvent* event );
-+
- class QXtEventLoopPrivate
- {
- public:
-@@ -147,6 +153,7 @@ void QXtEventLoopPrivate::unhook()
- extern bool qt_try_modal( QWidget *, XEvent * ); // defined in qapplication_x11.cpp
- Boolean qmotif_event_dispatcher( XEvent *event )
- {
-+ handle_xquerykeymap( qt_xdisplay(), event );
- QApplication::sendPostedEvents();
-
- QWidgetIntDict *mapper = &static_d->mapper;
-@@ -462,6 +469,29 @@ bool QXtEventLoop::processEvents( Proces
- return ( (flags & WaitForMore) || ( pendingmask != 0 ) || nevents > 0 );
- }
-
-+#include <dlfcn.h>
-+
-+static char xquerykeymap_data[ 32 ];
-+static int (*real_xquerykeymap)( Display*, char[32] ) = NULL;
-+
-+static void handle_xquerykeymap( Display* dpy, XEvent* event )
-+{
-+ if( real_xquerykeymap == NULL )
-+ real_xquerykeymap = (int (*)( Display*, char[32] )) dlsym( RTLD_NEXT, "XQueryKeymap" );
-+ if( event->type == XFocusIn || event->type == XKeyPress || event->type == XKeyRelease )
-+ real_xquerykeymap( dpy, xquerykeymap_data );
-+ if( event->type == XFocusOut )
-+ memset( xquerykeymap_data, 0, 32 );
-+}
-+
-+extern "C" KDE_EXPORT
-+int XQueryKeymap( Display* , char k[32] )
-+{
-+ memcpy( k, xquerykeymap_data, 32 );
-+ return 1;
-+}
-+
-+
- #include "qxteventloop.moc"
-
- #endif
diff --git a/kde-base/kdebase/kdebase-3.5.9-r2.ebuild b/kde-base/kdebase/kdebase-3.5.9-r2.ebuild
new file mode 100644
index 000000000000..86eddbcb17eb
--- /dev/null
+++ b/kde-base/kdebase/kdebase-3.5.9-r2.ebuild
@@ -0,0 +1,258 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/kdebase-3.5.9-r2.ebuild,v 1.1 2008/04/15 10:05:10 philantrop Exp $
+
+EAPI="1"
+inherit multilib kde-dist eutils flag-o-matic
+
+SRC_URI="${SRC_URI}
+ mirror://gentoo/kdebase-3.5-patchset-11.tar.bz2
+ mirror://gentoo/kde-3.5.9-seli-xinerama.tar.bz2"
+
+DESCRIPTION="KDE base packages: the desktop, panel, window manager, konqueror..."
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="branding cups java ldap ieee1394 hal joystick lm_sensors logitech-mouse openexr opengl
+pam samba xcomposite xscreensaver xinerama kdehiddenvisibility"
+
+# hal: enables hal backend for 'media:' ioslave
+
+DEPEND=">=media-libs/freetype-2.3
+ media-libs/fontconfig
+ dev-libs/openssl
+ pam? ( kde-base/kdebase-pam )
+ >=dev-libs/cyrus-sasl-2
+ ldap? ( >=net-nds/openldap-2 )
+ cups? ( net-print/cups )
+ opengl? ( virtual/opengl )
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ samba? ( >=net-fs/samba-3.0.4 )
+ lm_sensors? ( sys-apps/lm_sensors )
+ logitech-mouse? ( >=dev-libs/libusb-0.1.10a )
+ ieee1394? ( sys-libs/libraw1394 )
+ hal? ( dev-libs/dbus-qt3-old =sys-apps/hal-0.5* )
+ xcomposite? ( x11-libs/libXcomposite x11-libs/libXdamage )
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXfixes
+ x11-libs/libXrender
+ x11-libs/libXtst
+ x11-libs/libXext
+ xscreensaver? ( x11-libs/libXScrnSaver )
+ xinerama? ( x11-libs/libXinerama )"
+
+RDEPEND="${DEPEND}
+ sys-apps/usbutils
+ sys-devel/gdb
+ java? ( >=virtual/jre-1.4 )
+ kernel_linux? ( || ( >=sys-apps/eject-2.1.5 sys-block/unieject ) )
+ virtual/ssh
+ www-misc/htdig
+ x11-apps/mkfontdir
+ x11-apps/setxkbmap
+ x11-apps/xinit
+ || ( x11-misc/xkeyboard-config x11-misc/xkbdata )
+ x11-apps/xmessage
+ x11-apps/xprop
+ x11-apps/xrandr
+ x11-apps/xsetroot
+ x11-apps/xset"
+
+DEPEND="${DEPEND}
+ xcomposite? ( x11-proto/compositeproto x11-proto/damageproto )
+ xscreensaver? ( x11-proto/scrnsaverproto )
+ xinerama? ( x11-proto/xineramaproto )
+ x11-apps/bdftopcf
+ x11-apps/xhost"
+
+need-kde 3.5.9
+
+EPATCH_EXCLUDE="ksmserver-3.5.8-ksmserver_suspend.diff
+ ksmserver-3.5.8-suspend_configure.diff"
+
+PATCHES=( "${FILESDIR}/kdm-${PV}-respect-cflags.patch"
+ "${WORKDIR}/${PN}-seli-xinerama.patch" )
+
+pkg_setup() {
+ kde_pkg_setup
+ if use hal && has_version '<sys-apps/dbus-0.90' && ! built_with_use sys-apps/dbus qt3; then
+ eerror "To enable HAL support in this package is required to have"
+ eerror "sys-apps/dbus compiled with Qt 3 support."
+ eerror "Please reemerge sys-apps/dbus with USE=\"qt3\"."
+ die "Please reemerge sys-apps/dbus with USE=\"qt3\"."
+ fi
+}
+
+src_unpack() {
+ kde_src_unpack
+
+ # Avoid using imake (kde bug 114466).
+ #epatch "${WORKDIR}/patches/kdebase-3.5.0_beta2-noimake.patch"
+ # ...included in patch set
+ rm -f "${S}/configure"
+
+ # FIXME - disable broken tests
+ sed -i -e "s:TESTS =.*:TESTS =:" "${S}/kioslave/smtp/Makefile.am" || die "sed failed"
+ sed -i -e "s:TESTS =.*:TESTS =:" "${S}/kioslave/trash/Makefile.am" || die "sed failed"
+ sed -i -e "s:SUBDIRS = viewer test:SUBDIRS = viewer:" "${S}/nsplugins/Makefile.am" || die "sed failed"
+
+ if ! use joystick ; then
+ sed -e 's:$(JOYSTICK_SUBDIR)::' \
+ -e 's:kthememanager \\:kthememanager:' \
+ -i "${S}/kcontrol/Makefile.am" \
+ || die "sed failed"
+ fi
+ if ! use arts ; then
+ sed -e 's:arts::' \
+ -i "${S}/kcontrol/Makefile.am" \
+ || die "sed failed"
+ fi
+
+ if ! [[ $(xhost >> /dev/null 2>/dev/null) ]] ; then
+ einfo "User ${USER} has no X access, disabling some tests."
+ for ioslave in media remote home system ; do
+ sed -e "s:check\: test${ioslave}::" -e "s:./test${ioslave}::" \
+ -i kioslave/${ioslave}/Makefile.am || die "sed failed"
+ done
+ fi
+}
+
+src_compile() {
+ # Patch the startkde script to setup the environment for KDE 4.0
+ # Add our KDEDIR
+ sed -i -e "s#@REPLACE_PREFIX@#${PREFIX}#" \
+ "${S}/startkde" || die "Sed for PREFIX failed."
+
+ # List all the multilib libdirs
+ local _libdir _libdirs
+ for _libdir in $(get_all_libdirs); do
+ _libdirs="${_libdirs}:${PREFIX}/${_libdir}"
+ done
+ _libdirs=${_libdirs#:}
+
+ # Complete LDPATH
+ sed -i -e "s#@REPLACE_LIBS@#${_libdirs}#" \
+ "${S}/startkde" || die "Sed for LDPATH failed."
+
+ local myconf="--with-dpms --enable-dnssd --with-sssl
+ --with-usbids=/usr/share/misc/usb.ids
+ $(use_with ieee1394 libraw1394)
+ $(use_with hal)
+ $(use_with ldap)
+ $(use_with lm_sensors sensors)
+ $(use_with logitech-mouse libusb)
+ $(use_with openexr)
+ $(use_with opengl gl)
+ $(use_with pam)
+ $(use_with samba)
+ $(use_with xcomposite composite)
+ $(use_with xinerama)
+ $(use_with xscreensaver)"
+
+ if ! use pam && use elibc_glibc; then
+ myconf="${myconf} --with-shadow"
+ fi
+
+ # the java test is problematic (see kde bug 100729) and
+ # useless. All that's needed for java applets to work is
+ # to have the 'java' executable in PATH.
+ myconf="${myconf} --without-java"
+
+ kde_src_compile
+}
+
+src_install() {
+ kde_src_install
+ cd "${S}/kdm" && make DESTDIR="${D}" GENKDMCONF_FLAGS="--no-old --no-backup --no-in-notice" install
+
+ # Fix an obscure desktop file that only gets generated during the install phase.
+ sed -i -e '$d' "${D}/usr/kde/3.5/share/applications/kde/panel_appearance.desktop"
+ sed -i -e 's:Name=panel_appearance::' "${D}/usr/kde/3.5/share/applications/kde/panel_appearance.desktop"
+
+ # startup and shutdown scripts
+ insinto "${KDEDIR}/env"
+ doins "${WORKDIR}/patches/agent-startup.sh"
+
+ exeinto ${KDEDIR}/shutdown
+ doexe "${WORKDIR}/patches/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"
+
+ # Customize the kdmrc configuration
+ sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
+ "${D}/${KDEDIR}/share/config/kdm/kdmrc" || die
+
+ rmdir "${D}/${KDEDIR}/share/templates/.source/emptydir"
+
+ if use branding ; then
+ dodir "${PREFIX}"/share/services/searchproviders
+ insinto "${PREFIX}"/share/services/searchproviders
+ doins "${WORKDIR}"/patches/Gentoo_{Bugzilla,Forums}.desktop
+ fi
+}
+
+pkg_preinst() {
+ kde_pkg_preinst
+
+ # We need to symlink here, as kfmclient freaks out completely,
+ # if it does not find konqueror.desktop in the legacy path.
+ dodir "${PREFIX}/share/applications/kde"
+ dosym ../../applnk/konqueror.desktop "${PREFIX}/share/applications/kde/konqueror.desktop"
+}
+
+pkg_postinst() {
+ kde_pkg_postinst
+
+ # set the default kdm face icon if it's not already set by the system admin
+ if [[ ! -e "${ROOT}${KDEDIR}/share/apps/kdm/faces/.default.face.icon" ]]; then
+ mkdir -p "${ROOT}${KDEDIR}/share/apps/kdm/faces"
+ cp "${ROOT}${KDEDIR}/share/apps/kdm/pics/users/default1.png" \
+ "${ROOT}${KDEDIR}/share/apps/kdm/faces/.default.face.icon"
+ fi
+ if [[ ! -e "${ROOT}${KDEDIR}/share/apps/kdm/faces/root.face.icon" ]]; then
+ mkdir -p "${ROOT}${KDEDIR}/share/apps/kdm/faces"
+ cp "${ROOT}${KDEDIR}/share/apps/kdm/pics/users/root1.png" \
+ "${ROOT}${KDEDIR}/share/apps/kdm/faces/root.face.icon"
+ fi
+
+ mkdir -p "${ROOT}${KDEDIR}/share/templates/.source/emptydir"
+
+ 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
+ if use branding ; then
+ elog "We've added Gentoo-related web shortcuts to Konqueror:"
+ elog "- gb Gentoo Bugzilla searching"
+ elog "- gf Gentoo Forums searching"
+# elog "- gp Gentoo Package searching"
+ echo
+ elog "You'll have to activate them in 'Configure Konqueror...'."
+ echo
+ elog "If you can't open new konqueror windows and get something like"
+ elog "'WARNING: Outdated database found' when starting konqueror in a console, run"
+ elog "kbuildsycoca as the user you're running KDE under."
+ elog "This is NOT a bug."
+ echo
+ fi
+}