From 66fee909266a1dedf3dfc1f03bb0841380d78805 Mon Sep 17 00:00:00 2001 From: Rene Ladan Date: Fri, 26 Jul 2013 19:19:20 +0000 Subject: KDE3 and QT3 expired on 2013-07-01, remove these ports. Unfortunately, this also affects some ports using QT3 as a GUI toolkit. Changes to infrastructure files: - bsd.kde.mk : obsolete, remove - bsd.qt.mk : note that a CONFLICTS_BUILD line can probably go after a while - CHANGES : document the removals from bsd.port.mk - KNOBS : remove KDE and QT (KDE4 and QT4 should be used instead) - MOVED : add the removed ports PR: ports/180745 Submitted by: rene Approved by: portmgr (bapt) Exp-run by: bapt --- net/knemo/files/patch-kcm-configdialog.cpp | 78 ------------------------------ 1 file changed, 78 deletions(-) delete mode 100644 net/knemo/files/patch-kcm-configdialog.cpp (limited to 'net/knemo/files/patch-kcm-configdialog.cpp') diff --git a/net/knemo/files/patch-kcm-configdialog.cpp b/net/knemo/files/patch-kcm-configdialog.cpp deleted file mode 100644 index 32a00999bf67..000000000000 --- a/net/knemo/files/patch-kcm-configdialog.cpp +++ /dev/null @@ -1,78 +0,0 @@ ---- src/kcm/configdialog.cpp.orig Sat Apr 1 21:44:21 2006 -+++ src/kcm/configdialog.cpp Sun Apr 2 19:14:11 2006 -@@ -17,6 +17,16 @@ - Boston, MA 02110-1301, USA. - */ - -+#ifdef __FreeBSD__ -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#endif -+ - #include - #include - #include -@@ -363,6 +373,39 @@ - void ConfigDialog::defaults() - { - // Default interfaces -+#ifdef Q_OS_FREEBSD -+ /* Determine number of interfaces */ -+ u_int n = 0; -+ size_t nlen = 0; -+ nlen = sizeof(n); -+ -+ if ( sysctlbyname("net.link.generic.system.ifcount", &n, &nlen, NULL, 0) != -1 ) -+ { -+ mSettingsDict.clear(); -+ mDlg->listBoxInterfaces->clear(); -+ -+ ifmibdata ifmd; -+ size_t len = 0; -+ len = sizeof(ifmd); -+ static int name[] = { CTL_NET, -+ PF_LINK, -+ NETLINK_GENERIC, -+ IFMIB_IFDATA, -+ 0, -+ IFDATA_GENERAL }; -+ -+ for (int i = 1; i <= n; ++i) -+ { -+ name[4] = i; -+ /* Get data for iface-number i */ -+ if ( sysctl(name, 6, (void*)&ifmd, (size_t*)&len, (void*)NULL, (size_t)0) == -1 ) -+ continue; -+ -+ QString interface = QString::fromLatin1(ifmd.ifmd_name); -+ -+ if ( ifmd.ifmd_flags & IFF_LOOPBACK) -+ continue; -+#else - QFile proc( "/proc/net/dev" ); - if ( proc.open( IO_ReadOnly ) ) - { -@@ -380,6 +423,7 @@ - if ( interface == "lo" ) - continue; - -+#endif - InterfaceSettings* settings = new InterfaceSettings(); - settings->customCommands = false; - settings->hideWhenNotAvailable = false; -@@ -401,8 +445,10 @@ - mDlg->checkBoxStatistics->setChecked( false ); - mDlg->checkBoxCustom->setChecked( false ); - } -+#ifndef __FreeBSD__ - } - proc.close(); -+#endif - } - - // Default tool tips -- cgit v1.2.3