aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-12-18 04:50:39 +0800
committermarcus <marcus@FreeBSD.org>2003-12-18 04:50:39 +0800
commit21c2ab103cd8b181aa0fff75383ae95d1f2a1f17 (patch)
tree8b89ffb3209dfba1aac33e03349a940b915bd500 /net
parentfe4387955f307c2f7f2744cfc580d3a4be1d60bf (diff)
downloadfreebsd-ports-gnome-21c2ab103cd8b181aa0fff75383ae95d1f2a1f17.tar.gz
freebsd-ports-gnome-21c2ab103cd8b181aa0fff75383ae95d1f2a1f17.tar.zst
freebsd-ports-gnome-21c2ab103cd8b181aa0fff75383ae95d1f2a1f17.zip
Add gdesklets-sensor-psi_network, a network scanning backend sensor for
gDesklets from the PSI project. PR: 59823 Submitted by: Franz Klammer <klammer@webonaut.com>
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/gdesklets-sensor-psi_network/Makefile43
-rw-r--r--net/gdesklets-sensor-psi_network/distinfo1
-rw-r--r--net/gdesklets-sensor-psi_network/files/patch-Install_Network_Sensor.bin19
-rw-r--r--net/gdesklets-sensor-psi_network/pkg-descr3
-rw-r--r--net/gdesklets-sensor-psi_network/pkg-message8
-rw-r--r--net/gdesklets-sensor-psi_network/pkg-plist5
7 files changed, 80 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 278ef8d62c3c..233f8601e660 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -156,6 +156,7 @@
SUBDIR += gaim
SUBDIR += gale
SUBDIR += gatekeeper
+ SUBDIR += gdesklets-sensor-psi_network
SUBDIR += gdesklets-sensor-psi_ping
SUBDIR += generic-nqs
SUBDIR += geotrace
diff --git a/net/gdesklets-sensor-psi_network/Makefile b/net/gdesklets-sensor-psi_network/Makefile
new file mode 100644
index 000000000000..d681453ea1b6
--- /dev/null
+++ b/net/gdesklets-sensor-psi_network/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: gdesklets-sensor-psi_network
+# Date created: 20 September 2003
+# Whom: Franz Klammer <klammer@webonaut.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= network
+PORTVERSION= 0.2.0
+CATEGORIES= net gnome
+MASTER_SITES= http://gdesklets.gnomedesktop.org/files/
+PKGNAMEPREFIX= gdesklets-sensor-psi_
+DISTNAME= PsiSensorPackage-${DISTVERSION}
+
+MAINTAINER= klammer@webonaut.com
+COMMENT= Network 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= Network
+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/net/gdesklets-sensor-psi_network/distinfo b/net/gdesklets-sensor-psi_network/distinfo
new file mode 100644
index 000000000000..bf4d02f7d5c7
--- /dev/null
+++ b/net/gdesklets-sensor-psi_network/distinfo
@@ -0,0 +1 @@
+MD5 (PsiSensorPackage-20031028.tar.bz2) = 24c891e1d0f66426040b4e4fb618f9f5
diff --git a/net/gdesklets-sensor-psi_network/files/patch-Install_Network_Sensor.bin b/net/gdesklets-sensor-psi_network/files/patch-Install_Network_Sensor.bin
new file mode 100644
index 000000000000..a5bb98ad6eff
--- /dev/null
+++ b/net/gdesklets-sensor-psi_network/files/patch-Install_Network_Sensor.bin
@@ -0,0 +1,19 @@
+--- Install_Network_Sensor.bin.orig Wed Nov 19 18:34:09 2003
++++ Install_Network_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/net/gdesklets-sensor-psi_network/pkg-descr b/net/gdesklets-sensor-psi_network/pkg-descr
new file mode 100644
index 000000000000..d6462c11de81
--- /dev/null
+++ b/net/gdesklets-sensor-psi_network/pkg-descr
@@ -0,0 +1,3 @@
+Network Sensor from the Psi Sensor Package.
+
+WWW: http://gdesklets.gnomedesktop.org/
diff --git a/net/gdesklets-sensor-psi_network/pkg-message b/net/gdesklets-sensor-psi_network/pkg-message
new file mode 100644
index 000000000000..200d04c8b431
--- /dev/null
+++ b/net/gdesklets-sensor-psi_network/pkg-message
@@ -0,0 +1,8 @@
+##
+To view the README, do the command following:
+
+ cat ${PREFIX}/share/gnome/gdesklets/Sensors/Network/README
+
+This is just a sensor, to actually see the data it collects, you have to install
+an appropriate display plugin.
+##
diff --git a/net/gdesklets-sensor-psi_network/pkg-plist b/net/gdesklets-sensor-psi_network/pkg-plist
new file mode 100644
index 000000000000..df9a58e8cef7
--- /dev/null
+++ b/net/gdesklets-sensor-psi_network/pkg-plist
@@ -0,0 +1,5 @@
+share/gnome/gdesklets/Sensors/Network/__init__.py
+share/gnome/gdesklets/Sensors/Network/__init__.pyc
+share/gnome/gdesklets/Sensors/Network/__init__.pyo
+share/gnome/gdesklets/Sensors/Network/README
+@dirrm share/gnome/gdesklets/Sensors/Network