aboutsummaryrefslogtreecommitdiff
path: root/x11/kdebase4
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2005-07-12 13:53:12 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2005-07-12 13:53:12 +0000
commit4bdac311d959bc7495a077fc3a896f00b54ac78d (patch)
treea4c9207fe6b6aa633530a921b8925b99a956a468 /x11/kdebase4
parent934e321c28e5ca3a3de41cf8260b81c333a98b73 (diff)
downloadports-4bdac311d959bc7495a077fc3a896f00b54ac78d.tar.gz
ports-4bdac311d959bc7495a077fc3a896f00b54ac78d.zip
Notes
Diffstat (limited to 'x11/kdebase4')
-rw-r--r--x11/kdebase4/Makefile2
-rw-r--r--x11/kdebase4/files/patch-kioslave_media_kdedmodule_fstabbackend.cpp63
-rw-r--r--x11/kdebase4/files/patch-kioslave_media_kdedmodule_fstabbackend.h37
3 files changed, 101 insertions, 1 deletions
diff --git a/x11/kdebase4/Makefile b/x11/kdebase4/Makefile
index 9a9acf96aa95..b37100b46249 100644
--- a/x11/kdebase4/Makefile
+++ b/x11/kdebase4/Makefile
@@ -8,7 +8,7 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src
diff --git a/x11/kdebase4/files/patch-kioslave_media_kdedmodule_fstabbackend.cpp b/x11/kdebase4/files/patch-kioslave_media_kdedmodule_fstabbackend.cpp
new file mode 100644
index 000000000000..4fe077c27135
--- /dev/null
+++ b/x11/kdebase4/files/patch-kioslave_media_kdedmodule_fstabbackend.cpp
@@ -0,0 +1,63 @@
+--- kioslave/media/kdedmodule/fstabbackend.cpp
++++ kioslave/media/kdedmodule/fstabbackend.cpp
+@@ -47,6 +47,12 @@
+ handleMtabChange();
+
+ KDirWatch::self()->startScan();
++
++#ifdef Q_OS_FREEBSD
++ connect( &m_mtabTimer, SIGNAL( timeout() ),
++ this, SLOT( handleMtabChange() ) );
++ m_mtabTimer.start(250);
++#endif
+ }
+
+ FstabBackend::~FstabBackend()
+@@ -86,7 +92,7 @@
+ || mount->mountType() == "tmpfs"
+ || mount->mountType() == "sysfs"
+ || mount->mountType() == "usbfs"
+- || mount->mountType() == "proc"
++ || mount->mountType().contains( "proc" )
+ || mount->mountType() == "unknown"
+ || mount->mountType() == "none"
+ || mount->mountedFrom() == "none"
+@@ -136,7 +142,7 @@
+ #if 0
+ else if ( !m_mtabIds.contains(id) )
+ {
+- QString name = generateName(dev);
++ QString name = generateName(dev, fs);
+
+ Medium *m = new Medium(id, name);
+
+@@ -205,7 +211,7 @@
+
+ if ( !m_fstabIds.contains(id) )
+ {
+- QString name = generateName(dev);
++ QString name = generateName(dev, fs);
+
+ Medium *m = new Medium(id, name);
+
+@@ -247,9 +253,18 @@
+ +m.replace("/", "");
+ }
+
+-QString FstabBackend::generateName(const QString &devNode)
++QString FstabBackend::generateName(const QString &devNode, const QString &fsType)
+ {
+- return KURL(devNode).fileName();
++ KURL url( devNode );
++
++ if ( url.isValid() )
++ {
++ return url.fileName();
++ }
++ else // surely something nfs or samba based
++ {
++ return fsType;
++ }
+ }
+
+ void FstabBackend::guess(const QString &devNode, const QString &mountPoint,
diff --git a/x11/kdebase4/files/patch-kioslave_media_kdedmodule_fstabbackend.h b/x11/kdebase4/files/patch-kioslave_media_kdedmodule_fstabbackend.h
new file mode 100644
index 000000000000..e9ceadf8e9b7
--- /dev/null
+++ b/x11/kdebase4/files/patch-kioslave_media_kdedmodule_fstabbackend.h
@@ -0,0 +1,37 @@
+--- kioslave/media/kdedmodule/fstabbackend.h
++++ kioslave/media/kdedmodule/fstabbackend.h
+@@ -24,6 +24,10 @@
+ #include <qobject.h>
+ #include <qstringlist.h>
+
++#ifdef Q_OS_FREEBSD
++#include <qtimer.h>
++#endif
++
+ class FstabBackend : public QObject, public BackendBase
+ {
+ Q_OBJECT
+@@ -38,17 +42,20 @@
+ QString &label);
+ private slots:
+ void slotDirty(const QString &path);
+-
+-private:
+ void handleFstabChange();
+ void handleMtabChange();
+
++private:
+ static QString generateId(const QString &devNode,
+ const QString &mountPoint);
+- static QString generateName(const QString &devNode);
++ static QString generateName(const QString &devNode,
++ const QString &fsType);
+
+ QStringList m_mtabIds;
+ QStringList m_fstabIds;
++#ifdef Q_OS_FREEBSD
++ QTimer m_mtabTimer;
++#endif
+ };
+
+ #endif