diff options
author | marcus <marcus@FreeBSD.org> | 2003-12-18 04:52:43 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-12-18 04:52:43 +0800 |
commit | 60deadcbcc049cb8ae561084eb3a7d0ee0a2c197 (patch) | |
tree | f6aa9a61aeb2d617f32d742eb20e765e83c9edb3 /sysutils | |
parent | 6aedae2a03ec29e3f7307fc8f8ada1a3514e52b3 (diff) | |
download | freebsd-ports-gnome-60deadcbcc049cb8ae561084eb3a7d0ee0a2c197.tar.gz freebsd-ports-gnome-60deadcbcc049cb8ae561084eb3a7d0ee0a2c197.tar.zst freebsd-ports-gnome-60deadcbcc049cb8ae561084eb3a7d0ee0a2c197.zip |
Add gdesklets-sensor-psi_memory which is a memory "dip-stick" backend Sensor
for gDesklets from the PSI project.
PR: 59824
Submitted by: Franz Klammer <klammer@webonaut.com>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/gdesklets-sensor-psi_memory/Makefile | 43 | ||||
-rw-r--r-- | sysutils/gdesklets-sensor-psi_memory/distinfo | 1 | ||||
-rw-r--r-- | sysutils/gdesklets-sensor-psi_memory/files/patch-Install_Memory_Sensor.bin | 19 | ||||
-rw-r--r-- | sysutils/gdesklets-sensor-psi_memory/pkg-descr | 3 | ||||
-rw-r--r-- | sysutils/gdesklets-sensor-psi_memory/pkg-message | 8 | ||||
-rw-r--r-- | sysutils/gdesklets-sensor-psi_memory/pkg-plist | 5 |
7 files changed, 80 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 7d5a98a4458e..18c8951ae7b8 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -121,6 +121,7 @@ SUBDIR += gcombust SUBDIR += gconf-editor SUBDIR += gdesklets-multitail + SUBDIR += gdesklets-sensor-psi_memory SUBDIR += gdesklets-sysinfo SUBDIR += gfslicer SUBDIR += gkleds2 diff --git a/sysutils/gdesklets-sensor-psi_memory/Makefile b/sysutils/gdesklets-sensor-psi_memory/Makefile new file mode 100644 index 000000000000..4c56e8b0e8d5 --- /dev/null +++ b/sysutils/gdesklets-sensor-psi_memory/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: gdesklets-sensor-psi_memory +# Date created: 20 September 2003 +# Whom: Franz Klammer <klammer@webonaut.com> +# +# $FreeBSD$ +# + +PORTNAME= memory +PORTVERSION= 0.2.0 +CATEGORIES= sysutils gnome +MASTER_SITES= http://gdesklets.gnomedesktop.org/files/ +PKGNAMEPREFIX= gdesklets-sensor-psi_ +DISTNAME= PsiSensorPackage-${DISTVERSION} + +MAINTAINER= klammer@webonaut.com +COMMENT= Memory Sensor from the Psi Sensor Package + +RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gdesklets-core.pc:${PORTSDIR}/deskutils/gdesklets + +USE_BZIP2= yes +USE_PYTHON= yes +USE_X_PREFIX= yes + +DISTVERSION= 20031028 +NAME= Memory +DATADIR= ${PREFIX}/share/gnome +WRKSRC= ${WRKDIR}/${NAME}-${PORTVERSION} + +do-build: + @${WRKSRC}/Install_${NAME}_Sensor.bin --nomsg ${WRKSRC} + @${FIND} ${WRKSRC} -name '*.orig' -delete + +do-install: + @${MKDIR} ${DATADIR}/gdesklets/Sensors/${NAME} + @${INSTALL_DATA} ${WRKSRC}/${NAME}/*.py ${DATADIR}/gdesklets/Sensors/${NAME}/ + @${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}/gdesklets/Sensors/${NAME}/ + +post-install: + @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/gdesklets/Sensors/${NAME} + @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/gdesklets/Sensors/${NAME} + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/sysutils/gdesklets-sensor-psi_memory/distinfo b/sysutils/gdesklets-sensor-psi_memory/distinfo new file mode 100644 index 000000000000..bf4d02f7d5c7 --- /dev/null +++ b/sysutils/gdesklets-sensor-psi_memory/distinfo @@ -0,0 +1 @@ +MD5 (PsiSensorPackage-20031028.tar.bz2) = 24c891e1d0f66426040b4e4fb618f9f5 diff --git a/sysutils/gdesklets-sensor-psi_memory/files/patch-Install_Memory_Sensor.bin b/sysutils/gdesklets-sensor-psi_memory/files/patch-Install_Memory_Sensor.bin new file mode 100644 index 000000000000..73c03441e2b0 --- /dev/null +++ b/sysutils/gdesklets-sensor-psi_memory/files/patch-Install_Memory_Sensor.bin @@ -0,0 +1,19 @@ +--- Install_Memory_Sensor.bin.orig Wed Nov 19 18:34:09 2003 ++++ Install_Memory_Sensor.bin Wed Nov 19 18:34:26 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-sensor-psi_memory/pkg-descr b/sysutils/gdesklets-sensor-psi_memory/pkg-descr new file mode 100644 index 000000000000..88e8d7647694 --- /dev/null +++ b/sysutils/gdesklets-sensor-psi_memory/pkg-descr @@ -0,0 +1,3 @@ +Memory Sensor from the Psi Sensor Package. + +WWW: http://gdesklets.gnomedesktop.org/ diff --git a/sysutils/gdesklets-sensor-psi_memory/pkg-message b/sysutils/gdesklets-sensor-psi_memory/pkg-message new file mode 100644 index 000000000000..39ab5ef4ebce --- /dev/null +++ b/sysutils/gdesklets-sensor-psi_memory/pkg-message @@ -0,0 +1,8 @@ +## +To view the README, do the command following: + + cat ${PREFIX}/share/gnome/gdesklets/Sensors/Memory/README + +This is just a sensor, to actually see the data it collects, you have to install +an appropriate display plugin. +## diff --git a/sysutils/gdesklets-sensor-psi_memory/pkg-plist b/sysutils/gdesklets-sensor-psi_memory/pkg-plist new file mode 100644 index 000000000000..6871267bb3ab --- /dev/null +++ b/sysutils/gdesklets-sensor-psi_memory/pkg-plist @@ -0,0 +1,5 @@ +share/gnome/gdesklets/Sensors/Memory/__init__.py +share/gnome/gdesklets/Sensors/Memory/__init__.pyc +share/gnome/gdesklets/Sensors/Memory/__init__.pyo +share/gnome/gdesklets/Sensors/Memory/README +@dirrm share/gnome/gdesklets/Sensors/Memory |