aboutsummaryrefslogtreecommitdiff
path: root/www/phpsysinfo-dev
diff options
context:
space:
mode:
Diffstat (limited to 'www/phpsysinfo-dev')
-rw-r--r--www/phpsysinfo-dev/Makefile1
-rw-r--r--www/phpsysinfo-dev/files/patch-pre5.2.1-segfault.diff11
2 files changed, 12 insertions, 0 deletions
diff --git a/www/phpsysinfo-dev/Makefile b/www/phpsysinfo-dev/Makefile
index 78cd63827633..cdfb91e3c9ea 100644
--- a/www/phpsysinfo-dev/Makefile
+++ b/www/phpsysinfo-dev/Makefile
@@ -6,6 +6,7 @@
PORTNAME= phpSysInfo
PORTVERSION= 2.5.2
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:L}
diff --git a/www/phpsysinfo-dev/files/patch-pre5.2.1-segfault.diff b/www/phpsysinfo-dev/files/patch-pre5.2.1-segfault.diff
new file mode 100644
index 000000000000..f3282fd26c3e
--- /dev/null
+++ b/www/phpsysinfo-dev/files/patch-pre5.2.1-segfault.diff
@@ -0,0 +1,11 @@
+--- includes/xml/filesystems.php.orig
++++ includes/xml/filesystems.php
+@@ -85,7 +85,7 @@
+ . " <td align=\"" . $textdir['right'] . "\" valign=\"top\"><font size=\"-1\"><b>" . $text['size'] . "</b></font></td>\n </tr>\n";
+ for( $i = 1, $max = sizeof( $XPath->getDataParts( "/phpsysinfo/FileSystem" ) ); $i < $max; $i++ ) {
+ if( $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/MountPointID" ) ) {
+- if( ! $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ) || ! stristr( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ), "bind" ) ) {
++ if( ! $XPath->match( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Options" ) ) {
+ if( ! in_array( $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Device/Name" ), $arrCounteddevlist ) ) {
+ $arrSum['size'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Size" );
+ $arrSum['used'] += $XPath->getData( "/phpsysinfo/FileSystem/Mount[" . $i . "]/Used" );