1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

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>
This commit is contained in:
Ying-Chieh Liao 2002-03-15 05:16:19 +00:00
parent 343495a317
commit b62c7782ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56122
19 changed files with 631 additions and 0 deletions

View File

@ -294,6 +294,7 @@
SUBDIR += peacock
SUBDIR += pgdriver
SUBDIR += php-templates
SUBDIR += phpSysInfo
SUBDIR += phpnuke
SUBDIR += plugger
SUBDIR += pruby

33
www/phpSysInfo/Makefile Normal file
View File

@ -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>

1
www/phpSysInfo/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (phpSysInfo-2.0.tar.gz) = 1e09722a08403e28565971e894ade748

View File

@ -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 ()

View File

@ -0,0 +1 @@
A php script that displays info about the host being accessed

7
www/phpSysInfo/pkg-descr Normal file
View File

@ -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>

141
www/phpSysInfo/pkg-plist Normal file
View File

@ -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%%

View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (phpSysInfo-2.0.tar.gz) = 1e09722a08403e28565971e894ade748

View File

@ -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 ()

View File

@ -0,0 +1 @@
A php script that displays info about the host being accessed

View File

@ -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>

View File

@ -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%%

33
www/phpsysinfo/Makefile Normal file
View File

@ -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>

1
www/phpsysinfo/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (phpSysInfo-2.0.tar.gz) = 1e09722a08403e28565971e894ade748

View File

@ -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 ()

View File

@ -0,0 +1 @@
A php script that displays info about the host being accessed

7
www/phpsysinfo/pkg-descr Normal file
View File

@ -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>

141
www/phpsysinfo/pkg-plist Normal file
View File

@ -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%%