aboutsummaryrefslogtreecommitdiffstats
path: root/www/phpSysInfo
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-03-15 13:16:19 +0800
committerijliao <ijliao@FreeBSD.org>2002-03-15 13:16:19 +0800
commit4128fd86c18d6a65026649a5d8ade54bedd5f64a (patch)
treedd3000bdb4f11004fcef1867c6a1fbe9dc500691 /www/phpSysInfo
parentd69ca7c9862f6feab4682fa96d6f6357ab0f0d78 (diff)
downloadfreebsd-ports-gnome-4128fd86c18d6a65026649a5d8ade54bedd5f64a.tar.gz
freebsd-ports-gnome-4128fd86c18d6a65026649a5d8ade54bedd5f64a.tar.zst
freebsd-ports-gnome-4128fd86c18d6a65026649a5d8ade54bedd5f64a.zip
add phpSysInfo 2.0
A php script that displays info about the host being accessed PR: 35581 Submitted by: Bob Bomar <bob@fly.homeunix.org>
Diffstat (limited to 'www/phpSysInfo')
-rw-r--r--www/phpSysInfo/Makefile33
-rw-r--r--www/phpSysInfo/distinfo1
-rw-r--r--www/phpSysInfo/files/patch-includes-os-class.BSD.common.inc.php27
-rw-r--r--www/phpSysInfo/pkg-comment1
-rw-r--r--www/phpSysInfo/pkg-descr7
-rw-r--r--www/phpSysInfo/pkg-plist141
6 files changed, 210 insertions, 0 deletions
diff --git a/www/phpSysInfo/Makefile b/www/phpSysInfo/Makefile
new file mode 100644
index 000000000000..9acb987a0dac
--- /dev/null
+++ b/www/phpSysInfo/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: phpSysInfo
+# Date created: Mon Mar 04, 2002
+# Whom: Bob Bomar <bob@fly.homeunix.org>
+#
+# $FreeBSD$
+
+PORTNAME= phpSysInfo
+PORTVERSION= 2.0
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= phpsysinfo
+
+MAINTAINER= bob@fly.homeunix.org
+
+RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
+
+PREFIX= ${LOCALBASE}
+WEBOWN?= www
+WEBGRP?= www
+APACHEDIR= ${PREFIX}/www/data
+INSTALLDIR= ${APACHEDIR}/phpSysInfo
+NO_BUILD= yes
+
+PLIST_SUB+= INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,}
+
+do-install:
+ ${MKDIR} ${INSTALLDIR}
+ cd ${WRKSRC}; ${FIND} . \
+ | cpio -pdm -R ${WEBOWN}:${WEBGRP} ${INSTALLDIR}
+ ${CHMOD} -R ${BINMODE} ${INSTALLDIR}
+ ${FIND} ${INSTALLDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
+
+.include <bsd.port.mk>
diff --git a/www/phpSysInfo/distinfo b/www/phpSysInfo/distinfo
new file mode 100644
index 000000000000..6f616e809091
--- /dev/null
+++ b/www/phpSysInfo/distinfo
@@ -0,0 +1 @@
+MD5 (phpSysInfo-2.0.tar.gz) = 1e09722a08403e28565971e894ade748
diff --git a/www/phpSysInfo/files/patch-includes-os-class.BSD.common.inc.php b/www/phpSysInfo/files/patch-includes-os-class.BSD.common.inc.php
new file mode 100644
index 000000000000..3758d732942b
--- /dev/null
+++ b/www/phpSysInfo/files/patch-includes-os-class.BSD.common.inc.php
@@ -0,0 +1,27 @@
+Index: includes/os/class.BSD.common.inc.php
+==================================================================XRCS file: /cvsroot/phpsysinfo/phpsysinfo-dev/includes/os/class.BSD.common.inc.php,v
+retrieving revision 1.4
+diff -u -3 -r1.4 class.BSD.common.inc.php
+--- includes/os/class.BSD.common.inc.php 4 Feb 2002 01:27:30 -0000 1.4
++++ includes/os/class.BSD.common.inc.php 17 Feb 2002 06:50:27 -0000
+@@ -179,14 +179,17 @@
+ $results[$s]['model'] = $ar_buf[3];
+ $results[$s]['media'] = 'Hard Disk';
+ $results[$s]['capacity'] = $ar_buf[2] * 2048 * 1.049;
+- }
+- if (preg_match('/^(acd[0-9]): (.*) <(.*)> (.*)/', $buf, $ar_buf)) {
++ } else
++ if (preg_match('/^(acd[0-9]): (.*) <(.*)> (.*)/', $buf, $ar_buf)) {
+ $s = $ar_buf[1];
+ $results[$s]['model'] = $ar_buf[3];
+ $results[$s]['media'] = 'CD-ROM';
+ }
+ }
+- return array_values(array_unique($results));
++ //return array_values(array_unique($results));
++ //1. more useful to have device names
++ //2. php 4.1.1 array_unique() deletes non-unique values.
++ return $results;
+ }
+
+ function memory ()
diff --git a/www/phpSysInfo/pkg-comment b/www/phpSysInfo/pkg-comment
new file mode 100644
index 000000000000..f5963b8859c5
--- /dev/null
+++ b/www/phpSysInfo/pkg-comment
@@ -0,0 +1 @@
+A php script that displays info about the host being accessed
diff --git a/www/phpSysInfo/pkg-descr b/www/phpSysInfo/pkg-descr
new file mode 100644
index 000000000000..9f1cca211b64
--- /dev/null
+++ b/www/phpSysInfo/pkg-descr
@@ -0,0 +1,7 @@
+PhpSysInfo is a PHP script that displays infromation about the host being
+accessed. It will display things like Uptime, CPU, Memory, SCSI, IDE, PCI,
+Ethernet, Floppy, and Video Infromation. It can be customized.
+
+WWW: http://sourceforge.projects/phpsysinfo/
+
+ -Bob Bomar <bob@fly.homeunix.org>
diff --git a/www/phpSysInfo/pkg-plist b/www/phpSysInfo/pkg-plist
new file mode 100644
index 000000000000..f477c065b72a
--- /dev/null
+++ b/www/phpSysInfo/pkg-plist
@@ -0,0 +1,141 @@
+%%INSTALLDIR%%/COPYING
+%%INSTALLDIR%%/ChangeLog
+%%INSTALLDIR%%/INSTALL
+%%INSTALLDIR%%/README
+%%INSTALLDIR%%/includes/class.Template.inc.php
+%%INSTALLDIR%%/includes/common_functions.php
+%%INSTALLDIR%%/includes/lang/big5.php
+%%INSTALLDIR%%/includes/lang/br.php
+%%INSTALLDIR%%/includes/lang/ca.php
+%%INSTALLDIR%%/includes/lang/cs.php
+%%INSTALLDIR%%/includes/lang/ct.php
+%%INSTALLDIR%%/includes/lang/da.php
+%%INSTALLDIR%%/includes/lang/de.php
+%%INSTALLDIR%%/includes/lang/en.php
+%%INSTALLDIR%%/includes/lang/es.php
+%%INSTALLDIR%%/includes/lang/et.php
+%%INSTALLDIR%%/includes/lang/fi.php
+%%INSTALLDIR%%/includes/lang/fr.php
+%%INSTALLDIR%%/includes/lang/id.php
+%%INSTALLDIR%%/includes/lang/is.php
+%%INSTALLDIR%%/includes/lang/it.php
+%%INSTALLDIR%%/includes/lang/kr.php
+%%INSTALLDIR%%/includes/lang/lt.php
+%%INSTALLDIR%%/includes/lang/nl.php
+%%INSTALLDIR%%/includes/lang/no.php
+%%INSTALLDIR%%/includes/lang/pl.php
+%%INSTALLDIR%%/includes/lang/ro.php
+%%INSTALLDIR%%/includes/lang/sk.php
+%%INSTALLDIR%%/includes/lang/sv.php
+%%INSTALLDIR%%/includes/lang/tw.php
+%%INSTALLDIR%%/includes/os/class.BSD.common.inc.php
+%%INSTALLDIR%%/includes/os/class.BSD.common.inc.php.orig
+%%INSTALLDIR%%/includes/os/class.Darwin.inc.php
+%%INSTALLDIR%%/includes/os/class.FreeBSD.inc.php
+%%INSTALLDIR%%/includes/os/class.Linux.inc.php
+%%INSTALLDIR%%/includes/os/class.NetBSD.inc.php
+%%INSTALLDIR%%/includes/os/class.OpenBSD.inc.php
+%%INSTALLDIR%%/includes/system_footer.php
+%%INSTALLDIR%%/includes/system_header.php
+%%INSTALLDIR%%/includes/tables/filesystems.php
+%%INSTALLDIR%%/includes/tables/hardware.php
+%%INSTALLDIR%%/includes/tables/memory.php
+%%INSTALLDIR%%/includes/tables/network.php
+%%INSTALLDIR%%/includes/tables/vitals.php
+%%INSTALLDIR%%/index.php
+%%INSTALLDIR%%/templates/aq/aq.css
+%%INSTALLDIR%%/templates/aq/box.tpl
+%%INSTALLDIR%%/templates/aq/form.tpl
+%%INSTALLDIR%%/templates/aq/images/aq_background.gif
+%%INSTALLDIR%%/templates/aq/images/bar_left.gif
+%%INSTALLDIR%%/templates/aq/images/bar_middle.gif
+%%INSTALLDIR%%/templates/aq/images/bar_right.gif
+%%INSTALLDIR%%/templates/aq/images/coininfd.gif
+%%INSTALLDIR%%/templates/aq/images/coininfg.gif
+%%INSTALLDIR%%/templates/aq/images/coinsupd.gif
+%%INSTALLDIR%%/templates/aq/images/coinsupg.gif
+%%INSTALLDIR%%/templates/aq/images/d.gif
+%%INSTALLDIR%%/templates/aq/images/fond.gif
+%%INSTALLDIR%%/templates/aq/images/g.gif
+%%INSTALLDIR%%/templates/aq/images/inf.gif
+%%INSTALLDIR%%/templates/aq/images/redbar_left.gif
+%%INSTALLDIR%%/templates/aq/images/redbar_middle.gif
+%%INSTALLDIR%%/templates/aq/images/redbar_right.gif
+%%INSTALLDIR%%/templates/aq/images/space15_15.gif
+%%INSTALLDIR%%/templates/aq/images/sup.gif
+%%INSTALLDIR%%/templates/black/black.css
+%%INSTALLDIR%%/templates/black/box.tpl
+%%INSTALLDIR%%/templates/black/form.tpl
+%%INSTALLDIR%%/templates/black/images/aq_background.gif
+%%INSTALLDIR%%/templates/black/images/bar_left.gif
+%%INSTALLDIR%%/templates/black/images/bar_middle.gif
+%%INSTALLDIR%%/templates/black/images/bar_right.gif
+%%INSTALLDIR%%/templates/black/images/coininfd.gif
+%%INSTALLDIR%%/templates/black/images/coininfg.gif
+%%INSTALLDIR%%/templates/black/images/coinsupd.gif
+%%INSTALLDIR%%/templates/black/images/coinsupg.gif
+%%INSTALLDIR%%/templates/black/images/d.gif
+%%INSTALLDIR%%/templates/black/images/fond.gif
+%%INSTALLDIR%%/templates/black/images/g.gif
+%%INSTALLDIR%%/templates/black/images/inf.gif
+%%INSTALLDIR%%/templates/black/images/redbar_left.gif
+%%INSTALLDIR%%/templates/black/images/redbar_middle.gif
+%%INSTALLDIR%%/templates/black/images/redbar_right.gif
+%%INSTALLDIR%%/templates/black/images/space15_15.gif
+%%INSTALLDIR%%/templates/black/images/sup.gif
+%%INSTALLDIR%%/templates/blue/blue.css
+%%INSTALLDIR%%/templates/blue/box.tpl
+%%INSTALLDIR%%/templates/blue/form.tpl
+%%INSTALLDIR%%/templates/blue/images/bar_left.gif
+%%INSTALLDIR%%/templates/blue/images/bar_middle.gif
+%%INSTALLDIR%%/templates/blue/images/bar_right.gif
+%%INSTALLDIR%%/templates/blue/images/redbar_left.gif
+%%INSTALLDIR%%/templates/blue/images/redbar_middle.gif
+%%INSTALLDIR%%/templates/blue/images/redbar_right.gif
+%%INSTALLDIR%%/templates/blue/images/trans.gif
+%%INSTALLDIR%%/templates/classic/box.tpl
+%%INSTALLDIR%%/templates/classic/classic.css
+%%INSTALLDIR%%/templates/classic/form.tpl
+%%INSTALLDIR%%/templates/classic/images/bar_left.gif
+%%INSTALLDIR%%/templates/classic/images/bar_middle.gif
+%%INSTALLDIR%%/templates/classic/images/bar_right.gif
+%%INSTALLDIR%%/templates/classic/images/redbar_left.gif
+%%INSTALLDIR%%/templates/classic/images/redbar_middle.gif
+%%INSTALLDIR%%/templates/classic/images/redbar_right.gif
+%%INSTALLDIR%%/templates/classic/images/trans.gif
+%%INSTALLDIR%%/templates/metal/box.tpl
+%%INSTALLDIR%%/templates/metal/form.tpl
+%%INSTALLDIR%%/templates/metal/images/bar_left.gif
+%%INSTALLDIR%%/templates/metal/images/bar_middle.gif
+%%INSTALLDIR%%/templates/metal/images/bar_right.gif
+%%INSTALLDIR%%/templates/metal/images/coininfd.gif
+%%INSTALLDIR%%/templates/metal/images/coininfg.gif
+%%INSTALLDIR%%/templates/metal/images/coinsupd.gif
+%%INSTALLDIR%%/templates/metal/images/coinsupg.gif
+%%INSTALLDIR%%/templates/metal/images/d.gif
+%%INSTALLDIR%%/templates/metal/images/fond.gif
+%%INSTALLDIR%%/templates/metal/images/g.gif
+%%INSTALLDIR%%/templates/metal/images/inf.gif
+%%INSTALLDIR%%/templates/metal/images/metal_background.gif
+%%INSTALLDIR%%/templates/metal/images/redbar_left.gif
+%%INSTALLDIR%%/templates/metal/images/redbar_middle.gif
+%%INSTALLDIR%%/templates/metal/images/redbar_right.gif
+%%INSTALLDIR%%/templates/metal/images/space15_15.gif
+%%INSTALLDIR%%/templates/metal/images/sup.gif
+%%INSTALLDIR%%/templates/metal/metal.css
+@dirrm %%INSTALLDIR%%/templates/metal/images
+@dirrm %%INSTALLDIR%%/templates/metal
+@dirrm %%INSTALLDIR%%/templates/classic/images
+@dirrm %%INSTALLDIR%%/templates/classic
+@dirrm %%INSTALLDIR%%/templates/blue/images
+@dirrm %%INSTALLDIR%%/templates/blue
+@dirrm %%INSTALLDIR%%/templates/black/images
+@dirrm %%INSTALLDIR%%/templates/black
+@dirrm %%INSTALLDIR%%/templates/aq/images
+@dirrm %%INSTALLDIR%%/templates/aq
+@dirrm %%INSTALLDIR%%/templates
+@dirrm %%INSTALLDIR%%/includes/tables
+@dirrm %%INSTALLDIR%%/includes/os
+@dirrm %%INSTALLDIR%%/includes/lang
+@dirrm %%INSTALLDIR%%/includes
+@dirrm %%INSTALLDIR%%