$OpenBSD: patch-bin_pg_stats_reporter,v 1.1 2016/05/13 22:30:25 landry Exp $
--- bin/pg_stats_reporter.orig	Thu Feb 18 06:11:25 2016
+++ bin/pg_stats_reporter	Sat May 14 00:24:52 2016
@@ -1,4 +1,4 @@
-#! /usr/bin/php -qC
+#!${MODPHP_BIN} -qC
 <?php
 /*
  * pg_stats_reporter commandline mode
@@ -214,7 +214,7 @@ foreach ($include_files as $f) {	       
 }
 
 // the variable SMARTY_PATH is defined in define.php
-if (!@include_once(($includePath = joinPathComponents($installDir, "html/pg_stats_reporter/".SMARTY_PATH."/Smarty.class.php"))))
+if (!@include_once(($includePath = joinPathComponents($installDir, "htdocs/pg_stats_reporter/".SMARTY_PATH."/Smarty.class.php"))))
 	elog(ERROR, "Failed to include file: %s", $includePath);
 
 // read pg_stats_reporter.ini
@@ -795,7 +795,7 @@ function copyLibraryFile($installDir, $outputDir)
 	/* copy directories in pakage list */
 	foreach ($copyPackageList['dir'] as $dirName) {
 
-		$src = joinPathComponents($installDir, "html/pg_stats_reporter/".$dirName);
+		$src = joinPathComponents($installDir, "htdocs/pg_stats_reporter/".$dirName);
 		$dst = joinPathComponents($outputDir, $dirName);
 
 		/* check whether or not the target directory exists */ 
@@ -821,7 +821,7 @@ function copyLibraryFile($installDir, $outputDir)
 	/* copy files in package list */
 	foreach ($copyPackageList['file'] as $fileName) {
 
-		$src = joinPathComponents($installDir, "html/pg_stats_reporter/".$fileName);
+		$src = joinPathComponents($installDir, "htdocs/pg_stats_reporter/".$fileName);
 		$dst = joinPathComponents($outputDir, $fileName);
 
 		/* check whether or not the target directory exists */
