1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Prevent kopete's connection status plugin to cause connection flip-flopping

on IPv6-enabled machines.

Reminded by: lioux
This commit is contained in:
Michael Nottebrock 2006-03-31 20:24:49 +00:00
parent 9b125e1421
commit bb6f122a19
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=158490
4 changed files with 24 additions and 0 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= kdenetwork
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES?= net kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src

View File

@ -0,0 +1,11 @@
--- kopete/plugins/connectionstatus/connectionstatusplugin.cpp.orig Fri Mar 31 22:12:59 2006
+++ kopete/plugins/connectionstatus/connectionstatusplugin.cpp Fri Mar 31 22:14:53 2006
@@ -65,7 +65,7 @@
// netstat -rn in slotProcessStdout() to see if it mentions the
// default gateway. If so, we're connected, if not, we're offline
m_process = new KProcess;
- *m_process << "netstat" << "-r";
+ *m_process << "netstat" << "-rfinet";
connect( m_process, SIGNAL( receivedStdout( KProcess *, char *, int ) ), this, SLOT( slotProcessStdout( KProcess *, char *, int ) ) );
connect( m_process, SIGNAL( processExited( KProcess * ) ), this, SLOT( slotProcessExited( KProcess * ) ) );

View File

@ -8,6 +8,7 @@
PORTNAME= kdenetwork
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES?= net kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION:S/.0//}/src

View File

@ -0,0 +1,11 @@
--- kopete/plugins/connectionstatus/connectionstatusplugin.cpp.orig Fri Mar 31 22:12:59 2006
+++ kopete/plugins/connectionstatus/connectionstatusplugin.cpp Fri Mar 31 22:14:53 2006
@@ -65,7 +65,7 @@
// netstat -rn in slotProcessStdout() to see if it mentions the
// default gateway. If so, we're connected, if not, we're offline
m_process = new KProcess;
- *m_process << "netstat" << "-r";
+ *m_process << "netstat" << "-rfinet";
connect( m_process, SIGNAL( receivedStdout( KProcess *, char *, int ) ), this, SLOT( slotProcessStdout( KProcess *, char *, int ) ) );
connect( m_process, SIGNAL( processExited( KProcess * ) ), this, SLOT( slotProcessExited( KProcess * ) ) );