From d1c2f0dddd4a74a79847b017915f3482671e055c Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Sun, 21 Apr 2002 23:47:50 +0000 Subject: Please welcome Qt3/KDE3 to our ports tree. This includes work since the original versions of these ports, so some PORTREVISIONs were bumped. See http://freebsd.kde.org/ and mailing lists linked to from there for info on the packages generated to test these ports. bsd.kde.mk has already been updated a few days ago to work with these. Some patches applied to fix a few bugs were: deskutils/kdepim3: [1] Remove kpilot from build because it wasn't ready at release. editors/koffice-kde3: [2] Fix compile time bugs for FreeBSD. misc/kdeedu3: [3] Fix compile problem with kvoctrain. x11/kdebase3: [4] Fix KDM CPU usage and login bug. Some caveats: * All PLISTs are broken for deinstall due to script bug that I didn't notice until very recently. This will be fixed when I commit an update tomorrow. These ports should still install perfectly fine though. They should also deinstall without giving errors, but will leave directories behind. * You can't install this with any other version of QT or KDE already installed. I am not sure the checks are 100% working, but fixes for these will be forthcoming. This is mainly due to a policy decision made by kde@ to make QT/KDE ports install the way the rest of the world expects it to while also still conforming to FreeBSD's hier(7). For reference on this decision, please consult the KDE/FreeBSD mailing list archives. This decision fixes 2-year-old bug reports relating to how we handled this for KDE2 vs KDE1. Submitted by: [1] Adrian de Groot , [2] David Faure , Andy Fawcett Lauri Watts [3] Lauri Watts [4] Alan Eldridge Oswald Buddenhagen Reviewed by: kde --- x11/kde4-baseapps/files/patch-apm.c | 101 ------------------------------------ 1 file changed, 101 deletions(-) delete mode 100644 x11/kde4-baseapps/files/patch-apm.c (limited to 'x11/kde4-baseapps/files/patch-apm.c') diff --git a/x11/kde4-baseapps/files/patch-apm.c b/x11/kde4-baseapps/files/patch-apm.c deleted file mode 100644 index 08925da1dee5..000000000000 --- a/x11/kde4-baseapps/files/patch-apm.c +++ /dev/null @@ -1,101 +0,0 @@ ---- /dev/null Mon Nov 19 17:14:17 2001 -+++ ksysguard/ksysguardd/FreeBSD/apm.c Mon Nov 19 17:06:33 2001 -@@ -0,0 +1,98 @@ -+/* -+ KSysGuard, the KDE System Guard -+ -+ Copyright (c) 2001 Tobias Koenig -+ -+ This program is free software; you can redistribute it and/or -+ modify it under the terms of version 2 of the GNU General Public -+ License as published by the Free Software Foundation. -+ -+ This program is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+ GNU General Public License for more details. -+ -+ You should have received a copy of the GNU General Public License -+ along with this program; if not, write to the Free Software -+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -+ -+ $Id: apm.c,v 1.2 2001/09/18 14:03:53 tokoe Exp $ -+*/ -+ -+#include -+#include -+#include -+ -+#include "Command.h" -+#include "apm.h" -+#include "ksysguardd.h" -+ -+static int ApmFD, BattFill, BattTime; -+ -+#define APMDEV "/dev/apm" -+ -+/* -+================================ public part ================================= -+*/ -+ -+void -+initApm(void) -+{ -+ if ((ApmFD = open(APMDEV, O_RDONLY)) < 0) -+ return; -+ -+ if (updateApm() < 0) -+ return; -+ -+ registerMonitor("apm/batterycharge", "integer", printApmBatFill, -+ printApmBatFillInfo); -+ registerMonitor("apm/remainingtime", "integer", printApmBatTime, -+ printApmBatTimeInfo); -+} -+ -+void -+exitApm(void) -+{ -+ removeMonitor("apm/batterycharge"); -+ removeMonitor("apm/remainingtime"); -+ -+ close(ApmFD); -+} -+ -+int -+updateApm(void) -+{ -+ struct apm_info info; -+ int retval; -+ -+ retval = ioctl(ApmFD, APMIO_GETINFO, &info); -+ -+ BattFill = info.ai_batt_life; -+ BattTime = info.ai_batt_time; -+ -+ return retval; -+} -+ -+void -+printApmBatFill(const char* c) -+{ -+ fprintf(CurrentClient, "%d\n", BattFill); -+} -+ -+void -+printApmBatFillInfo(const char* c) -+{ -+ fprintf(CurrentClient, "Battery charge\t0\t100\t%%\n"); -+} -+ -+void -+printApmBatTime(const char* c) -+{ -+ fprintf(CurrentClient, "%d\n", BattTime); -+} -+ -+void -+printApmBatTimeInfo(const char* c) -+{ -+ fprintf(CurrentClient, "Remaining battery time\t0\t0\tmin\n"); -+} -- cgit v1.2.3