diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-11-18 17:39:47 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2003-11-18 17:39:47 +0000 |
commit | 1db55f32551792c6a97f312cddfa7c97358781d2 (patch) | |
tree | 9494d1c0633b6ad39e804816eb4a0526e382ff98 /sysutils/gdesklets-sysinfo | |
parent | Update to 2.0.2. (diff) |
Add gdesklets-sysinfo, a plug-in for gdesklets that shows various system
information.
PR: 59415
Submitted by: Franz Klammer <klammer@webonaut.com>
Notes
Notes:
svn path=/head/; revision=94283
Diffstat (limited to 'sysutils/gdesklets-sysinfo')
-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 |
7 files changed, 144 insertions, 0 deletions
diff --git a/sysutils/gdesklets-sysinfo/Makefile b/sysutils/gdesklets-sysinfo/Makefile new file mode 100644 index 000000000000..9a9aed8a8e2e --- /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 000000000000..9947136f7ba7 --- /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 000000000000..08c9dcfea3b4 --- /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 000000000000..f11f498e14b5 --- /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 000000000000..f3c75f06f2e7 --- /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 000000000000..3fc99edbeaaa --- /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 000000000000..5735ef9e15d9 --- /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 |