[csw-devel] SF.net SVN: gar:[3714] csw/mgar/pkg

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Wed Mar 11 17:35:13 CET 2009


Revision: 3714
          http://gar.svn.sourceforge.net/gar/?rev=3714&view=rev
Author:   bonivart
Date:     2009-03-11 16:35:13 +0000 (Wed, 11 Mar 2009)

Log Message:
-----------
phpsysinfo: move to gar

Added Paths:
-----------
    csw/mgar/pkg/phpsysinfo/
    csw/mgar/pkg/phpsysinfo/branches/
    csw/mgar/pkg/phpsysinfo/tags/
    csw/mgar/pkg/phpsysinfo/trunk/
    csw/mgar/pkg/phpsysinfo/trunk/Makefile
    csw/mgar/pkg/phpsysinfo/trunk/checksums
    csw/mgar/pkg/phpsysinfo/trunk/files/
    csw/mgar/pkg/phpsysinfo/trunk/files/CSWphpsysinfo.class.SunOS.inc.php.p


Property changes on: csw/mgar/pkg/phpsysinfo/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/phpsysinfo/trunk/Makefile
===================================================================
--- csw/mgar/pkg/phpsysinfo/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/phpsysinfo/trunk/Makefile	2009-03-11 16:35:13 UTC (rev 3714)
@@ -0,0 +1,50 @@
+GARNAME = phpsysinfo
+GARVERSION = 2.5.4
+CATEGORIES = utils
+
+DESCRIPTION = displays information about the host being accessed
+define BLURB
+  displays information about the host being accessed
+endef
+
+SF_PROJ = $(GARNAME)
+MASTER_SITES = $(SF_MIRRORS)
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+
+PACKAGES = CSWphpsysinfo
+CATALOGNAME_CSWphpsysinfo = phpsysinfo
+SPKG_DESC = $(DESCRIPTION)
+SPKG_SOURCEURL = http://phpsysinfo.sourceforge.net
+
+REQUIRED_PKGS = CSWapache2 CSWap2modphp5 CSWphp5 CSWcswclassutils
+
+SPKG_CLASSES_CSWphpsysinfo = none cswcpsampleconf
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS =
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+WORKSRC = $(WORKDIR)/$(GARNAME)
+
+PROTOTYPE_FILTER  = awk ' \
+$$$$3 ~ /\/config.php.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } \
+{ print }'
+
+include gar/category.mk
+
+install-custom:
+	@echo " ==> Installing $(GARNAME) (custom)"
+	@rm -rf $(DESTDIR)$(prefix)/share/www/phpsysinfo
+	@ginstall -d $(DESTDIR)$(docdir)/$(GARNAME)
+	@ginstall -d $(DESTDIR)$(prefix)/share/www
+	@cp -R $(WORKSRC) $(DESTDIR)$(prefix)/share/www/phpsysinfo
+	@( cd $(DESTDIR)$(prefix)/share/www/phpsysinfo ; \
+	   mv config.php.new config.php.CSW ; \
+	   mv COPYING $(DESTDIR)$(docdir)/$(GARNAME)/license )
+	@( cd $(DESTDIR)$(prefix)/share/www/phpsysinfo/includes/os ; \
+	   gpatch < ../../../../../../../../../$(FILEDIR)/CSWphpsysinfo.class.SunOS.inc.php.p )
+	@$(MAKECOOKIE)

Added: csw/mgar/pkg/phpsysinfo/trunk/checksums
===================================================================
--- csw/mgar/pkg/phpsysinfo/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/phpsysinfo/trunk/checksums	2009-03-11 16:35:13 UTC (rev 3714)
@@ -0,0 +1 @@
+5bf79793255ff24d5f9cbc6a62705aa7  download/phpsysinfo-2.5.4.tar.gz

Added: csw/mgar/pkg/phpsysinfo/trunk/files/CSWphpsysinfo.class.SunOS.inc.php.p
===================================================================
--- csw/mgar/pkg/phpsysinfo/trunk/files/CSWphpsysinfo.class.SunOS.inc.php.p	                        (rev 0)
+++ csw/mgar/pkg/phpsysinfo/trunk/files/CSWphpsysinfo.class.SunOS.inc.php.p	2009-03-11 16:35:13 UTC (rev 3714)
@@ -0,0 +1,52 @@
+--- class.SunOS.inc.php.071122	Wed Nov 21 07:34:15 2007
++++ class.SunOS.inc.php	Wed Nov 21 09:00:27 2007
+@@ -153,20 +153,27 @@
+ 
+         preg_match('/^(\D+)(\d+)$/', $ar_buf[0], $intf);
+         $prefix = $intf[1] . ':' . $intf[2] . ':' . $intf[1] . $intf[2] . ':';
+-        $cnt = $this->kstat($prefix . 'drop');
++        $tmp = $this->kstat($prefix);
++        if (preg_match('/:drop/',$tmp)) {
++          $cnt = $this->kstat($prefix . 'drop');
+ 
+-        if ($cnt > 0) {
+-          $results[$ar_buf[0]]['rx_drop'] = $cnt;
+-        } 
+-        $cnt = $this->kstat($prefix . 'obytes64');
++          if ($cnt > 0) {
++            $results[$ar_buf[0]]['rx_drop'] = $cnt;
++          } 
++        }
++        if (preg_match('/:obytes64/',$tmp)) {
++          $cnt = $this->kstat($prefix . 'obytes64');
+ 
+-        if ($cnt > 0) {
+-          $results[$ar_buf[0]]['tx_bytes'] = $cnt;
+-        } 
+-        $cnt = $this->kstat($prefix . 'rbytes64');
++          if ($cnt > 0) {
++            $results[$ar_buf[0]]['tx_bytes'] = $cnt;
++          } 
++        }
++        if (preg_match('/:rbytes64/',$tmp)) {
++          $cnt = $this->kstat($prefix . 'rbytes64');
+ 
+-        if ($cnt > 0) {
+-          $results[$ar_buf[0]]['rx_bytes'] = $cnt;
++          if ($cnt > 0) {
++            $results[$ar_buf[0]]['rx_bytes'] = $cnt;
++          }
+         }
+       } 
+     } 
+@@ -211,6 +218,10 @@
+       if (hide_mount($ar_buf[5])) {
+         continue;
+       }
++
++      if (hide_fstype(trim($ty_buf[1]))) {
++        continue;
++      }
+ 
+       $results[$j] = array();
+ 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list