Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  5 Mar 2002 23:43:55 -0600 (CST)
From:      Bob Bomar <bob@fly.homeunix.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/35581: New Port: phpSysInfo
Message-ID:  <20020306054355.877A55C56@fly.homeunix.org>

next in thread | raw e-mail | index | archive | help

>Number:         35581
>Category:       ports
>Synopsis:       New Port: phpSysInfo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 05 21:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Bob Bomar
>Release:        FreeBSD 4.5-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD fly.homeunix.org 4.5-RELEASE-p1 FreeBSD 4.5-RELEASE-p1 #0: Tue Mar 5 08:38:02 CST 2002 root@fly.homeunix.org:/usr/obj/usr/src/sys/GENERIC i386


>Description:
	phpSysInfo is a PHP script that displays infromation about the host 
being contacted.

 	This PR superscedes ports/35548

>How-To-Repeat:
	
>Fix:

	


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	www/phpSysInfo/
#	www/phpSysInfo/pkg-plist
#	www/phpSysInfo/pkg-descr
#	www/phpSysInfo/pkg-comment
#	www/phpSysInfo/Makefile
#	www/phpSysInfo/distinfo
#	www/phpSysInfo/files
#	www/phpSysInfo/files/patch-includes-os-class.BSD.common.inc.php
#
echo c - www/phpSysInfo/
mkdir -p www/phpSysInfo/ > /dev/null 2>&1
echo x - www/phpSysInfo/pkg-plist
sed 's/^X//' >www/phpSysInfo/pkg-plist << 'END-of-www/phpSysInfo/pkg-plist'
X%%INSTALLDIR%%/COPYING
X%%INSTALLDIR%%/ChangeLog
X%%INSTALLDIR%%/INSTALL
X%%INSTALLDIR%%/README
X%%INSTALLDIR%%/includes/class.Template.inc.php
X%%INSTALLDIR%%/includes/common_functions.php
X%%INSTALLDIR%%/includes/lang/big5.php
X%%INSTALLDIR%%/includes/lang/br.php
X%%INSTALLDIR%%/includes/lang/ca.php
X%%INSTALLDIR%%/includes/lang/cs.php
X%%INSTALLDIR%%/includes/lang/ct.php
X%%INSTALLDIR%%/includes/lang/da.php
X%%INSTALLDIR%%/includes/lang/de.php
X%%INSTALLDIR%%/includes/lang/en.php
X%%INSTALLDIR%%/includes/lang/es.php
X%%INSTALLDIR%%/includes/lang/et.php
X%%INSTALLDIR%%/includes/lang/fi.php
X%%INSTALLDIR%%/includes/lang/fr.php
X%%INSTALLDIR%%/includes/lang/id.php
X%%INSTALLDIR%%/includes/lang/is.php
X%%INSTALLDIR%%/includes/lang/it.php
X%%INSTALLDIR%%/includes/lang/kr.php
X%%INSTALLDIR%%/includes/lang/lt.php
X%%INSTALLDIR%%/includes/lang/nl.php
X%%INSTALLDIR%%/includes/lang/no.php
X%%INSTALLDIR%%/includes/lang/pl.php
X%%INSTALLDIR%%/includes/lang/ro.php
X%%INSTALLDIR%%/includes/lang/sk.php
X%%INSTALLDIR%%/includes/lang/sv.php
X%%INSTALLDIR%%/includes/lang/tw.php
X%%INSTALLDIR%%/includes/os/class.BSD.common.inc.php
X%%INSTALLDIR%%/includes/os/class.BSD.common.inc.php.orig
X%%INSTALLDIR%%/includes/os/class.Darwin.inc.php
X%%INSTALLDIR%%/includes/os/class.FreeBSD.inc.php
X%%INSTALLDIR%%/includes/os/class.Linux.inc.php
X%%INSTALLDIR%%/includes/os/class.NetBSD.inc.php
X%%INSTALLDIR%%/includes/os/class.OpenBSD.inc.php
X%%INSTALLDIR%%/includes/system_footer.php
X%%INSTALLDIR%%/includes/system_header.php
X%%INSTALLDIR%%/includes/tables/filesystems.php
X%%INSTALLDIR%%/includes/tables/hardware.php
X%%INSTALLDIR%%/includes/tables/memory.php
X%%INSTALLDIR%%/includes/tables/network.php
X%%INSTALLDIR%%/includes/tables/vitals.php
X%%INSTALLDIR%%/index.php
X%%INSTALLDIR%%/templates/aq/aq.css
X%%INSTALLDIR%%/templates/aq/box.tpl
X%%INSTALLDIR%%/templates/aq/form.tpl
X%%INSTALLDIR%%/templates/aq/images/aq_background.gif
X%%INSTALLDIR%%/templates/aq/images/bar_left.gif
X%%INSTALLDIR%%/templates/aq/images/bar_middle.gif
X%%INSTALLDIR%%/templates/aq/images/bar_right.gif
X%%INSTALLDIR%%/templates/aq/images/coininfd.gif
X%%INSTALLDIR%%/templates/aq/images/coininfg.gif
X%%INSTALLDIR%%/templates/aq/images/coinsupd.gif
X%%INSTALLDIR%%/templates/aq/images/coinsupg.gif
X%%INSTALLDIR%%/templates/aq/images/d.gif
X%%INSTALLDIR%%/templates/aq/images/fond.gif
X%%INSTALLDIR%%/templates/aq/images/g.gif
X%%INSTALLDIR%%/templates/aq/images/inf.gif
X%%INSTALLDIR%%/templates/aq/images/redbar_left.gif
X%%INSTALLDIR%%/templates/aq/images/redbar_middle.gif
X%%INSTALLDIR%%/templates/aq/images/redbar_right.gif
X%%INSTALLDIR%%/templates/aq/images/space15_15.gif
X%%INSTALLDIR%%/templates/aq/images/sup.gif
X%%INSTALLDIR%%/templates/black/black.css
X%%INSTALLDIR%%/templates/black/box.tpl
X%%INSTALLDIR%%/templates/black/form.tpl
X%%INSTALLDIR%%/templates/black/images/aq_background.gif
X%%INSTALLDIR%%/templates/black/images/bar_left.gif
X%%INSTALLDIR%%/templates/black/images/bar_middle.gif
X%%INSTALLDIR%%/templates/black/images/bar_right.gif
X%%INSTALLDIR%%/templates/black/images/coininfd.gif
X%%INSTALLDIR%%/templates/black/images/coininfg.gif
X%%INSTALLDIR%%/templates/black/images/coinsupd.gif
X%%INSTALLDIR%%/templates/black/images/coinsupg.gif
X%%INSTALLDIR%%/templates/black/images/d.gif
X%%INSTALLDIR%%/templates/black/images/fond.gif
X%%INSTALLDIR%%/templates/black/images/g.gif
X%%INSTALLDIR%%/templates/black/images/inf.gif
X%%INSTALLDIR%%/templates/black/images/redbar_left.gif
X%%INSTALLDIR%%/templates/black/images/redbar_middle.gif
X%%INSTALLDIR%%/templates/black/images/redbar_right.gif
X%%INSTALLDIR%%/templates/black/images/space15_15.gif
X%%INSTALLDIR%%/templates/black/images/sup.gif
X%%INSTALLDIR%%/templates/blue/blue.css
X%%INSTALLDIR%%/templates/blue/box.tpl
X%%INSTALLDIR%%/templates/blue/form.tpl
X%%INSTALLDIR%%/templates/blue/images/bar_left.gif
X%%INSTALLDIR%%/templates/blue/images/bar_middle.gif
X%%INSTALLDIR%%/templates/blue/images/bar_right.gif
X%%INSTALLDIR%%/templates/blue/images/redbar_left.gif
X%%INSTALLDIR%%/templates/blue/images/redbar_middle.gif
X%%INSTALLDIR%%/templates/blue/images/redbar_right.gif
X%%INSTALLDIR%%/templates/blue/images/trans.gif
X%%INSTALLDIR%%/templates/classic/box.tpl
X%%INSTALLDIR%%/templates/classic/classic.css
X%%INSTALLDIR%%/templates/classic/form.tpl
X%%INSTALLDIR%%/templates/classic/images/bar_left.gif
X%%INSTALLDIR%%/templates/classic/images/bar_middle.gif
X%%INSTALLDIR%%/templates/classic/images/bar_right.gif
X%%INSTALLDIR%%/templates/classic/images/redbar_left.gif
X%%INSTALLDIR%%/templates/classic/images/redbar_middle.gif
X%%INSTALLDIR%%/templates/classic/images/redbar_right.gif
X%%INSTALLDIR%%/templates/classic/images/trans.gif
X%%INSTALLDIR%%/templates/metal/box.tpl
X%%INSTALLDIR%%/templates/metal/form.tpl
X%%INSTALLDIR%%/templates/metal/images/bar_left.gif
X%%INSTALLDIR%%/templates/metal/images/bar_middle.gif
X%%INSTALLDIR%%/templates/metal/images/bar_right.gif
X%%INSTALLDIR%%/templates/metal/images/coininfd.gif
X%%INSTALLDIR%%/templates/metal/images/coininfg.gif
X%%INSTALLDIR%%/templates/metal/images/coinsupd.gif
X%%INSTALLDIR%%/templates/metal/images/coinsupg.gif
X%%INSTALLDIR%%/templates/metal/images/d.gif
X%%INSTALLDIR%%/templates/metal/images/fond.gif
X%%INSTALLDIR%%/templates/metal/images/g.gif
X%%INSTALLDIR%%/templates/metal/images/inf.gif
X%%INSTALLDIR%%/templates/metal/images/metal_background.gif
X%%INSTALLDIR%%/templates/metal/images/redbar_left.gif
X%%INSTALLDIR%%/templates/metal/images/redbar_middle.gif
X%%INSTALLDIR%%/templates/metal/images/redbar_right.gif
X%%INSTALLDIR%%/templates/metal/images/space15_15.gif
X%%INSTALLDIR%%/templates/metal/images/sup.gif
X%%INSTALLDIR%%/templates/metal/metal.css
X@dirrm %%INSTALLDIR%%/templates/metal/images
X@dirrm %%INSTALLDIR%%/templates/metal
X@dirrm %%INSTALLDIR%%/templates/classic/images
X@dirrm %%INSTALLDIR%%/templates/classic
X@dirrm %%INSTALLDIR%%/templates/blue/images
X@dirrm %%INSTALLDIR%%/templates/blue
X@dirrm %%INSTALLDIR%%/templates/black/images
X@dirrm %%INSTALLDIR%%/templates/black
X@dirrm %%INSTALLDIR%%/templates/aq/images
X@dirrm %%INSTALLDIR%%/templates/aq
X@dirrm %%INSTALLDIR%%/templates
X@dirrm %%INSTALLDIR%%/includes/tables
X@dirrm %%INSTALLDIR%%/includes/os
X@dirrm %%INSTALLDIR%%/includes/lang
X@dirrm %%INSTALLDIR%%/includes
X@dirrm %%INSTALLDIR%%
END-of-www/phpSysInfo/pkg-plist
echo x - www/phpSysInfo/pkg-descr
sed 's/^X//' >www/phpSysInfo/pkg-descr << 'END-of-www/phpSysInfo/pkg-descr'
XPhpSysInfo is a PHP script that displays infromation about the host being 
Xaccessed.  It will display things like Uptime, CPU, Memory, SCSI, IDE, PCI, 
XEthernet, Floppy, and Video Infromation.  It can be customized.  
X
XWWW: http://sourceforge.projects/phpsysinfo/
X
X	-Bob Bomar <bob@fly.homeunix.org>
END-of-www/phpSysInfo/pkg-descr
echo x - www/phpSysInfo/pkg-comment
sed 's/^X//' >www/phpSysInfo/pkg-comment << 'END-of-www/phpSysInfo/pkg-comment'
XphpSysInfo is a php script that displays info about the host being accessed
END-of-www/phpSysInfo/pkg-comment
echo x - www/phpSysInfo/Makefile
sed 's/^X//' >www/phpSysInfo/Makefile << 'END-of-www/phpSysInfo/Makefile'
X# New ports collection makefile for:	phpSysInfo
X# Date created:				Mon Mar 04, 2002
X# Whom:					Bob Bomar <bob@fly.homeunix.org>
X#
X# $FreeBSD$
X
XPORTNAME=	phpSysInfo
XPORTVERSION=	2.0
XCATEGORIES=	www
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	phpsysinfo	
X
XMAINTAINER=	bob@fly.homeunix.org
X
XRUN_DEPENDS=	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
X
XPREFIX=		${LOCALBASE}
XWEBOWN?=	www
XWEBGRP?=	www
XAPACHEDIR=	${PREFIX}/www/data
XINSTALLDIR=	${APACHEDIR}/phpSysInfo
XNO_BUILD=	yes
X
XPLIST_SUB+=	INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,}
X
X
Xdo-install:
X	${MKDIR} ${INSTALLDIR}
X	cd ${WRKSRC}; ${FIND} . \
X		| cpio -pdm -R ${WEBOWN}:${WEBGRP} ${INSTALLDIR}
X	${CHMOD} -R ${BINMODE} ${INSTALLDIR}
X	${FIND} ${INSTALLDIR} ! -type d | ${XARGS} ${CHMOD} ${NOBINMODE}
X
X.include <bsd.port.mk>
END-of-www/phpSysInfo/Makefile
echo x - www/phpSysInfo/distinfo
sed 's/^X//' >www/phpSysInfo/distinfo << 'END-of-www/phpSysInfo/distinfo'
XMD5 (phpSysInfo-2.0.tar.gz) = 1e09722a08403e28565971e894ade748
END-of-www/phpSysInfo/distinfo
echo c - www/phpSysInfo/files
mkdir -p www/phpSysInfo/files > /dev/null 2>&1
echo x - www/phpSysInfo/files/patch-includes-os-class.BSD.common.inc.php
sed 's/^X//' >www/phpSysInfo/files/patch-includes-os-class.BSD.common.inc.php << 'END-of-www/phpSysInfo/files/patch-includes-os-class.BSD.common.inc.php'
XIndex: includes/os/class.BSD.common.inc.php
X==================================================================XRCS file: /cvsroot/phpsysinfo/phpsysinfo-dev/includes/os/class.BSD.common.inc.php,v
Xretrieving revision 1.4
Xdiff -u -3 -r1.4 class.BSD.common.inc.php
X--- includes/os/class.BSD.common.inc.php	4 Feb 2002 01:27:30 -0000	1.4
X+++ includes/os/class.BSD.common.inc.php	17 Feb 2002 06:50:27 -0000
X@@ -179,14 +179,17 @@
X                 $results[$s]['model'] = $ar_buf[3];
X                 $results[$s]['media'] = 'Hard Disk';
X                 $results[$s]['capacity'] = $ar_buf[2] * 2048 * 1.049;
X-            }
X-            if (preg_match('/^(acd[0-9]): (.*) <(.*)> (.*)/', $buf, $ar_buf)) {
X+            } else
X+	    if (preg_match('/^(acd[0-9]): (.*) <(.*)> (.*)/', $buf, $ar_buf)) {
X                 $s = $ar_buf[1];
X                 $results[$s]['model'] = $ar_buf[3];
X                 $results[$s]['media'] = 'CD-ROM';
X             }
X         }
X-        return array_values(array_unique($results));
X+        //return array_values(array_unique($results));
X+	//1. more useful to have device names
X+	//2. php 4.1.1 array_unique() deletes non-unique values.
X+	return $results;
X     }
X 
X     function memory ()
END-of-www/phpSysInfo/files/patch-includes-os-class.BSD.common.inc.php
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020306054355.877A55C56>