Update of /cvsroot/fink/dists/10.2/stable/main/finkinfo/utils
In directory sc8-pr-cvs1:/tmp/cvs-serv2865
Added Files:
gkrellkam-0.3.4-1.info gkrellkam-0.3.4-1.patch
gkrellkam2-2.0.0-1.info gkrellm2-2.1.0-4.info
gkrellm2-2.1.0-4.patch
Log Message:
stable per users
--- NEW FILE: gkrellkam-0.3.4-1.info ---
Package: gkrellkam
Version: 0.3.4
Revision: 1
Maintainer: Ben Hines <[EMAIL PROTECTED]>
Source: mirror:sourceforge:%n/%n_%v.tar.gz
SourceDirectory: %n-%v
Source-MD5: 177959994b1dfd9e47c59b9f1391c53d
Patch: %f.patch
SourceDirectory: %n-%v
Depends: gkrellm, gtk+-shlibs, imlib-shlibs, wget
BuildDepends: gtk+, imlib, glib, dlcompat-dev
CompileScript: make GKRELLM_HDRS=%p/include/gkrellm LDFLAGS="-bundle -bundle_loader
%p/bin/gkrellm `gtk-config --libs` -lgdk_imlib" CC=cc
InstallScript: <<
mkdir -p %i/share/man/man5
make install DESTDIR=/tmp INST_DIR=%i/lib/gkrellm/plugins MANPAGE_DIR=%i/share/man/man5
<<
DocFiles: COPYING README Release Todo example.list
Description: Gkrellm plugin - Webcam viewer
DescDetail: <<
Gkrellkam is a plugin to GKrellM that displays thumbnails of
periodically updated images (such as webcams.)
Each panel can be associated with an image URL, a local image filename, a
list of image filenames and URLs, or a script that will be called to get
a fresh image. The images can be nearly any format or size. GKrellKam
will make them small enough to fit in the panel, and after N seconds, it
will get check its source again.
GKrellKam can launch an image viewer to show you the unscaled version of
the current image when you click on the panel. If you right-click, it
will trigger an immediate update. GKrellKam is very event-driven so it
uses up as little CPU time as possible.
<<
DescPort: <<
Small patch to get rid of basename() which can go away in 10.2.
<<
License: GPL
Homepage: http://gkrellkam.sourceforge.net/
--- NEW FILE: gkrellkam-0.3.4-1.patch ---
--- gkrellkam-0.3.4/gkrellkam.c Fri Mar 8 10:47:39 2002
+++ gkrellkam-0.3.4-patched/gkrellkam.c Tue Jul 2 22:58:39 2002
@@ -28,7 +28,7 @@
*/
#include <gkrellm.h>
-#include <libgen.h>
+//#include <libgen.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
@@ -1772,7 +1772,7 @@
its parameters. If it was using a different script, put it with
the appropriate type into the source list */
- if (!strcmp (basename (firstword), "krellkam_load"))
+ if (!strcmp (firstword, "krellkam_load"))
update_source_config (p, rest);
else
{
--- NEW FILE: gkrellkam2-2.0.0-1.info ---
Package: gkrellkam2
Version: 2.0.0
Revision: 1
Maintainer: Ben Hines <[EMAIL PROTECTED]>
Source: mirror:sourceforge:gkrellkam/gkrellkam_%v.tar.gz
SourceDirectory: gkrellkam-%v
Source-MD5: 657c99de172bc7598098a6a4196ff07b
Conflicts: gkrellkam
Depends: gkrellm2, gtk+2-shlibs, imlib-shlibs, wget
BuildDepends: gtk+2, imlib, glib2, dlcompat-dev
CompileScript: make LDFLAGS="-bundle -bundle_loader %p/bin/gkrellm `pkg-config
gtk+-2.0 --libs`"
InstallScript: <<
mkdir -p %i/share/man/man5
make install DESTDIR=%d INST_DIR=%i/lib/gkrellm2/plugins MANPAGE_DIR=%i/share/man/man5
<<
DocFiles: COPYING Changelog README Release Todo example.list
Description: Gkrellm2 plugin - Webcam viewer
DescDetail: <<
Gkrellkam (v2) is a plugin to GKrellM2 that displays thumbnails of
periodically updated images (such as webcams.)
Each panel can be associated with an image URL, a local image filename, a
list of image filenames and URLs, or a script that will be called to get
a fresh image. The images can be nearly any format or size. GKrellKam
will make them small enough to fit in the panel, and after N seconds, it
will get check its source again.
GKrellKam can launch an image viewer to show you the unscaled version of
the current image when you click on the panel. If you right-click, it
will trigger an immediate update. GKrellKam is very event-driven so it
uses up as little CPU time as possible.
<<
License: GPL
Homepage: http://gkrellkam.sourceforge.net/
--- NEW FILE: gkrellm2-2.1.0-4.info ---
Package: gkrellm2
Version: 2.1.0
Revision: 4
Maintainer: Ben Hines <[EMAIL PROTECTED]>
Source: http://web.wt.net/~billw/gkrellm/gkrellm-%v.tar.bz2
Source-MD5: 5c89462d187d4ae3f157665cbb135381
Patch: %f.patch
Conflicts: gkrellm
Depends: gtk+2-shlibs, glib2-shlibs, imlib-shlibs, dlcompat-shlibs, libwww-shlibs
BuildDepends: gtk+2, glib2, imlib, libwww, dlcompat-dev
SetCFLAGS: -DSYSTEM_PLUGINS_DIR=\"%p/lib/%n/plugins\"
-DSYSTEM_THEMES_DIR=\"%p/lib/%n/themes\"
CompileScript: make darwin LOCALEDIR=%p/share/locale
InstallScript: <<
mkdir -p %i/bin %i/include %i/share/man/man1
make install_darwin MANDIR=%i/share/man/man1 INSTALLDIR=%i/bin
LOCALEDIR=%i/share/locale INCLUDEDIR=%i/include
<<
DocFiles: README COPYRIGHT Changelog* Themes.html
Description: System monitor stack for GTK+2
DescDetail: <<
GKrellM is a single process stack of system monitors which supports applying themes
to match its appearance to your window manager, Gtk, or any other theme. There are
also many third party plugins that can monitor a wide variety of things.
This is the GTK+2 version.
<<
DescUsage: <<
Get themes at http://www.muhri.net/gkrellm/ and place them in your ~/.gkrellm/themes
directory to use.
<<
DescPort: <<
Rev 2- fix disk display pref recording.
<<
Homepage: http://web.wt.net/~billw/gkrellm/gkrellm.html
License: GPL
--- NEW FILE: gkrellm2-2.1.0-4.patch ---
--- gkrellm-2.0.4/src/gkrellm.h 2002-09-23 19:47:04.000000000 -0700
+++ gkrellm-2.0.4-patched/src/gkrellm.h 2002-10-10 02:30:15.000000000 -0700
@@ -52,7 +52,7 @@
#if !defined(__FreeBSD__) && !defined(__linux__) && !defined(__NetBSD__) \
&& !defined(__OpenBSD__) && !defined(__solaris__) && !defined(WIN32) \
- && !defined(__APPLE)
+ && !defined(__APPLE__)
#define USE_LIBGTOP
#endif
--- gkrellm-2.0.4/src/inet.h 2002-07-28 17:59:15.000000000 -0700
+++ gkrellm-2.0.4-patched/src/inet.h 2002-10-10 02:07:13.000000000 -0700
@@ -46,6 +46,15 @@
#endif
#endif /* __FreeBSD__ */
+#if defined(__APPLE__)
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <sys/socketvar.h>
+#include <sys/sysctl.h>
+#include <net/route.h>
+#define INET6
+#endif /* __APPLE__ */
+
#if defined(__NetBSD__) || defined(__OpenBSD__)
#include <sys/types.h>
#include <sys/socket.h>
--- gkrellm-2.0.4/src/sysdeps/bsd-common.c 2002-07-31 14:27:36.000000000 -0700
+++ gkrellm-2.0.4-patched/src/sysdeps/bsd-common.c 2002-10-10 02:27:39.000000000
+-0700
@@ -23,6 +23,7 @@
*/
#include <sys/sysctl.h>
+#include <sys/socket.h> // For PF_ROUTE, etc
#include <net/if.h>
#include <net/if_dl.h>
#include <net/route.h>
--- gkrellm-2.0.4/server/gkrellmd.h 2002-09-23 19:47:20.000000000 -0700
+++ gkrellm-2.0.4-patched/server/gkrellmd.h 2002-10-10 03:12:01.000000000 -0700
@@ -84,13 +84,20 @@
# endif
#endif
+#if defined(__APPLE__)
+# ifndef socklen_t
+# define socklen_t int
+# endif
+#define HAVE_GETADDRINFO 1
+#endif
+
#ifndef NI_WITHSCOPEID
#define NI_WITHSCOPEID 0
#endif
#if !defined(__FreeBSD__) && !defined(__linux__) && !defined(__NetBSD__) \
&& !defined(__OpenBSD__) && !defined(__solaris__) && !defined(WIN32) \
- && !defined(__APPLE)
+ && !defined(__APPLE__)
#define USE_LIBGTOP
#endif
--- gkrellm-2.0.4/server/sysdeps-unix.c 2002-07-31 16:07:47.000000000 -0700
+++ gkrellm-2.0.4-patched/server/sysdeps-unix.c 2002-10-10 03:11:52.000000000 -0700
@@ -27,8 +27,8 @@
#endif
#if defined(__APPLE__)
-#include "sysdeps/darwin.c"
-#include "sysdeps/bsd-common.c"
+#include "../src/sysdeps/darwin.c"
+#include "../src/sysdeps/bsd-common.c"
#endif
#if defined(__FreeBSD__)
--- gkrellm-2.1.0/src/sysdeps/darwin.c 2002-07-31 14:10:15.000000000 -0700
+++ gkrellm-2.1.0/src/sysdeps/darwin.c 2002-10-26 15:00:32.000000000 -0700
@@ -85,7 +85,6 @@
{
processor_cpu_load_info_data_t *pinfo;
mach_msg_type_number_t info_count;
- int i;
n_cpus = 0;
@@ -350,8 +349,7 @@
gboolean
gkrellm_sys_disk_init(void)
- {
- gchar *name;
+ {
kern_return_t status = 0;
io_registry_entry_t drive = 0; /* needs release */
io_registry_entry_t child = 0; /* needs release */
@@ -366,16 +364,28 @@
&drivelist);
while ( (drive = IOIteratorNext(drivelist)) )
{
- /* Obtain the properties for this drive object */
- name = malloc(128);
- disk_list = g_list_append(disk_list, name);
-
+ gchar * name = malloc(128); /* io_name_t is char[128] */
+ int ptr = 0;
+
+ if(!name) return FALSE;
+
+ /* Obtain the properties for this drive object */
if(!status)
status = IORegistryEntryGetChildEntry(drive, kIOServicePlane, &child );
if(!status)
status = IORegistryEntryGetName(child, name );
+ /* Convert spaces to underscores, for prefs safety */
+ if(!status)
+ {
+ for(ptr = 0; ptr < strlen(name); ptr++)
+ {
+ if(name[ptr] == ' ')
+ name[ptr] = '_';
+ }
+ disk_list = g_list_append(disk_list, name);
+ }
IOObjectRelease(drive); drive = 0;
}
IOIteratorReset(drivelist);
@@ -425,7 +435,7 @@
kern_return_t error;
static DIR *dirp;
struct dirent *dp;
- guint64 total, used, x_used, free, shared, buffers, cached;
+ guint64 total, used, free, shared, buffers, cached;
info_count = HOST_VM_INFO_COUNT;
@@ -442,21 +452,20 @@
pshift++;
}
- x_used = (vm_info.active_count + vm_info.inactive_count + vm_info.wire_count)
<< pshift;
+ used = (vm_info.active_count + vm_info.inactive_count + vm_info.wire_count) <<
+pshift;
free = vm_info.free_count << pshift;
total = (vm_info.active_count + vm_info.inactive_count + vm_info.free_count +
vm_info.wire_count) << pshift;
/* Don't know how to get cached or buffers. */
buffers = 0;
cached = 0;
- used = mem.x_used;
/* shared 0 for now, shared is a PITA */
- shared = 0;
+ shared = 0;
gkrellm_mem_assign_data(total, used, free, shared, buffers, cached);
/* Swap is available at same time as mem, so grab values here.
*/
- swap_in = vm_info.pageins;
- swap_out = vm_info.pageouts;
+ swapin = vm_info.pageins;
+ swapout = vm_info.pageouts;
swap_used = vm_info.pageouts << pshift;
/* Figure out total swap. This adds up the size of the swapfiles */
-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET
comprehensive development tool, built to increase your
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits