diff options
author | marcus <marcus@FreeBSD.org> | 2003-12-30 22:34:22 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-12-30 22:34:22 +0000 |
commit | 00ed34b05ec055a51c59893ec8ae61ead02f337c (patch) | |
tree | 6dae0516f065492b4ad0af19423d105bd2ef7b73 /deskutils/gdesklets/files | |
parent | e27a1ad0ab8b35856ce8cb908e9ffc773fd93c8b (diff) | |
download | FreeBSD-ports-00ed34b05ec055a51c59893ec8ae61ead02f337c.zip FreeBSD-ports-00ed34b05ec055a51c59893ec8ae61ead02f337c.tar.gz |
* Update to 0.25.1
* Change maintainer to Franz Klammer <klammer@webonaut.com>
PR: 60742
Submitted by: Jeremy Messenger <mezz7@cox.net> (previous maintainer)
Diffstat (limited to 'deskutils/gdesklets/files')
9 files changed, 23 insertions, 188 deletions
diff --git a/deskutils/gdesklets/files/patch-configure b/deskutils/gdesklets/files/patch-configure index 1ac0f6c..479c5d3 100644 --- a/deskutils/gdesklets/files/patch-configure +++ b/deskutils/gdesklets/files/patch-configure @@ -1,6 +1,6 @@ ---- configure.orig Fri Oct 17 22:42:52 2003 -+++ configure Fri Oct 17 22:42:57 2003 -@@ -7798,6 +7798,7 @@ +--- configure.orig Tue Dec 30 13:22:59 2003 ++++ configure Tue Dec 30 13:23:27 2003 +@@ -18395,6 +18395,7 @@ # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" diff --git a/deskutils/gdesklets/files/patch-data::Makefile.in b/deskutils/gdesklets/files/patch-data::Makefile.in index a3cd106..4b5c198 100644 --- a/deskutils/gdesklets/files/patch-data::Makefile.in +++ b/deskutils/gdesklets/files/patch-data::Makefile.in @@ -1,6 +1,6 @@ ---- data/Makefile.in.orig Fri Oct 17 22:44:59 2003 -+++ data/Makefile.in Fri Oct 17 22:45:03 2003 -@@ -195,7 +195,7 @@ +--- data/Makefile.in.orig Tue Dec 30 13:24:16 2003 ++++ data/Makefile.in Tue Dec 30 13:25:10 2003 +@@ -208,7 +208,7 @@ @USERINST_TRUE@mimedir = ~/.gnome/mime-info mime_in_files = gdesklets.keys.in mime_DATA = $(mime_in_files:.keys.in=.keys) gdesklets.mime diff --git a/deskutils/gdesklets/files/patch-display::TargetLabel.py b/deskutils/gdesklets/files/patch-display::TargetLabel.py index 7832c4a..005b5aa 100644 --- a/deskutils/gdesklets/files/patch-display::TargetLabel.py +++ b/deskutils/gdesklets/files/patch-display::TargetLabel.py @@ -1,6 +1,6 @@ ---- display/TargetLabel.py.orig Sat Oct 25 02:15:56 2003 -+++ display/TargetLabel.py Sat Oct 25 02:21:05 2003 -@@ -76,7 +76,14 @@ +--- display/TargetLabel.py.orig Tue Dec 30 13:26:48 2003 ++++ display/TargetLabel.py Tue Dec 30 13:27:20 2003 +@@ -90,7 +90,14 @@ # determine the locale import commands diff --git a/deskutils/gdesklets/files/patch-libdesklets::CPU.py b/deskutils/gdesklets/files/patch-libdesklets::CPU.py deleted file mode 100644 index 9fb06d2..0000000 --- a/deskutils/gdesklets/files/patch-libdesklets::CPU.py +++ /dev/null @@ -1,59 +0,0 @@ -# Many thanks to Alexander Leidinger <netchild@FreeBSD.org> for -# help and create those patches. - ---- libdesklets/CPU.py Thu Nov 6 14:50:47 2003 -+++ libdesklets/CPU.py Sun Nov 9 01:34:27 2003 -@@ -1,6 +1,8 @@ - import polling - import glibtop - -+import os -+import libdesklets as lib - - # - # TODO: support SMP -@@ -35,20 +37,36 @@ - - def __poll_cpu(self): - -- import libdesklets as lib -+ import re - -- fd = open("/proc/cpuinfo", "r") -+ platform = lib.sys.get_os() -+ -+ if platform == "FreeBSD": -+ fd = os.popen("grep -3 CPU /var/run/dmesg.boot | head -7 | tail -4", "r") -+ elif platform == "Linux": -+ fd = open("/proc/cpuinfo", "r") -+ else: -+ print "Unknown OS, strange things may happen." -+ return - lines = fd.readlines() - fd.close() - - arch = lib.sys.get_arch() - if (arch in ["i386", "i486", "i586", "i686"]): -- fields = lines[4].split() -- model_name = " ".join(fields[3:]) -- fields = lines[6].split() -- cpu_mhz = fields[3] -- fields = lines[7].split() -- cpu_cache = " ".join(fields[3:5]) -+ if ("FreeBSD" == platform): -+ m = re.search('^CPU: (.*) \(([0-9]+.*)-MHz [0-9]+-class CPU\)', lines[0]) -+ model_name = m.group(1) # or sysctl hw.model -+ cpu_mhz = m.group(2) # or sysctl hw.clockrate -+ cpu_cache = " " # not available by default -+ elif ("Linux" == platform): -+ fields = lines[4].split() -+ model_name = " ".join(fields[3:]) -+ fields = lines[6].split() -+ cpu_mhz = fields[3] -+ fields = lines[7].split() -+ cpu_cache = " ".join(fields[3:5]) -+ else: -+ pass - - elif (arch == "ppc"): - fields = lines[0].split() diff --git a/deskutils/gdesklets/files/patch-libdesklets::Disk.py b/deskutils/gdesklets/files/patch-libdesklets::Disk.py index 135285c..ee68f14 100644 --- a/deskutils/gdesklets/files/patch-libdesklets::Disk.py +++ b/deskutils/gdesklets/files/patch-libdesklets::Disk.py @@ -2,12 +2,15 @@ # Franz Klammer <klammer@webonaut.com> for help and create # those patches. # -# Note that, this is for now. One of us still need to fix the -# libgtop to correct read the partition so this patch can be -# remove. +# Note that, this is for now. It will be remove when the +# libgtop is update to 2.6 or maybe I can ask gnome@freebsd.org +# if they won't mind to add a patch in libgtop 2.4 to get this +# patch remove. +# +# Joe has fixed it in the libgtop 2.5.x and isn't in ports yet. ---- libdesklets/Disk.py.orig Mon Nov 17 13:59:20 2003 -+++ libdesklets/Disk.py Mon Nov 17 14:05:34 2003 +--- libdesklets/Disk.py.orig Tue Dec 30 13:29:57 2003 ++++ libdesklets/Disk.py Tue Dec 30 13:31:01 2003 @@ -1,6 +1,6 @@ import glibtop import polling @@ -16,23 +19,22 @@ class Disk: -@@ -13,18 +13,22 @@ +@@ -14,18 +14,22 @@ def __poll_partitions(self): - data = glibtop.get_mountlist(0) -- partitions = [] ++ fd = os.popen("mount -p") ++ data = fd.readlines() ++ fd.close() ++ + partitions = [] - for size, device, mpoint, fstype in data: - if (fstype in ("ext2", "ext3", "msdos", "vfat", "ntfs", "hpfs" - "jfs", "reiserfs", "xfs", "qnx4", "adfs", "ffs", - "hfs", "befs", "bfs", "efs", "iso9660", "minix", - "sysv", "coda", "nfs", "udf", "ufs", "xiafs")): - partitions.append((device, mpoint)) -+ fd = os.popen("mount -p") -+ data = fd.readlines() -+ fd.close() -+ -+ partitions = [] + for lines in data: + fields = lines.strip().replace("\t", " ").split() + if (fields[2] in ("ext2", "ext3", "msdos", "vfat", "ntfs", "hpfs" diff --git a/deskutils/gdesklets/files/patch-libdesklets::Memory.py b/deskutils/gdesklets/files/patch-libdesklets::Memory.py deleted file mode 100644 index d6702e7..0000000 --- a/deskutils/gdesklets/files/patch-libdesklets::Memory.py +++ /dev/null @@ -1,15 +0,0 @@ -# Many thanks to Alexander Leidinger <netchild@FreeBSD.org> and -# Franz Klammer <klammer@webonaut.com> for help and create -# those patches. - ---- libdesklets/Memory.py.orig Sun Nov 16 17:02:45 2003 -+++ libdesklets/Memory.py Sun Nov 16 17:03:19 2003 -@@ -49,7 +49,7 @@ - - # Swap - elif (mode == 1): -- total, used, free = glibtop.get_mem()[:3] -+ total, used, free = glibtop.get_swap()[:3] - #for l in lines: - # if (l.startswith("SwapTotal:")): - # value = l.split() diff --git a/deskutils/gdesklets/files/patch-libdesklets::Network.py b/deskutils/gdesklets/files/patch-libdesklets::Network.py deleted file mode 100644 index a109edb..0000000 --- a/deskutils/gdesklets/files/patch-libdesklets::Network.py +++ /dev/null @@ -1,69 +0,0 @@ -# Many thanks to Alexander Leidinger <netchild@FreeBSD.org> and -# Franz Klammer <klammer@webonaut.com> for help and create -# those patches. - ---- libdesklets/Network.py.orig Sun Nov 16 15:15:30 2003 -+++ libdesklets/Network.py Sun Nov 16 15:18:22 2003 -@@ -1,8 +1,8 @@ - import polling - import glibtop -- -+import os - import time -- -+import libdesklets as lib - - class Network: - -@@ -27,21 +27,40 @@ - - def __poll_devices(self): - -- fd = open("/proc/net/dev", "r") -+ platform = lib.sys.get_os() -+ -+ if ("FreeBSD" == platform): -+ fd = os.popen("ifconfig -a | grep mtu", "r") -+ elif ("Linux" == platform): -+ fd = open("/proc/net/dev", "r") -+ else: -+ return [] - data = fd.readlines() - fd.close() - - devices = [] -- for lines in data[2:]: -- l = lines.strip() -- l = l.replace(":", " ") -- fields = l.split() -- -- if (fields[0] == "lo"): -- continue -- else: -- device = fields[0] -- devices.append(device) -+ if ("FreeBSD" == platform): -+ for lines in data: -+ fields = lines.strip().split(":") -+ -+ if (fields[0][:2] == "lo"): -+ continue -+ else: -+ device = fields[0] -+ devices.append(device) -+ elif ("Linux" == platform): -+ for lines in data[2:]: -+ l = lines.strip() -+ l = l.replace(":", " ") -+ fields = l.split() -+ -+ if (fields[0] == "lo"): -+ continue -+ else: -+ device = fields[0] -+ devices.append(device) -+ else: -+ pass - - return devices - diff --git a/deskutils/gdesklets/files/patch-locale::install_locales.py b/deskutils/gdesklets/files/patch-locale::install_locales.py deleted file mode 100644 index b3d0269..0000000 --- a/deskutils/gdesklets/files/patch-locale::install_locales.py +++ /dev/null @@ -1,11 +0,0 @@ ---- locale/install_locales.py.orig Sun Aug 31 23:07:07 2003 -+++ locale/install_locales.py Sun Aug 31 23:07:33 2003 -@@ -17,7 +17,7 @@ - file = os.path.basename(source) - lang, ext = os.path.splitext(file) - fulltargetpath = os.path.join(targetpath, lang, "LC_MESSAGES") -- os.system("mkdir --parents " + fulltargetpath) -+ os.system("mkdir -p " + fulltargetpath) - - print (source) - mofile = os.path.join(fulltargetpath, domain + ".mo") diff --git a/deskutils/gdesklets/files/patch-sensor::Sensor.py b/deskutils/gdesklets/files/patch-sensor::Sensor.py deleted file mode 100644 index c2c3430..0000000 --- a/deskutils/gdesklets/files/patch-sensor::Sensor.py +++ /dev/null @@ -1,13 +0,0 @@ -# Yay! Many thanks to Franz Klammer <klammer@webonaut.com>, -# the theads is now work. That make a lot of desklets work now. - ---- sensor/Sensor.py.orig Tue Nov 18 13:32:10 2003 -+++ sensor/Sensor.py Tue Nov 18 13:33:39 2003 -@@ -346,3 +346,7 @@ - def __on_quit(self, src): - - gtk.main_quit() -+ -+ -+# FreeBSD needs this; Linux doesn't but it's cleaner to use it -+gtk.threads_init() |