diff options
author | marcus <marcus@FreeBSD.org> | 2003-11-18 17:39:47 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-11-18 17:39:47 +0000 |
commit | eeb3362cf99e357036c04050ab1a5fb35e3506a0 (patch) | |
tree | 452dbf6de3653efc85b4befc18b38f34150ef4e4 /sysutils | |
parent | 622a0adb11c61fa45a8ddc6ef3d61a22e853c635 (diff) | |
download | FreeBSD-ports-eeb3362cf99e357036c04050ab1a5fb35e3506a0.zip FreeBSD-ports-eeb3362cf99e357036c04050ab1a5fb35e3506a0.tar.gz |
Add gdesklets-sysinfo, a plug-in for gdesklets that shows various system
information.
PR: 59415
Submitted by: Franz Klammer <klammer@webonaut.com>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/Makefile | 48 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/distinfo | 1 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/files/patch-Install_SysInfo_Sensor.bin | 19 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/files/postbuild-patch-__init__.py | 37 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/pkg-descr | 3 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/pkg-message | 14 | ||||
-rw-r--r-- | sysutils/gdesklets-sysinfo/pkg-plist | 22 |
8 files changed, 145 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index f24624a..6b574e7 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -118,6 +118,7 @@ SUBDIR += ganglia-webfrontend SUBDIR += gcombust SUBDIR += gconf-editor + SUBDIR += gdesklets-sysinfo SUBDIR += gfslicer SUBDIR += gkleds2 SUBDIR += gkrellflynn diff --git a/sysutils/gdesklets-sysinfo/Makefile b/sysutils/gdesklets-sysinfo/Makefile new file mode 100644 index 0000000..9a9aed8 --- /dev/null +++ b/sysutils/gdesklets-sysinfo/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: gdesklets-sysinfo +# Date created: 13 November 2003 +# Whom: Franz Klammer <klammer@webonaut.com> +# +# $FreeBSD$ +# + +PORTNAME= sysinfo +PORTVERSION= 0.21.2 +CATEGORIES= sysutils gnome +MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ +PKGNAMEPREFIX= gdesklets- +DISTNAME= SysInfo-${PORTVERSION} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= klammer@webonaut.com +COMMENT= Desklet shows various information about your system + +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets + +# XXX Note, this file is a gzip file with a .bz2 extension. +#USE_BZIP2= yes +USE_X_PREFIX= yes +NAME= SysInfo +WRKSRC= ${WRKDIR}/${NAME} + +post-extract: + @${MV} ${WRKDIR}/Install_${NAME}_Sensor.bin ${WRKSRC}/ + +do-build: + @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${PATCH} -sp0 < ${PATCHDIR}/postbuild-patch-__init__.py + @${FIND} ${WRKSRC} -name '*.orig' -delete + +do-install: + @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/gfx + @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/gfx + @${INSTALL_DATA} ${WRKSRC}/*.display ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/ + @${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/ + @${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/ + @${INSTALL_DATA} ${WRKSRC}/gfx/*.png ${PREFIX}/share/gnome/gdesklets/Displays/${NAME}/gfx/ + @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/ + @${INSTALL_DATA} ${WRKSRC}/${NAME}/gfx/*.png ${PREFIX}/share/gnome/gdesklets/Sensors/${NAME}/gfx/ + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/sysutils/gdesklets-sysinfo/distinfo b/sysutils/gdesklets-sysinfo/distinfo new file mode 100644 index 0000000..9947136 --- /dev/null +++ b/sysutils/gdesklets-sysinfo/distinfo @@ -0,0 +1 @@ +MD5 (SysInfo-0.21.2.tar.bz2) = 588c0f52ee113fe8abaa384367753547 diff --git a/sysutils/gdesklets-sysinfo/files/patch-Install_SysInfo_Sensor.bin b/sysutils/gdesklets-sysinfo/files/patch-Install_SysInfo_Sensor.bin new file mode 100644 index 0000000..08c9dcf --- /dev/null +++ b/sysutils/gdesklets-sysinfo/files/patch-Install_SysInfo_Sensor.bin @@ -0,0 +1,19 @@ +--- Install_SysInfo_Sensor.bin.orig Thu Nov 13 17:37:51 2003 ++++ Install_SysInfo_Sensor.bin Thu Nov 13 17:38:37 2003 +@@ -75,15 +75,9 @@ + else: + cmd = "mkdir -p %(destination)s; cd %(destination)s; " \ + "LANG=C tar -xzvf %(tmp)s 2>&1" +- fail, out = commands.getstatusoutput(cmd % vars()) ++ commands.getstatusoutput(cmd % vars()) + os.unlink(tmp) + +- if (fail): +- if (no_message): print ERROR_TAR + out +- else: message(ERROR_TAR + out, "error") +- sys.exit(1) +- +- print out + if (not list_only): + if (no_message): print SUCCESS + else: message(SUCCESS, "info") diff --git a/sysutils/gdesklets-sysinfo/files/postbuild-patch-__init__.py b/sysutils/gdesklets-sysinfo/files/postbuild-patch-__init__.py new file mode 100644 index 0000000..f11f498 --- /dev/null +++ b/sysutils/gdesklets-sysinfo/files/postbuild-patch-__init__.py @@ -0,0 +1,37 @@ +--- work/SysInfo/SysInfo/__init__.py.orig Fri Sep 12 22:38:38 2003 ++++ work/SysInfo/SysInfo/__init__.py Mon Nov 17 10:50:07 2003 +@@ -129,7 +129,8 @@ + signal.set("key2[%(index)d]" % vars(), _("Clock:")) + signal.set("value2[%(index)d]" % vars(), self.__cpu_speed) + signal.set("key3[%(index)d]" % vars(), _("Cache:")) +- signal.set("value3[%(index)d]" % vars(), self.__cpu_cache) ++ #signal.set("value3[%(index)d]" % vars(), self.__cpu_cache) ++ signal.set("value3[%(index)d]" % vars(), _("unknown")) + signal.set("fill[%(index)d]" % vars(), load) + signal.set("show1[%(index)d]" % vars(), 1) + signal.set("show2[%(index)d]" % vars(), 1) +@@ -203,8 +204,8 @@ + l5 = lib.sys.get_load_avg_5m() + l15 = lib.sys.get_load_avg_15m() + tasks, running = lib.sys.get_tasks() +- start = lib.sys.get_sysstart() +- d_start, h_start, m_start, s_start = lib.convert.secs_to_dhms(start) ++ #start = lib.sys.get_sysstart() ++ #d_start, h_start, m_start, s_start = lib.convert.secs_to_dhms(start) + uptime = lib.sys.get_uptime() + d, h, m, s = lib.convert.secs_to_dhms(uptime) + idletime = lib.sys.get_idletime() +@@ -216,9 +217,10 @@ + signal.set("key1[%(index)d]" % vars(), _("Load:")) + signal.set("value1[%(index)d]" % vars(), str(l1) + " " + str(l5) + " " + str(l15)) + signal.set("key2[%(index)d]" % vars(), _("Sysstart:")) +- signal.set("value2[%(index)d]" % vars(), str(h_start) + ":" + +- str(m_start) + ":" + +- str(s_start)) ++ signal.set("value2[%(index)d]" % vars(), _("unknown")) ++ #signal.set("value2[%(index)d]" % vars(), str(h_start) + ":" + ++ # str(m_start) + ":" + ++ # str(s_start)) + signal.set("key3[%(index)d]" % vars(), _("Uptime:")) + signal.set("value3[%(index)d]" % vars(), str(d) + "d " + \ + str(h) + "h " + str(m) + "m ") diff --git a/sysutils/gdesklets-sysinfo/pkg-descr b/sysutils/gdesklets-sysinfo/pkg-descr new file mode 100644 index 0000000..f3c75f0 --- /dev/null +++ b/sysutils/gdesklets-sysinfo/pkg-descr @@ -0,0 +1,3 @@ +SysInfo shows various information about your system. + +WWW: http://gdesklets.gnomedesktop.org/ diff --git a/sysutils/gdesklets-sysinfo/pkg-message b/sysutils/gdesklets-sysinfo/pkg-message new file mode 100644 index 0000000..3fc99ed --- /dev/null +++ b/sysutils/gdesklets-sysinfo/pkg-message @@ -0,0 +1,14 @@ +## +To view all installed applets: + + ls ${PREFIX}/share/gnome/gdesklets/Displays + +To use those applets: + + gdesklets ${PREFIX}/share/gnome/gdesklets/Displays/${name}/${name}.display + +Replace ${name} with the correct name of the applets you want to use. + +NOTE: Be sure to login as your user when you use the gdesklets command, + as the configuration will be stored in the ~/.gdesklets/ directory. +## diff --git a/sysutils/gdesklets-sysinfo/pkg-plist b/sysutils/gdesklets-sysinfo/pkg-plist new file mode 100644 index 0000000..5735ef9 --- /dev/null +++ b/sysutils/gdesklets-sysinfo/pkg-plist @@ -0,0 +1,22 @@ +share/gnome/gdesklets/Displays/SysInfo/gfx/bg.png +share/gnome/gdesklets/Displays/SysInfo/gfx/border-left.png +share/gnome/gdesklets/Displays/SysInfo/gfx/border-right.png +share/gnome/gdesklets/Displays/SysInfo/gfx/border-top.png +share/gnome/gdesklets/Displays/SysInfo/gfx/border-topleft.png +share/gnome/gdesklets/Displays/SysInfo/gfx/gauge-bg.png +share/gnome/gdesklets/Displays/SysInfo/gfx/gauge.png +share/gnome/gdesklets/Displays/SysInfo/gfx/gauge_h.png +share/gnome/gdesklets/Displays/SysInfo/sysinfo.display +share/gnome/gdesklets/Displays/SysInfo/AUTHORS +share/gnome/gdesklets/Displays/SysInfo/ChangeLog +share/gnome/gdesklets/Sensors/SysInfo/__init__.py +share/gnome/gdesklets/Sensors/SysInfo/gfx/SysInfo.png +share/gnome/gdesklets/Sensors/SysInfo/gfx/boot.png +share/gnome/gdesklets/Sensors/SysInfo/gfx/cpu.png +share/gnome/gdesklets/Sensors/SysInfo/gfx/hdd.png +share/gnome/gdesklets/Sensors/SysInfo/gfx/memory.png +share/gnome/gdesklets/Sensors/SysInfo/gfx/network.png +@dirrm share/gnome/gdesklets/Sensors/SysInfo/gfx +@dirrm share/gnome/gdesklets/Sensors/SysInfo +@dirrm share/gnome/gdesklets/Displays/SysInfo/gfx +@dirrm share/gnome/gdesklets/Displays/SysInfo |