--- phpsysinfo-3.0.4.orig/js.php +++ phpsysinfo-3.0.4/js.php @@ -20,7 +20,7 @@ define('APP_ROOT', dirname(__FILE__)); require_once APP_ROOT.'/includes/autoloader.inc.php'; -require_once APP_ROOT.'/config.php'; +require_once '/etc/phpsysinfo/config.php'; $file = isset($_GET['name']) ? basename(htmlspecialchars($_GET['name'])) : null; $plugin = isset($_GET['plugin']) ? basename(htmlspecialchars($_GET['plugin'])) : null; --- phpsysinfo-3.0.4.orig/language/language.php +++ phpsysinfo-3.0.4/language/language.php @@ -39,8 +39,8 @@ */ define('APP_ROOT', realpath(dirname(( __FILE__ )).'/../')); -if (file_exists(APP_ROOT.'/config.php')) { - include_once APP_ROOT.'/config.php'; +if (file_exists('/etc/phpsysinfo/config.php')) { + include_once '/etc/phpsysinfo/config.php'; } if (defined('PSI_DEFAULT_LANG')) { --- phpsysinfo-3.0.4.orig/includes/output/class.Output.inc.php +++ phpsysinfo-3.0.4/includes/output/class.Output.inc.php @@ -49,10 +49,10 @@ */ private function _checkConfig() { - if (!is_readable(APP_ROOT.'/config.php')) { - $this->error->addError('file_exists(config.php)', 'config.php does not exist or is not readable by the webserver in the phpsysinfo directory.'); + if (!is_readable('/etc/phpsysinfo/config.php')) { + $this->error->addError('/etc/phpsysinfo/config.php', 'config.php does not exist or is not readable by the webserver in the phpsysinfo directory.'); } else { - include_once APP_ROOT.'/config.php'; + include_once ('/etc/phpsysinfo/config.php'); } if ($this->error->errorsExist()) { $this->error->errorsAsXML(); --- phpsysinfo-3.0.4.orig/debian/rules +++ phpsysinfo-3.0.4/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f +# -*- mode: makefile; coding: utf-8 -*- +# # Copyright © 2003-2006 Frederik Schüler + +#export DH_VERBOSE=1 + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_FIXPERMS_EXCLUDE := usr/share/phpsysinfo +DEB_DH_LINK_ARGS := /usr/share/phpsysinfo /var/www/phpsysinfo + +# chown everything to nobody:nogroup to make suphp happy +common-binary-post-install-indep:: + find debian/phpsysinfo/usr/share/phpsysinfo/ -type d -exec chmod 0755 {} \; + find debian/phpsysinfo/usr/share/phpsysinfo/ -type f -exec chmod 0644 {} \; + find debian/phpsysinfo/usr/share/phpsysinfo/ -type f -exec chown nobody:nogroup {} \; + cp config.php.new debian/phpsysinfo/etc/phpsysinfo/config.php + chown nobody:nogroup debian/phpsysinfo/etc/phpsysinfo/config.php + --- phpsysinfo-3.0.4.orig/debian/copyright +++ phpsysinfo-3.0.4/debian/copyright @@ -0,0 +1,48 @@ +This package was debianized by Hereward Cooper (Hereward Matthew Lawrence +Cooper) on Tue, 1 Jan 2002 22:46:32 +0000. +It is maintained by Frederik Schüler since September 2003. + +It was downloaded from http://phpsysinfo.sourceforge.net/ + + +Authors: + Uriah Welcome + Matthew Snelham + Jacob Moorman + Webbie + +Copyright: 1999-2006 Uriah Welcome, Matthew Snelham, Jacob Moorman, Webbie + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301, USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + +includes/class.Template.inc.php is Copyright 1999-2000 NetUSE GmbH +Kristian Koehntopp, licensed under the GNU Lesser General Public License +which, on Debian systems, can be found in `/usr/share/common-licenses/LGPL'. + + +includes/XPath.class.php is copyright by + + Nigel Swinson + Sam Blum + Daniel Allen + Michael P. Mehl + +and is tri-licensed under the terms of the MPL, GPL and LGPL. + + --- phpsysinfo-3.0.4.orig/debian/dirs +++ phpsysinfo-3.0.4/debian/dirs @@ -0,0 +1,3 @@ +etc/phpsysinfo +usr/share/doc/phpsysinfo +usr/share/phpsysinfo --- phpsysinfo-3.0.4.orig/debian/control +++ phpsysinfo-3.0.4/debian/control @@ -0,0 +1,24 @@ +Source: phpsysinfo +Section: web +Priority: optional +Homepage: http://phpsysinfo.sourceforge.net/ +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Frederik Schüler +Uploaders: Bjoern Boschman +Build-Depends: cdbs, debhelper (>= 5) +Standards-Version: 3.7.3 + +Package: phpsysinfo +Architecture: all +Depends: ${misc:Depends}, apache2 | httpd, php5 +Suggests: lm-sensors, hddtemp +Description: PHP based host information + phpSysInfo is a PHP script that displays information about the + host being accessed. + . + It displays informations on the system like kernel version, uptime, + network, disk and memory usage, informations on CPU and model, + attached IDE and SCSI devices and PCI cards and lm-sensors output on + architectures supporting it. + . + It has support for multiple languages and themes. --- phpsysinfo-3.0.4.orig/debian/docs +++ phpsysinfo-3.0.4/debian/docs @@ -0,0 +1,2 @@ +README +README_PLUGIN --- phpsysinfo-3.0.4.orig/debian/conffile +++ phpsysinfo-3.0.4/debian/conffile @@ -0,0 +1 @@ +/etc/phpsysinfo/config.php --- phpsysinfo-3.0.4.orig/debian/phpsysinfo.manpages +++ phpsysinfo-3.0.4/debian/phpsysinfo.manpages @@ -0,0 +1 @@ +debian/phpsysinfo.1 --- phpsysinfo-3.0.4.orig/debian/changelog +++ phpsysinfo-3.0.4/debian/changelog @@ -0,0 +1,271 @@ +phpsysinfo (3.0.4-0ubuntu1) lucid; urgency=low + + * New upstream release. + + -- Chuck Short Fri, 09 Apr 2010 13:51:28 -0400 + +phpsysinfo (3.0~rc6-1ubuntu1) lucid; urgency=low + + * debian/patches/fix-php5.3-warnings: Fix PHP 5.3 depreciated warnings. (LP: #535185) + + -- Chuck Short Wed, 24 Mar 2010 14:35:02 -0400 + +phpsysinfo (3.0~rc6-1) unstable; urgency=low + + * New upstream release. (Closes: #473255, #489791) + + -- Bjoern Boschman Tue, 8 Jul 2008 13:43:20 +0200 + +phpsysinfo (3.0~rc3-1) unstable; urgency=low + + * New upstream release. + + -- Bjoern Boschman Tue, 22 Jan 2008 13:48:12 +0100 + +phpsysinfo (3.0~rc1-1) unstable; urgency=medium + + * New upstream release. + + -- Bjoern Boschman Sat, 9 Sep 2007 14:29:31 +0200 + +phpsysinfo (2.5.1-6) unstable; urgency=medium + + * Update German debconf template translation, thanks to Daniel Knabl + . Closes: #406383 + + -- Frederik Schüler Thu, 11 Jan 2007 16:33:48 +0100 + +phpsysinfo (2.5.1-5) unstable; urgency=low + + * Fix spelling in French debconf template translation, thanks to + Frédéric Bothamy . Closes: #405540 + + -- Frederik Schüler Tue, 9 Jan 2007 17:29:54 +0100 + +phpsysinfo (2.5.1-4) unstable; urgency=low + + * Check for debconf availability before purging the database in the + postinst. Closes: #388781 + * Add/update translations: + - German (thanks to Daniel Knabl ). Closes: #391153 + - Czech (thanks to Miroslav Kure ). Closes: #366740 + - Japanese (thanks to Hideki Yamane ). Closes: #399078 + - Italian (thanks to Luca Monducci ). Closes: #404420 + + -- Frederik Schüler Thu, 28 Dec 2006 13:15:33 +0100 + +phpsysinfo (2.5.1-3) unstable; urgency=low + + * Updated french debconf template, thanks to Olivier Trichet + and the debian-l10n-french Team. Closes: #351705 + * Fix quoting in the configfile, thanks to Jonas Häggqvist + for the patch. Closes: #351800 + + -- Frederik Schüler Tue, 7 Feb 2006 17:07:44 +0100 + +phpsysinfo (2.5.1-2) unstable; urgency=low + + * Add Samsung harddisk manufacturer support. Closes: #334098 + * Updated swedish translation, thanks to Daniel Nylander + and the swedish language team . + Closes: #349973 + * Updated my email address in the templates and copyright files. + + -- Frederik Schüler Thu, 26 Jan 2006 21:42:29 +0100 + +phpsysinfo (2.5.1-1) unstable; urgency=low + + * New upstream release. + * Remove patches merged upstream: + - lang-fr.diff + - setini.diff + - xss.diff + - xxx_CVE-2005-0870.diff + - xxx_CVE-2005-3347.diff + - xxx_CVE-2005-3348.diff + + -- Frederik Schüler Sat, 31 Dec 2005 00:34:42 +0100 + +phpsysinfo (2.3-7) unstable; urgency=high + + * Fix several security issues, thanks to Martin Schulze + for the patch. Closes: #339079 + - Restrict sensor_program to single filenames [index.php, + debian/patches/xxx_CVE-2005-0870.diff] + - Backported parts of upstream changes and parts of changes by + Christopher Kunz [index.php, debian/patches/xxx_CVE-2005-3347.diff] + - Initialise charset variable [index.php, + debian/patches/xxx_CVE-2005-3348.diff] + * Add portuguese debconf template translation, thanks to Miguel + Figueiredo and the Debianpt.org Translation Team + . Closes: #338084 + * Add german debconf template translation, thanks to Daniel Knabl + and the German Gnome language team + . Closes: #330454 + * Add swedish debconf template translation, thanks to Daniel Nylander + and the Swedish Linux-International translation + team . Closes: #330764 + * Updated watch file. + + -- Frederik Schüler Mon, 14 Nov 2005 22:48:42 +0100 + +phpsysinfo (2.3-6) unstable; urgency=low + + * Make the package depend on debconf | debconf-2.0. + * Cleaned up build process to use cdbs for all possible build tasks. + * Data files now belong to nobody:nogroup, this should make suphp users + happy. Closes: #287895 + * Run ucf in the postrm only if the binary is available. + * Updated license and copyright informations. + + -- Frederik Schüler Sat, 6 Aug 2005 00:52:12 +0200 + +phpsysinfo (2.3-5) unstable; urgency=low + + * Added viatnamese debconf template translation, thanks to Clytie Siddall + . Closes: #316844 + * Fixed spelling in templates, thanks to Daniel Schildt + for the corrections. Closes: #315007 + * Bumped standard version to 3.6.2.1. + + -- Frederik Schüler Wed, 3 Aug 2005 12:53:43 +0200 + +phpsysinfo (2.3-4) unstable; urgency=medium + + * Urgency=medim since this needs to go into sarge. + * Added patch to correct French language template, thanks to + Frédéric Bothamy . Closes: #307315 + + -- Frederik Schüler Thu, 5 May 2005 18:56:00 +0200 + +phpsysinfo (2.3-3) unstable; urgency=high + + * Urgency: high because this release fixes a security issue. + * Added xss.diff top fix cross-site-scripting security bug, closes: #301118 + * Adapted dependencies list, closes: #297674 + * Added setini.diff to ensure register_globals and magic_quotes_runtime are + disabled. + + -- Frederik Schüler Thu, 24 Mar 2005 13:48:02 +0100 + +phpsysinfo (2.3-2) unstable; urgency=low + + * Added Czech debconf template translation, thanks to Miroslav Kure and + the Debian Czech l10n team, closes: #293621 + * Adapted php dependency list, closes: #294023 + * Added upstream homepage to pacakge description. + + -- Frederik Schüler Mon, 7 Feb 2005 22:36:13 +0100 + +phpsysinfo (2.3-1) unstable; urgency=low + + * New upstream version. + + -- Frederik Schüler Sat, 2 Oct 2004 13:30:28 +0200 + +phpsysinfo (2.2-7) unstable; urgency=high + + * Fixed configfile permission, closes: #272709 + + -- Frederik Schüler Tue, 21 Sep 2004 22:39:06 +0200 + +phpsysinfo (2.2-6) unstable; urgency=high + + * Fixed configfile handling, uses ucf now. Closes: #267779 + * Extended the package description to cover lm-sensors support. + + -- Frederik Schüler Sun, 12 Sep 2004 15:55:33 +0200 + +phpsysinfo (2.2-5) unstable; urgency=medium + + * Updated japanese debconf template translation, thanks to Hideki Yamane and + the Debian l10n Japanese Team. Closes: #266799 + * Updated french debconf template translation, thanks to Olivier Trichet and + the Debian l10n French Team. Closes: #261713 + + -- Frederik Schüler Sat, 21 Aug 2004 14:29:45 +0200 + +phpsysinfo (2.2-4) unstable; urgency=low + + * Added japanese debconf template translation, thanks to Hideki Yamane and + the Debian l10n Japanese Team. Closes: #260916 + * Added french debconf template translation, thanks to Olivier Trichet and + the Debian l10n French Team. Closes: #261713 + * Added default language and theme tamplate config options. + Closes: #261497, #263340 + + -- Frederik Schüler Fri, 6 Aug 2004 14:11:50 +0200 + +phpsysinfo (2.2-3) unstable; urgency=low + + * Fixed bulix template to show lm_sensors tables. + + -- Frederik Schüler Fri, 16 Jul 2004 15:39:35 +0200 + +phpsysinfo (2.2-2) unstable; urgency=low + + * Fixed japanese and arabic language templates, thanks to Daniel van Eeden + for reporting this. Closes: #258577, #258576 + * Fixed cookie handling with register_global = off + + -- Frederik Schüler Sat, 10 Jul 2004 20:37:02 +0200 + +phpsysinfo (2.2-1) unstable; urgency=low + + * New upstream version, closes: #255108 + * Added phpapi-20020918 to list of build dependencies, closes: #241201 + + -- Frederik Schüler Mon, 7 Jun 2004 08:40:16 +0200 + +phpsysinfo (2.1-3) unstable; urgency=low + + * Dropped dependencies on php3 | php3-cgi, closes: #221522 + * Now using cdbs to build the package. + * Cleaned up manpage and copyright. + + -- Frederik Schüler Wed, 19 Nov 2003 19:44:13 +0100 + +phpsysinfo (2.1-2) unstable; urgency=low + + * Fixed typo in 2.6 /proc/meminfo handling patch, closes: #217667 + + -- Frederik Schüler Mon, 27 Oct 2003 17:18:06 +0100 + +phpsysinfo (2.1-1) unstable; urgency=low + + * News maintainer, closes: #211701 + * New upstream release + * fixed template/lng parsing, closes: #200543 + * added alternative php4-cgi and php3-cgi ependency, closes: #163788 + * fixed package description, closes: #134896 + * bumped standards to 3.6.1 + * added patch for Linux 2.5/2.6 /proc/meninfo handling + + -- Frederik Schueler Sat, 27 Sep 2003 21:30:33 +0200 + +phpsysinfo (2.0-3) unstable; urgency=low + + * Cleaned up man page + * Cleaned up debian/rules + + -- Hereward Cooper (Hereward Matthew Lawrence Cooper) Mon, 4 Mar 2002 20:21:16 +0000 + +phpsysinfo (2.0-2) unstable; urgency=low + + * Moved contents of binary-arch to binary-indep. closes: #136370 + * Fixes policy violation of Architecture: all. + + -- Hereward Cooper (Hereward Matthew Lawrence Cooper) Fri, 1 Mar 2002 22:12:29 +0000 + +phpsysinfo (2.0-1) unstable; urgency=low + + * New upstream release + + -- Hereward Cooper (Hereward Matthew Lawrence Cooper) Mon, 18 Feb 2002 16:39:42 +0000 + +phpsysinfo (1.9-1) unstable; urgency=low + + * Intial Debian Package. closes: #127371 + + -- Hereward Cooper (Hereward Matthew Lawrence Cooper) Tue, 1 Jan 2002 22:46:32 +0000 + --- phpsysinfo-3.0.4.orig/debian/phpsysinfo.1 +++ phpsysinfo-3.0.4/debian/phpsysinfo.1 @@ -0,0 +1,20 @@ +.TH "PHPSYSINFO" "1" "January 1, 2002" "Hereward Cooper" "Debian GNU/Linux" + +.SH "NAME" +\fBphpsysinfo\fP \- php based host information + +.SH "DESCRIPTION" +This manual page documents briefly the \fBphpsysinfo\fP webpage. +.PP +This manual page was written for the Debian distribution +because the original program does not have a man page. + +.PP +\fBphpsysinfo\fP works via your web browser, and so has no command line +options, simply point your browser to \fIhttp:///phpsysinfo\fP +and gaze in wonder! The actual location of the phpsysinfo files is +\fI/usr/share/phpsysinfo\fP. + +.SH "AUTHOR" +This manual page was written by Hereward Cooper , +for the Debian system (but may be used by others). --- phpsysinfo-3.0.4.orig/debian/compat +++ phpsysinfo-3.0.4/debian/compat @@ -0,0 +1 @@ +5 --- phpsysinfo-3.0.4.orig/debian/phpsysinfo.install +++ phpsysinfo-3.0.4/debian/phpsysinfo.install @@ -0,0 +1,11 @@ +gfx usr/share/phpsysinfo/ +images usr/share/phpsysinfo/ +includes usr/share/phpsysinfo/ +language usr/share/phpsysinfo/ +js usr/share/phpsysinfo/ +plugins usr/share/phpsysinfo/ +templates usr/share/phpsysinfo/ +index.php usr/share/phpsysinfo/ +phpsysinfo.js usr/share/phpsysinfo/ +distros.ini usr/share/phpsysinfo/ +xml.php usr/share/phpsysinfo/