Moved categories; version bump for security bug #112482
authorStuart Herbert <stuart@gentoo.org>
Sun, 20 Nov 2005 11:53:16 +0000 (11:53 +0000)
committerStuart Herbert <stuart@gentoo.org>
Sun, 20 Nov 2005 11:53:16 +0000 (11:53 +0000)
Package-Manager: portage-2.0.51.22-r3

www-apps/phpsysinfo/ChangeLog [new file with mode: 0644]
www-apps/phpsysinfo/Manifest [new file with mode: 0644]
www-apps/phpsysinfo/files/digest-phpsysinfo-2.3-r2 [new file with mode: 0644]
www-apps/phpsysinfo/files/digest-phpsysinfo-2.3-r3 [new file with mode: 0644]
www-apps/phpsysinfo/files/digest-phpsysinfo-2.4.1 [new file with mode: 0644]
www-apps/phpsysinfo/files/phpsysinfo-2.3-sparc.patch [new file with mode: 0644]
www-apps/phpsysinfo/files/phpsysinfo-2.3-xss-and-path.patch [new file with mode: 0644]
www-apps/phpsysinfo/metadata.xml [new file with mode: 0644]
www-apps/phpsysinfo/phpsysinfo-2.3-r2.ebuild [new file with mode: 0644]
www-apps/phpsysinfo/phpsysinfo-2.3-r3.ebuild [new file with mode: 0644]
www-apps/phpsysinfo/phpsysinfo-2.4.1.ebuild [new file with mode: 0644]

