head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.22 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.20 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.18 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.16 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.14 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.12 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.10 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.8 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.6 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.4 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.4.0.2 pkgsrc-2007Q4-base:1.4 pkgsrc-2007Q3:1.3.0.12 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.10 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.8 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.6 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.4 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.2 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.2.0.18 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.2.0.16 pkgsrc-2005Q4-base:1.2 pkgsrc-2005Q3:1.2.0.14 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.12 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.2.0.10 pkgsrc-2005Q1-base:1.2 pkgsrc-2004Q4:1.2.0.8 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.6 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.4 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.2 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.1.1.1.0.2 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.1.1.0.10 pkgviews-base:1.1 buildlink2-base:1.1.1.1 buildlink2:1.1.1.1.0.4 pkg-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2007.10.20.10.47.22; author markd; state dead; branches; next 1.3; 1.3 date 2006.05.09.12.48.13; author joerg; state Exp; branches; next 1.2; 1.2 date 2004.02.04.20.38.00; author markd; state dead; branches; next 1.1; 1.1 date 2002.05.31.13.42.36; author skrll; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2002.05.31.13.42.36; author skrll; state Exp; branches 1.1.1.1.4.1; next ; 1.1.1.1.4.1 date 2002.05.31.13.42.36; author jlam; state dead; branches; next 1.1.1.1.4.2; 1.1.1.1.4.2 date 2002.06.23.18.53.41; author jlam; state Exp; branches; next ; desc @@ 1.4 log @Update to KDE 3.5.8 kfloppy * Check all available densities instead of a hardcoded list. klaptopdaemon * Fix lock & hibernate allowing unauthorised access . @ text @$NetBSD: patch-ag,v 1.3 2006/05/09 12:48:13 joerg Exp $ --- superkaramba/src/memsensor.cpp.orig 2006-05-09 10:25:07.000000000 +0000 +++ superkaramba/src/memsensor.cpp @@@@ -32,6 +32,8 @@@@ #include #endif +#include + #if defined Q_OS_FREEBSD || defined(Q_OS_NETBSD) /* define pagetok in terms of pageshift */ #define pagetok(size) ((size) << pageshift) @@@@ -51,7 +53,9 @@@@ MemSensor::MemSensor(int msec) : Sensor( /* we only need the amount of log(2)1024 for our conversion */ pageshift -= 10; -# if (defined(Q_OS_FREEBSD) && __FreeBSD_version < 500018) +# if defined(Q_OS_FREEBSD) && defined(__FreeBSD_version) && __FreeBSD_version >= 500018 + kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open"); +# elif defined Q_OS_FREEBSD connect(&ksp, SIGNAL(receivedStdout(KProcess *, char *, int )), this,SLOT(receivedStdout(KProcess *, char *, int ))); connect(&ksp, SIGNAL(processExited(KProcess *)), @@@@ -62,8 +66,6 @@@@ MemSensor::MemSensor(int msec) : Sensor( MaxSet = false; readValues(); -# elif defined Q_OS_FREEBSD - kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open"); # endif #else readValues(); @@@@ -180,9 +182,7 @@@@ int MemSensor::getCached() int MemSensor::getSwapTotal() { #ifdef Q_OS_FREEBSD -# if __FreeBSD_version < 500018 - return(swapTotal); -# else +# if defined(__FreeBSD_version) && __FreeBSD_version >= 500018 int n = -1; int pagesize = getpagesize(); int retavail = 0; @@@@ -196,6 +196,8 @@@@ int MemSensor::getSwapTotal() retavail = swapinfo.ksw_total * pagesize / 1024; return(retavail); +#else + return(swapTotal); # endif #elif defined(Q_OS_NETBSD) struct uvmexp_sysctl uvmexp; @@@@ -222,9 +224,7 @@@@ int MemSensor::getSwapTotal() int MemSensor::getSwapFree() { #ifdef Q_OS_FREEBSD -# if __FreeBSD_version < 500018 - return(swapTotal - swapUsed); -# else +# if defined(__FreeBSD_version) && __FreeBSD_version >= 500018 int n = -1; int pagesize = getpagesize(); int retfree = 0; @@@@ -237,6 +237,8 @@@@ int MemSensor::getSwapFree() retfree = (swapinfo.ksw_total - swapinfo.ksw_used) * pagesize / 1024; return(retfree); +# else + return(swapTotal - swapUsed); # endif #elif defined(Q_OS_NETBSD) struct uvmexp_sysctl uvmexp; @@@@ -267,7 +269,7 @@@@ int MemSensor::getSwapFree() void MemSensor::readValues() { #if defined Q_OS_FREEBSD || defined(Q_OS_NETBSD) -# if (defined(Q_OS_FREEBSD) && __FreeBSD_version < 500018) +# if defined(Q_OS_FREEBSD) && !(defined(__FreeBSD_version) && __FreeBSD_version >= 500018) ksp.clearArguments(); ksp << "swapinfo"; ksp.start( KProcess::NotifyOnExit,KProcIO::Stdout); @@@@ -291,7 +293,7 @@@@ void MemSensor::update() SensorParams *sp; Meter *meter; QObjectListIt it( *objList ); -#if (defined(Q_OS_FREEBSD) && __FreeBSD_version < 500018) +#if defined(Q_OS_FREEBSD) && !(defined(__FreeBSD_version) && __FreeBSD_version >= 500018) bool set = false; #endif int totalMem = getMemTotal(); @@@@ -303,7 +305,7 @@@@ void MemSensor::update() while (it != 0) { sp = (SensorParams*)(*it); -#if (defined(Q_OS_FREEBSD) && __FreeBSD_version < 500018) +#if defined(Q_OS_FREEBSD) && !(defined(__FreeBSD_version) && __FreeBSD_version >= 500018) if ( (!MaxSet) && (totalSwap > 0) ) { setMaxValue(sp); bool set = true; @@@@ -331,7 +333,7 @@@@ void MemSensor::update() meter->setValue(format); ++it; } -#if (defined(Q_OS_FREEBSD) && __FreeBSD_version < 500018) +#if defined(Q_OS_FREEBSD) && !(defined(__FreeBSD_version) && __FreeBSD_version >= 500018) if (set) MaxSet = true; #endif @ 1.3 log @Fix build on DragonFly. @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Update to KDE 3.2 Changes: Utilities KRegExpEditor * Create an application on its own from KRegExpEditor (several users have requested this) Jesper K. Pedersen * Add a verifier window where user can try his regular expression Jesper K. Pedersen * Add some warnings on invalid regular expressions (like $^) Jesper K. Pedersen * Ensure predefined regular expressions are correct i18n'ed Jesper K. Pedersen * Add support for Emacs style Regular Expression syntaxes Jesper K. Pedersen KJots * XMLUI-ify and improve the interface. Using a treeview for books and bookmarks for quick nav. Aaron J. Seigo * Printing and viewing of entire books. Aaron J. Seigo * Autosave. Aaron J. Seigo KMilo * NEW IN KDE: A generic framework to support special keyboards and hardware features, such as those found on laptops. George Staikos * KMilo support for PowerBooks via pbbuttonsd. George Staikos KLaptop * Full Linux ACPI support (suspend etc, throttling, performance profiles) Paul Campbell * Back panel brightness support for some laptops (Sony, Toshiba) Paul Campbell * Recode to run as a KDED daemon Paul Campbell * Better Thinkpad support Paul Campbell * Triggers from lid closure (suspend, powerdown etc) - on laptops with ACPI support Paul Campbell * Sony laptop extensions support (/dev/sonypi - scroll wheel, panel brightness) Paul Campbell * Added the ability to auto-disable suspend etc when the load average is high Paul Campbell * Display the state of individual batteries in ACPI systems Paul Campbell * Support for Linux kernel software suspend Paul Campbell * Added battery charged notification dialog Paul Campbell * Option to use blank screensaver when in battery mode George Staikos * Support for the Linux CPUFreq interface. Volker Krause Kgpg * NEW IN KDE: frontend for gpg. Jean-Baptiste Mardelle * Key editing in GUI (changing passphrase, trust, expiration) * Support for key groups * Speed up key manager * Gpg-agent support * Auto import missing signatures * improved editor (print, spell check, ...) * Manage photo id's * Revocation certificates (print, save) * Change dialogs to KBaseDialog for ui consistency * Implement the missing key editing commands in the GUI (adduid, deluid,..) * When encrypting a folder, give a choice of compression scheme (zip, tar,...) KHexEdit2 * NEW IN KDE: A hex edit widget library Friedrich W. H. Kossebau * move the lib of the new KHexEdit2 widget from kdenonbeta over to kdeutils/khexedit/lib Friedrich W. H. Kossebau * implement interfaces for the KBytesEdit widget part Friedrich W. H. Kossebau @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.1 2002/05/31 13:42:36 skrll Exp $ d3 5 a7 5 --- kedit/kedit.cpp.orig Tue Feb 26 16:08:29 2002 +++ kedit/kedit.cpp @@@@ -1502,7 +1502,9 @@@@ { 0, 0, 0} }; d9 1 a9 2 -int main (int argc, char **argv) +extern "C" int kdemain (int, char **); d11 25 a35 1 +int kdemain (int argc, char **argv) d37 10 a46 1 bool have_top_window = false; d48 62 @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of the kdeutils pkg (in the right place this time.) @ text @@ 1.1.1.1.4.1 log @file patch-ag was added on branch buildlink2 on 2002-06-23 18:53:41 +0000 @ text @d1 15 @ 1.1.1.1.4.2 log @Merge from pkgsrc-current to buildlink2 branch. @ text @a0 15 $NetBSD: patch-ag,v 1.1.1.1.4.1 2002/06/23 18:53:41 jlam Exp $ --- kedit/kedit.cpp.orig Tue Feb 26 16:08:29 2002 +++ kedit/kedit.cpp @@@@ -1502,7 +1502,9 @@@@ { 0, 0, 0} }; -int main (int argc, char **argv) +extern "C" int kdemain (int, char **); + +int kdemain (int argc, char **argv) { bool have_top_window = false; @