1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Add gdesklets-sensor-psi_ping, a host ping backend Sensor for gDesklets from

the PSI project.

PR:		59822
Submitted by:	Franz Klammer <klammer@webonaut.com>
This commit is contained in:
Joe Marcus Clarke 2003-12-17 20:47:46 +00:00
parent 25fdb53705
commit 6dc41400ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=96101
6 changed files with 69 additions and 0 deletions

View File

@ -156,6 +156,7 @@
SUBDIR += gaim
SUBDIR += gale
SUBDIR += gatekeeper
SUBDIR += gdesklets-sensor-psi_ping
SUBDIR += generic-nqs
SUBDIR += geotrace
SUBDIR += ggsd

View File

@ -0,0 +1,41 @@
# New ports collection makefile for: gdesklets-sensor-psi_ping
# Date created: 21 September 2003
# Whom: Franz Klammer <klammer@webonaut.com>
#
# $FreeBSD$
#
PORTNAME= ping
PORTVERSION= 0.1.0
CATEGORIES= net gnome
MASTER_SITES= http://gdesklets.gnomedesktop.org/files/
PKGNAMEPREFIX= gdesklets-sensor-psi_
DISTNAME= PsiSensorPackage-${DISTVERSION}
MAINTAINER= klammer@webonaut.com
COMMENT= Ping 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= Ping
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}/
post-install:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/gdesklets/Sensors/${NAME}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${DATADIR}/gdesklets/Sensors/${NAME}
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (PsiSensorPackage-20031028.tar.bz2) = 24c891e1d0f66426040b4e4fb618f9f5

View File

@ -0,0 +1,19 @@
--- Install_Ping_Sensor.bin.orig Wed Nov 19 18:34:09 2003
+++ Install_Ping_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")

View File

@ -0,0 +1,3 @@
Ping Sensor from the Psi Sensor Package.
WWW: http://gdesklets.gnomedesktop.org/

View File

@ -0,0 +1,4 @@
share/gnome/gdesklets/Sensors/Ping/__init__.py
share/gnome/gdesklets/Sensors/Ping/__init__.pyc
share/gnome/gdesklets/Sensors/Ping/__init__.pyo
@dirrm share/gnome/gdesklets/Sensors/Ping