diff --git a/www-apps/phpsysinfo/ChangeLog b/www-apps/phpsysinfo/ChangeLog
new file mode 100644 (file)
index 0000000..8f45ae1
--- /dev/null
@@ -0,0 +1,146 @@
+# ChangeLog for www-apps/phpsysinfo
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/phpsysinfo/ChangeLog,v 1.1 2005/11/20 11:53:16 stuart Exp $
+
+*phpsysinfo-2.3-r2 (20 Nov 2005)
+
+  20 Nov 2005; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+  +files/phpsysinfo-2.3-sparc.patch, +files/phpsysinfo-2.3-xss-and-path.patch,
+  +phpsysinfo-2.3-r2.ebuild, +phpsysinfo-2.4.1.ebuild:
+  Moved from dev-php/ to www-apps/ category
+  Version bump; fixes security bug #112482
+
+*phpsysinfo-2.3-r3 (25 Oct 2005)
+
+  25 Oct 2005; Renat Lumpau <rl03@gentoo.org>
+  -files/fix_memory_display_kernel2.5.diff.gz, +phpsysinfo-2.3-r3.ebuild:
+  Added bind mount patch (bug #107803), removed hard dependency on Apache (bug
+  #98640).
+
+  25 Oct 2005; Renat Lumpau <rl03@gentoo.org> metadata.xml:
+  Reassigning to web-apps
+
+  25 May 2005; Markus Rothe <corsair@gentoo.org> phpsysinfo-2.3-r2.ebuild:
+  Moved phpsysinfo-2.3-xss-and-path.patch from http source to files/, as I was
+  now able to prevent cvs from chaning the lines in the patch using 'cvs add
+  -ko'.
+
+  13 Apr 2005; Markus Rothe <corsair@gentoo.org> -phpsysinfo-2.1.ebuild,
+  -phpsysinfo-2.1-r1.ebuild, -phpsysinfo-2.1-r2.ebuild,
+  -phpsysinfo-2.2.ebuild, -phpsysinfo-2.3.ebuild, -phpsysinfo-2.3-r1.ebuild:
+  Cleanup of old ebuilds after new one is stable on all archs
+
+  12 Apr 2005; Simon Stelling <blubb@gentoo.org> phpsysinfo-2.3-r2.ebuild:
+  stable on amd64 wrt bug 86478
+
+  12 Apr 2005; Olivier Crête <tester@gentoo.org> phpsysinfo-2.3-r2.ebuild:
+  Stable on x86 per security bug #86478
+
+  08 Apr 2005; Guy Martin <gmsoft@gentoo.org> phpsysinfo-2.3-r2.ebuild:
+  Stable on hppa.
+
+  03 Apr 2005; Bryan Østergaard <kloeri@gentoo.org>
+  phpsysinfo-2.3-r2.ebuild:
+  Stable on alpha, bug 86478.
+
+  02 Apr 2005; Michael Hanselmann <hansmi@gentoo.org>
+  phpsysinfo-2.3-r2.ebuild:
+  Stable on ppc.
+
+  02 Apr 2005; Jason Wever <weeve@gentoo.org> phpsysinfo-2.3-r2.ebuild:
+  Stable on SPARC wrt security bug #86478.
+
+  02 Apr 2005; Markus Rothe <corsair@gentoo.org>
+  files/phpsysinfo-2.3-sparc.patch, files/phpsysinfo-2.3-xss-and-path.patch,
+  phpsysinfo-2.3-r2.ebuild:
+  Corrected xss-and-path.patch
+
+*phpsysinfo-2.3-r2 (01 Apr 2005)
+
+  01 Apr 2005; Markus Rothe <corsair@gentoo.org>
+  +files/phpsysinfo-2.3-sparc.patch, +files/phpsysinfo-2.3-xss-and-path.patch,
+  +phpsysinfo-2.3-r2.ebuild:
+  Revision bump to fix bug #53178 (sparch cpu patch) and bug #86478 (XSS and
+  path disclosure issues); Stable on ppc64
+
+*phpsysinfo-2.3-r1 (15 Mar 2005)
+
+  15 Mar 2005; Sebastian Bergmann <sebastian@gentoo.org>
+  +phpsysinfo-2.3-r1.ebuild:
+  DEPEND on virtual/httpd-php, fixes bug 65452.
+
+  04 Jan 2005; Markus Rothe <corsair@gentoo.org> phpsysinfo-2.3.ebuild:
+  Stable on ppc64
+
+  30 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+  Change encoding to UTF-8 for GLEP 31 compliance
+
+  28 Dec 2004; Markus Rothe <corsair@gentoo.org> phpsysinfo-2.3.ebuild:
+  Cleanup of ebuild
+
+*phpsysinfo-2.3 (27 Dec 2004)
+
+  27 Dec 2004; Markus Rothe <corsair@gentoo.org> +phpsysinfo-2.3.ebuild:
+  version bump; credits for ebuild go to people from bug #60380
+
+*phpsysinfo-2.2 (24 Jun 2004)
+
+  24 Jun 2004; Stuart Herbert <stuart@gentoo.org> +phpsysinfo-2.2.ebuild:
+  Version bump; also converted to use the new webapp approach
+
+  31 May 2004; Bryan Østergaard <kloeri@gentoo.org> phpsysinfo-2.1-r2.ebuild:
+  Stable on alpha.
+
+  17 Apr 2004; Daniel Ahlberg <aliz@gentoo.org> phpsysinfo-2.1-r1.ebuild:
+  Added IUSE=.
+
+  30 Mar 2004; Stuart Herbert <stuart@gentoo.org> phpsysinfo-2.1-r2.ebuild:
+  Fix for missing '$' in the tests for whether to apply a patch or not.
+
+  29 Mar 2004; Stuart Herbert <stuart@gentoo.org> phpsysinfo-2.1-r2.ebuild:
+  Reduced output to the screen when deciding to apply the kernel patch
+
+  29 Mar 2004; Sven Blumenstein <bazik@gentoo.org> phpsysinfo-2.1-r2.ebuild:
+  Stable on sparc and applied fix from bug #46081. Will fix CPU info for sparc
+  later.
+
+*phpsysinfo-2.1-r2 (28 Mar 2004)
+
+  28 Mar 2004; Stuart Herbert <stuart@gentoo.org> phpsysinfo-2.1-r2.ebuild:
+  Auto-apply the 2.5 kernel patch if we're running on a 2.5 / 2.6 kernel
+
+  28 Mar 2004; Stuart Herbert <stuart@gentoo.org> :
+  Included working 2.5/2.6 kernel patch from Stephen Reindl
+  <sr@stephenreindl.de>. The patch is now auto-applied as well.
+  Fixes bug #39248
+
+  21 Mar 2004; Martin Holzer <mholzer@gentoo.org> phpsysinfo-2.1.ebuild:
+  adding categorie. see 45110 for details
+
+  19 Mar 2004; Daniel Ahlberg <aliz@gentoo.org> phpsysinfo-2.1-r1.ebuild:
+  Inherit eutils and amd64 unmask.
+
+  16 Dec 2003; Guy Martin <gmsoft@gentoo.org> phpsysinfo-2.1-r1.ebuild:
+  Marked stable on hppa.
+
+  31 Oct 2003; Markus Nigbur <pyrania@gentoo.org> phpsysinfo-2.1-r1.ebuild,
+  phpsysinfo-2.1.ebuild:
+  Fixed typos.
+
+  13 Oct 2003; Robin H. Johnson <robbat2@gentoo.org> metadata.xml:
+  add metadata.xml
+
+*phpsysinfo-2.1-r1 (13 Oct 2003)
+
+  13 Oct 2003; Robin H. Johnson <robbat2@gentoo.org> phpsysinfo-2.1-r1.ebuild:
+  added debian patch for security, moved to new docroot
+
+*phpsysinfo-2.1 (25 Mar 2003)
+
+  25 Mar 2003; Aron Griffis <agriffis@gentoo.org> phpsysinfo-2.1.ebuild:
+  Add ~alpha to KEYWORDS
+
+*phpsysinfo-1.2 (31 Jan 2003)
+
+  31 Jan 2003; Ryan Phillips <rphillips@gentoo.org> ChangeLog :
+  New package. Submitted by Zack Gilburd. Fixes #12711
diff --git a/www-apps/phpsysinfo/Manifest b/www-apps/phpsysinfo/Manifest
new file mode 100644 (file)
index 0000000..440c356
--- /dev/null
@@ -0,0 +1,10 @@
+MD5 cc7cda240bf4acbd94d6c7ffe15bee06 ChangeLog 5320
+MD5 c339473e0ff43da76eb2f2607c441921 metadata.xml 280
+MD5 93c8e3bbe1ea37361175bb8c3b4e7f6d phpsysinfo-2.3-r2.ebuild 1131
+MD5 8b0b2498e14df755e606c13cb46015e8 phpsysinfo-2.4.1.ebuild 1211
+MD5 699122f557709c38ce8a1d395e762cc9 phpsysinfo-2.3-r3.ebuild 1179
+MD5 b31f7b9dcef2784b2ba530a58585e35c files/phpsysinfo-2.3-sparc.patch 1622
+MD5 30402e91a4759242922f7eecc7337672 files/digest-phpsysinfo-2.3-r2 66
+MD5 bac44e6bc288288a1b515c8d6590386a files/digest-phpsysinfo-2.3-r3 134
+MD5 ca3c4eb21a9ecf8e0cf1036b5b9aba36 files/digest-phpsysinfo-2.4.1 68
+MD5 16b448ff71e100184f32fdaec5e57a41 files/phpsysinfo-2.3-xss-and-path.patch 4400
diff --git a/www-apps/phpsysinfo/files/digest-phpsysinfo-2.3-r2 b/www-apps/phpsysinfo/files/digest-phpsysinfo-2.3-r2
new file mode 100644 (file)
index 0000000..f8294f0
--- /dev/null
@@ -0,0 +1 @@
+MD5 8e9a2b7a099e26cbd85f140475512ccc phpsysinfo-2.3.tar.gz 163674
diff --git a/www-apps/phpsysinfo/files/digest-phpsysinfo-2.3-r3 b/www-apps/phpsysinfo/files/digest-phpsysinfo-2.3-r3
new file mode 100644 (file)
index 0000000..a696030
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 8e9a2b7a099e26cbd85f140475512ccc phpsysinfo-2.3.tar.gz 163674
+MD5 e6ed500c5f01920a0ca8afb41f9c8c44 phpsysinfo-2.3.bind.patch 2611
diff --git a/www-apps/phpsysinfo/files/digest-phpsysinfo-2.4.1 b/www-apps/phpsysinfo/files/digest-phpsysinfo-2.4.1
new file mode 100644 (file)
index 0000000..7e99fbc
--- /dev/null
@@ -0,0 +1 @@
+MD5 dcd8cec4ef20dfbe19acea20c9076437 phpSysInfo-2.4.1.tar.gz 175458
diff --git a/www-apps/phpsysinfo/files/phpsysinfo-2.3-sparc.patch b/www-apps/phpsysinfo/files/phpsysinfo-2.3-sparc.patch
new file mode 100644 (file)
index 0000000..6547d8d
--- /dev/null
@@ -0,0 +1,41 @@
+--- includes/os/class.Linux.inc.php.orig       2005-04-02 06:55:28.000000000 +0000
++++ includes/os/class.Linux.inc.php    2005-04-02 06:55:50.000000000 +0000
+@@ -176,6 +176,38 @@
+       fclose($fd);
+     } 
+ 
++       // sparc64 specific code follows
++       // This adds the ability to display the cache that a CPU has
++       // Originally made by Sven Blumenstein <bazik@gentoo.org> in 2004
++       // Modified by Tom Weustink <freshy98@gmx.net> in 2004
++
++        if ($fd = fopen('/proc/openprom/SUNW,UltraSPARC@0,0/ecache-size', 'r')) {
++           $results['cache'] = base_convert(fgets($fd, 32), 16, 10)/1024 . ' KB';
++           fclose($fd);
++       }
++
++        if ($fd = fopen('/proc/openprom/SUNW,UltraSPARC-II@0,0/ecache-size', 'r')) {
++           $results['cache'] = base_convert(fgets($fd, 32), 16, 10)/1024 . ' KB';
++           fclose($fd);
++       }
++
++        if ($fd = fopen('/proc/openprom/SUNW,UltraSPARC@1c,0/ecache-size', 'r')) {
++           $results['cache'] = base_convert(fgets($fd, 32), 16, 10)/1024 . ' KB';
++           fclose($fd);
++       }
++
++        if ($fd = fopen('/proc/openprom/SUNW,UltraSPARC-IIi@1c,0/ecache-size', 'r')) {
++           $results['cache'] = base_convert(fgets($fd, 32), 16, 10)/1024 . ' KB';
++           fclose($fd);
++       }
++
++        if ($fd = fopen('/proc/openprom/SUNW,UltraSPARC-II@1c,0/ecache-size', 'r')) {
++           $results['cache'] = base_convert(fgets($fd, 32), 16, 10)/1024 . ' KB';
++           fclose($fd);
++       }
++
++       // sparc64 specific code ends
++
+     $keys = array_keys($results);
+     $keys2be = array('model', 'mhz', 'cache', 'bogomips', 'cpus');
+ 
diff --git a/www-apps/phpsysinfo/files/phpsysinfo-2.3-xss-and-path.patch b/www-apps/phpsysinfo/files/phpsysinfo-2.3-xss-and-path.patch
new file mode 100644 (file)
index 0000000..a93f5b3
--- /dev/null
@@ -0,0 +1,120 @@
+--- index.php.orig     2005-04-02 06:48:00.000000000 +0000
++++ index.php  2005-03-23 16:35:50.000000000 +0000
+@@ -122,7 +122,7 @@
+     require('./includes/mb/class.' . $sensor_program . '.inc.php');
+     $mbinfo = new mbinfo;
+   } else {
+-    echo '<center><b>Error: ' . $sensor_program . ' is not currently supported</b></center>';
++    echo '<center><b>Error: ' . htmlentities($sensor_program) . ' is not currently supported</b></center>';
+     exit;
+   }
+ }
+--- includes/system_header.php.orig    2005-04-02 06:48:14.000000000 +0000
++++ includes/system_header.php 2005-03-23 16:30:38.000000000 +0000
+@@ -18,6 +18,11 @@
+ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ 
+ // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
++
++if (eregi('system_header.php', $_SERVER['PHP_SELF'])) {
++      exit;
++}
++
+ header("Cache-Control: no-cache, must-revalidate");
+ if (!isset($charset)) {
+   $charset = 'iso-8859-1';
+--- includes/system_footer.php.orig    2005-04-02 06:48:23.000000000 +0000
++++ includes/system_footer.php 2005-03-23 16:33:59.000000000 +0000
+@@ -13,6 +13,11 @@
+ // along with this program; if not, write to the Free Software
+ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
++
++if (eregi('system_footer.php', $_SERVER['PHP_SELF'])) {
++      exit;
++}
++
+ if (!$hide_picklist) {
+   echo "<center>";
+ 
+--- includes/XPath.class.php.orig      2005-04-02 06:48:29.000000000 +0000
++++ includes/XPath.class.php   2005-03-23 16:27:33.000000000 +0000
+@@ -4969,7 +4969,7 @@
+       $pos += $afterText ? 1 : 0;
+       $parentNode['textParts'] = array_merge(
+                                    array_slice($parentNode['textParts'], 0, $pos),
+-                                   '',
++                                   array(''),
+                                    array_slice($parentNode['textParts'], $pos)
+                                  );
+       
+@@ -5051,7 +5051,7 @@
+       $pos -= $afterText ? 0 : 1;
+       $parentNode['textParts'] = array_merge(
+                                    array_slice($parentNode['textParts'], 0, $pos),
+-                                   '',
++                                   array(''),
+                                    array_slice($parentNode['textParts'], $pos)
+                                  );
+       // We are going from bottom to top, but the user will want results from top to bottom.
+--- includes/os/class.Darwin.inc.php.orig      2005-04-02 06:48:39.000000000 +0000
++++ includes/os/class.Darwin.inc.php   2005-03-23 16:40:36.000000000 +0000
+@@ -19,8 +19,13 @@
+ 
+ // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
+ 
++if(!file_exists('./includes/os/class.BSD.common.inc.php')) {
++    exit;
++}
++
+ require('./includes/os/class.BSD.common.inc.php');
+ 
++
+ echo "<p align=center><b>Note: The Darwin version of phpSysInfo is work in progress, some things currently don't work</b></p>";
+ 
+ class sysinfo extends bsd_common {
+--- includes/os/class.NetBSD.inc.php.orig      2005-04-02 06:48:46.000000000 +0000
++++ includes/os/class.NetBSD.inc.php   2005-03-23 16:41:25.000000000 +0000
+@@ -19,8 +19,13 @@
+ 
+ // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
+ 
++if(!file_exists('./includes/os/class.BSD.common.inc.php')) {
++    exit;
++}
++
+ require('./includes/os/class.BSD.common.inc.php');
+ 
++
+ class sysinfo extends bsd_common {
+   var $cpu_regexp;
+   var $scsi_regexp; 
+--- includes/os/class.FreeBSD.inc.php.orig     2005-04-02 06:48:54.000000000 +0000
++++ includes/os/class.FreeBSD.inc.php  2005-03-23 16:41:02.000000000 +0000
+@@ -19,6 +19,10 @@
+ 
+ // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
+ 
++if(!file_exists('./includes/os/class.BSD.common.inc.php')) {
++    exit;
++}
++
+ require('./includes/os/class.BSD.common.inc.php');
+ 
+ class sysinfo extends bsd_common {
+--- includes/os/class.OpenBSD.inc.php.orig     2005-04-02 06:49:02.000000000 +0000
++++ includes/os/class.OpenBSD.inc.php  2005-03-23 16:41:19.000000000 +0000
+@@ -19,8 +19,13 @@
+ 
+ // $Id: phpsysinfo-2.3-xss-and-path.patch,v 1.1 2005/11/20 11:53:16 stuart Exp $
+ 
++if(!file_exists('./includes/os/class.BSD.common.inc.php')) {
++    exit;
++}
++
+ require('./includes/os/class.BSD.common.inc.php');
+ 
++
+ class sysinfo extends bsd_common {
+   var $cpu_regexp;
+   var $scsi_regexp; 
diff --git a/www-apps/phpsysinfo/metadata.xml b/www-apps/phpsysinfo/metadata.xml
new file mode 100644 (file)
index 0000000..13bc126
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>web-apps</herd>
+<maintainer>
+<email>web-apps@gentoo.org</email>
+<name>Gentoo Web Application Packages Maintainers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/www-apps/phpsysinfo/phpsysinfo-2.3-r2.ebuild b/www-apps/phpsysinfo/phpsysinfo-2.3-r2.ebuild
new file mode 100644 (file)
index 0000000..4b84e31
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/phpsysinfo/phpsysinfo-2.3-r2.ebuild,v 1.1 2005/11/20 11:53:16 stuart Exp $
+
+inherit eutils webapp
+
+DESCRIPTION="phpSysInfo is a nice package that will display your system stats via PHP."
+HOMEPAGE="http://phpsysinfo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/phpsysinfo/${P}.tar.gz"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
+IUSE=""
+
+DEPEND="$DEPEND >=net-www/apache-1.3.27-r1
+       >=virtual/httpd-php-4.3.8"
+
+S=${WORKDIR}/${PN}-dev
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${P}-xss-and-path.patch
+       epatch ${FILESDIR}/${P}-sparc.patch
+}
+
+src_install() {
+       webapp_src_preinst
+
+       cp -R templates ${D}${MY_HTDOCSDIR} || die "cp failed"
+       cp -R includes ${D}${MY_HTDOCSDIR} || die "cp failed"
+       cp *.php ${D}${MY_HTDOCSDIR} || die "cp failed"
+       cp -R images ${D}${MY_HTDOCSDIR} || die "cp failed"
+
+       cp config.php.new ${D}${MY_HTDOCSDIR}/config.php || die "cp failed"
+       webapp_configfile ${MY_HTDOCSDIR}
+
+       dodoc ChangeLog README
+
+       webapp_src_install
+}
diff --git a/www-apps/phpsysinfo/phpsysinfo-2.3-r3.ebuild b/www-apps/phpsysinfo/phpsysinfo-2.3-r3.ebuild
new file mode 100644 (file)
index 0000000..242f4fc
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/phpsysinfo/phpsysinfo-2.3-r3.ebuild,v 1.1 2005/11/20 11:53:16 stuart Exp $
+
+inherit eutils webapp
+
+DESCRIPTION="phpSysInfo is a nice package that will display your system stats via PHP."
+HOMEPAGE="http://phpsysinfo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/phpsysinfo/${P}.tar.gz
+mirror://gentoo/${P}.bind.patch"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="$DEPEND
+       >=virtual/httpd-php-4.3.8"
+
+S=${WORKDIR}/${PN}-dev
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${P}-xss-and-path.patch
+       epatch ${FILESDIR}/${P}-sparc.patch
+       epatch ${DISTDIR}/${P}.bind.patch
+}
+
+src_install() {
+       webapp_src_preinst
+
+       cp -R templates ${D}${MY_HTDOCSDIR} || die "cp failed"
+       cp -R includes ${D}${MY_HTDOCSDIR} || die "cp failed"
+       cp *.php ${D}${MY_HTDOCSDIR} || die "cp failed"
+       cp -R images ${D}${MY_HTDOCSDIR} || die "cp failed"
+
+       cp config.php.new ${D}${MY_HTDOCSDIR}/config.php || die "cp failed"
+       webapp_configfile ${MY_HTDOCSDIR}
+
+       dodoc ChangeLog README
+
+       webapp_src_install
+}
diff --git a/www-apps/phpsysinfo/phpsysinfo-2.4.1.ebuild b/www-apps/phpsysinfo/phpsysinfo-2.4.1.ebuild
new file mode 100644 (file)
index 0000000..15a0c64
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/phpsysinfo/phpsysinfo-2.4.1.ebuild,v 1.1 2005/11/20 11:53:16 stuart Exp $
+
+inherit eutils webapp
+
+MY_PN="phpSysInfo"
+MY_P="${MY_PN}-${PVR}"
+DESCRIPTION="phpSysInfo is a nice package that will display your system stats via PHP."
+HOMEPAGE="http://phpsysinfo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/phpsysinfo/${MY_PN}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND="$DEPEND
+       >=virtual/httpd-php-4.3.8"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+# src_unpack() {
+#      unpack ${A}
+#      cd ${S}
+#      epatch ${FILESDIR}/${P}-xss-and-path.patch
+#      epatch ${FILESDIR}/${P}-sparc.patch
+#      epatch ${DISTDIR}/${P}.bind.patch
+#}
+
+src_install() {
+       webapp_src_preinst
+
+       cp -R templates ${D}${MY_HTDOCSDIR} || die "cp failed"
+       cp -R includes ${D}${MY_HTDOCSDIR} || die "cp failed"
+       cp *.php ${D}${MY_HTDOCSDIR} || die "cp failed"
+       cp -R images ${D}${MY_HTDOCSDIR} || die "cp failed"
+
+       cp config.php.new ${D}${MY_HTDOCSDIR}/config.php || die "cp failed"
+       webapp_configfile ${MY_HTDOCSDIR}
+
+       dodoc ChangeLog README
+
+       webapp_src_install
+}