summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authormarkd <markd>2010-06-02 10:14:14 +0000
committermarkd <markd>2010-06-02 10:14:14 +0000
commit96a4b0b7d42050bd5f72b1376887523f24fc4b74 (patch)
treebd0a7fc64dc6c818a3de88dc0124ac120911df7d /net
parent52b1441c403fcc645dda29a57e5d03d81332d819 (diff)
downloadpkgsrc-96a4b0b7d42050bd5f72b1376887523f24fc4b74.tar.gz
Update to KDE SC 4.4.4
* Several bugs in filename sorting in the Dolphin file manager have been fixed * Issues with encoded filenames in ZIP archives have been fixed * A number of bugs in games, such as KMines, KNetwalk and LSkat and KSpaceDuel have been fixed The changelog lists more
Diffstat (limited to 'net')
-rw-r--r--net/kdenetwork4/Makefile3
-rw-r--r--net/kdenetwork4/distinfo12
-rw-r--r--net/kdenetwork4/patches/patch-ba93
-rw-r--r--net/kdenetwork4/patches/patch-bb13
-rw-r--r--net/kdenetwork4/patches/patch-bc19
-rw-r--r--net/kdenetwork4/patches/patch-bd87
6 files changed, 5 insertions, 222 deletions
diff --git a/net/kdenetwork4/Makefile b/net/kdenetwork4/Makefile
index 495b666e749..fcde9c979b3 100644
--- a/net/kdenetwork4/Makefile
+++ b/net/kdenetwork4/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2010/05/16 21:21:39 markd Exp $
+# $NetBSD: Makefile,v 1.11 2010/06/02 10:14:15 markd Exp $
DISTNAME= kdenetwork-${_KDE_VERSION}
-PKGREVISION= 1
CATEGORIES= net
COMMENT= Network modules for the KDE integrated X11 desktop
diff --git a/net/kdenetwork4/distinfo b/net/kdenetwork4/distinfo
index d21245c3dfb..a64649d4aec 100644
--- a/net/kdenetwork4/distinfo
+++ b/net/kdenetwork4/distinfo
@@ -1,13 +1,9 @@
-$NetBSD: distinfo,v 1.9 2010/05/16 21:21:39 markd Exp $
+$NetBSD: distinfo,v 1.10 2010/06/02 10:14:15 markd Exp $
-SHA1 (kdenetwork-4.4.3.tar.bz2) = 67237e0142f5d4edc893a7dcafffa79f998c534e
-RMD160 (kdenetwork-4.4.3.tar.bz2) = 90814afa79a259ee36b82ae160b64fe79c90a837
-Size (kdenetwork-4.4.3.tar.bz2) = 8319875 bytes
+SHA1 (kdenetwork-4.4.4.tar.bz2) = 1706b009d723897cbc9ad9b0c1743873e8e79362
+RMD160 (kdenetwork-4.4.4.tar.bz2) = ad4a8ef9ba6baf1e3c161f3df9cae314e3381f00
+Size (kdenetwork-4.4.4.tar.bz2) = 8321292 bytes
SHA1 (patch-aa) = 0359cd86501c57197242c398d63c1fc77c60a4d0
SHA1 (patch-ab) = 0743b3b6c994623c507b8bcd52ee01dad31cf56f
SHA1 (patch-ae) = 765d48550d2d8b7a59a1593a669b0909fef3bd96
SHA1 (patch-af) = fd916bd4d102ef44222842f4327061753d568906
-SHA1 (patch-ba) = d8991e4e80074b558614d353e5d35735124c19a5
-SHA1 (patch-bb) = d6fcd1b54d7bf7fd090184a8602689d25bf167ba
-SHA1 (patch-bc) = 2002a32d5076b566f4f0194b24403ad073251669
-SHA1 (patch-bd) = 7d1d880b7c54bd8c5af6bb5c9cd289a3348b7a92
diff --git a/net/kdenetwork4/patches/patch-ba b/net/kdenetwork4/patches/patch-ba
deleted file mode 100644
index 4df3754af8f..00000000000
--- a/net/kdenetwork4/patches/patch-ba
+++ /dev/null
@@ -1,93 +0,0 @@
-$NetBSD: patch-ba,v 1.1 2010/05/16 21:21:39 markd Exp $
-
---- kget/transfer-plugins/metalink/metalink.cpp.orig 2010-04-29 19:58:02.000000000 +0000
-+++ kget/transfer-plugins/metalink/metalink.cpp
-@@ -99,6 +99,7 @@ void Metalink::start()
- void Metalink::metalinkInit(const KUrl &src, const QByteArray &data)
- {
- kDebug(5001);
-+
- bool justDownloaded = !m_localMetalinkLocation.isValid();
- if (!src.isEmpty())
- {
-@@ -121,7 +122,9 @@ void Metalink::metalinkInit(const KUrl &
- //error
- if (!m_metalink.isValid())
- {
-- kDebug(5001) << "Unknown error when trying to load the .metalink-file";
-+ kError(5001) << "Unknown error when trying to load the .metalink-file. Metalink is not valid.";
-+ setStatus(Job::Aborted);
-+ setTransferChange(Tc_Status, true);
- return;
- }
-
-@@ -202,7 +205,7 @@ void Metalink::metalinkInit(const KUrl &
- if (!m_dataSourceFactory.size())
- {
- KMessageBox::error(0, i18n("Download failed, no working URLs were found."), i18n("Error"));
-- setStatus(Job::Aborted, i18n("An error occurred...."), SmallIcon("document-preview"));
-+ setStatus(Job::Aborted);
- setTransferChange(Tc_Status, true);
- return;
- }
-@@ -227,16 +230,29 @@ void Metalink::metalinkInit(const KUrl &
- ui.treeView->hideColumn(FileItem::SignatureVerified);
- dialog->setMainWidget(widget);
- dialog->setCaption(i18n("File Selection"));
-- dialog->setButtons(KDialog::Ok);
-- connect(dialog, SIGNAL(finished()), this, SLOT(filesSelected()));
-+ dialog->setButtons(KDialog::Ok | KDialog::Cancel);
-+ connect(dialog, SIGNAL(finished(int)), this, SLOT(fileDlgFinished(int)));
-
- dialog->show();
- }
- }
-
--void Metalink::filesSelected()
-+void Metalink::fileDlgFinished(int result)
- {
-+ //BEGIN HACK if the dialog was not accepted untick every file, so that the download does not start
-+ //generally setStatus should do the job as well, but does not as it appears
-+ if (result != QDialog::Accepted) {
-+ for (int row = 0; row < fileModel()->rowCount(); ++row) {
-+ QModelIndex index = fileModel()->index(row, FileItem::File);
-+ if (index.isValid()) {
-+ fileModel()->setData(index, Qt::Unchecked, Qt::CheckStateRole);
-+ }
-+ }
-+ }
-+ //END
-+
- QModelIndexList files = fileModel()->fileIndexes(FileItem::File);
-+ int numFilesSelected = 0;
- foreach (const QModelIndex &index, files)
- {
- const KUrl dest = fileModel()->getUrl(index);
-@@ -244,6 +260,9 @@ void Metalink::filesSelected()
- if (m_dataSourceFactory.contains(dest))
- {
- m_dataSourceFactory[dest]->setDoDownload(doDownload);
-+ if (doDownload) {
-+ ++numFilesSelected;
-+ }
- }
- }
-
-@@ -252,9 +271,15 @@ void Metalink::filesSelected()
- processedSizeChanged();
- speedChanged();
-
-+ //no files selected to download or dialog rejected, stop the download
-+ if (!numFilesSelected || (result != QDialog::Accepted)) {
-+ setStatus(Job::Stopped);//FIXME
-+ setTransferChange(Tc_Status, true);
-+ return;
-+ }
-+
- //some files may be set to download, so start them as long as the transfer is not stopped
-- if (status() != Job::Stopped)
-- {
-+ if (status() != Job::Stopped) {
- startMetalink();
- }
- }
diff --git a/net/kdenetwork4/patches/patch-bb b/net/kdenetwork4/patches/patch-bb
deleted file mode 100644
index f43662d0beb..00000000000
--- a/net/kdenetwork4/patches/patch-bb
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-bb,v 1.1 2010/05/16 21:21:39 markd Exp $
-
---- kget/transfer-plugins/metalink/metalink.h.orig 2009-11-13 10:58:48.000000000 +0000
-+++ kget/transfer-plugins/metalink/metalink.h
-@@ -81,7 +81,7 @@ class Metalink : public Transfer
-
- private Q_SLOTS:
- void metalinkInit(const KUrl &url = KUrl(), const QByteArray &data = QByteArray());
-- void filesSelected();
-+ void fileDlgFinished(int result);
- void totalSizeChanged(KIO::filesize_t size);
- void processedSizeChanged();
- void speedChanged();
diff --git a/net/kdenetwork4/patches/patch-bc b/net/kdenetwork4/patches/patch-bc
deleted file mode 100644
index b74f15a4d3a..00000000000
--- a/net/kdenetwork4/patches/patch-bc
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-bc,v 1.1 2010/05/16 21:21:39 markd Exp $
-
---- kget/ui/metalinkcreator/metalinker.h.orig 2010-01-31 19:33:11.000000000 +0000
-+++ kget/ui/metalinkcreator/metalinker.h
-@@ -259,6 +259,14 @@ class File
- KIO::filesize_t size;
- CommonData data;
- Resources resources;
-+
-+ private:
-+ /**
-+ * Controlls if the name attribute is valid, i.e. it is not empty and
-+ * does not contain any directory traversal directives or information,
-+ * as described in the Metalink 4.0 specification 4.1.2.1.
-+ */
-+ bool isValidNameAttribute() const;
- };
-
- class Files
diff --git a/net/kdenetwork4/patches/patch-bd b/net/kdenetwork4/patches/patch-bd
deleted file mode 100644
index 2ab39a58b21..00000000000
--- a/net/kdenetwork4/patches/patch-bd
+++ /dev/null
@@ -1,87 +0,0 @@
-$NetBSD: patch-bd,v 1.1 2010/05/16 21:21:39 markd Exp $
-
---- kget/ui/metalinkcreator/metalinker.cpp.orig 2010-01-31 19:33:11.000000000 +0000
-+++ kget/ui/metalinkcreator/metalinker.cpp
-@@ -528,14 +528,14 @@ void KGetMetalink::Verification::clear()
-
- bool KGetMetalink::File::isValid() const
- {
-- return !name.isEmpty() && resources.isValid();
-+ return isValidNameAttribute() && resources.isValid();
- }
-
- void KGetMetalink::File::load(const QDomElement &e)
- {
- data.load(e);
-
-- name = e.attribute("name");
-+ name = QUrl::fromPercentEncoding(e.attribute("name").toAscii());
- size = e.firstChildElement("size").text().toULongLong();
-
- verification.load(e);
-@@ -575,6 +575,22 @@ void KGetMetalink::File::clear()
- resources.clear();
- }
-
-+
-+bool KGetMetalink::File::isValidNameAttribute() const
-+{
-+ if (name.isEmpty()) {
-+ kError(5001) << "Name attribute of Metalink::File is empty.";
-+ return false;
-+ }
-+
-+ if (name.contains(QRegExp("$(\\.\\.?)?/")) || name.contains("/../") || name.endsWith("/..")) {
-+ kError(5001) << "Name attribute of Metalink::File contains directory traversal directives:" << name;
-+ return false;
-+ }
-+
-+ return true;
-+}
-+
- #ifdef HAVE_NEPOMUK
- QHash<QUrl, Nepomuk::Variant> KGetMetalink::File::properties() const
- {
-@@ -584,13 +600,28 @@ QHash<QUrl, Nepomuk::Variant> KGetMetali
-
- bool KGetMetalink::Files::isValid() const
- {
-- bool isValid = !files.empty();
-- foreach (const File &file, files)
-- {
-- isValid &= file.isValid();
-+ if (files.isEmpty()) {
-+ return false;
-+ }
-+
-+ QStringList fileNames;
-+ foreach (const File &file, files) {
-+ fileNames << file.name;
-+ if (!file.isValid()) {
-+ return false;
-+ }
- }
-
-- return isValid;
-+ //The value of name must be unique for each file
-+ while (!fileNames.isEmpty()) {
-+ const QString fileName = fileNames.takeFirst();
-+ if (fileNames.contains(fileName)) {
-+ kError(5001) << "Metalink::File name" << fileName << "exists multiple times.";
-+ return false;
-+ }
-+ }
-+
-+ return true;
- }
-
- void KGetMetalink::Files::load(const QDomElement &e)
-@@ -751,7 +782,7 @@ void KGetMetalink::Metalink_v3::parseFil
-
- for (QDomElement elem = filesElem.firstChildElement("file"); !elem.isNull(); elem = elem.nextSiblingElement("file")) {
- File file;
-- file.name = elem.attribute("name");
-+ file.name = QUrl::fromPercentEncoding(elem.attribute("name").toAscii());
- file.size = elem.firstChildElement("size").text().toULongLong();
-
- file.data = parseCommonData(elem);