diff options
author | Olli Hauer <ohauer@FreeBSD.org> | 2013-03-03 19:56:48 +0000 |
---|---|---|
committer | Olli Hauer <ohauer@FreeBSD.org> | 2013-03-03 19:56:48 +0000 |
commit | 1d94517cf3847eb350e70fefaa6dc6d8c30af65f (patch) | |
tree | a43c9e8cc9a87233703d81b483fa84f0832c9a66 /net-mgmt/nagiosql/files | |
parent | f5e450a425623ce0fcd4c5d5ac5dff3d7a6c68cd (diff) | |
download | ports-1d94517cf3847eb350e70fefaa6dc6d8c30af65f.tar.gz ports-1d94517cf3847eb350e70fefaa6dc6d8c30af65f.zip |
Notes
Diffstat (limited to 'net-mgmt/nagiosql/files')
11 files changed, 24 insertions, 254 deletions
diff --git a/net-mgmt/nagiosql/files/patch-nagiosql32-admin-contacts.php b/net-mgmt/nagiosql/files/patch-nagiosql32-admin-contacts.php deleted file mode 100644 index 6f86fe57893b..000000000000 --- a/net-mgmt/nagiosql/files/patch-nagiosql32-admin-contacts.php +++ /dev/null @@ -1,24 +0,0 @@ ---- ../nagiosql/work/./nagiosql32/admin/contacts.php 2012-03-27 12:47:56.000000000 +0200 -+++ ./nagiosql32/admin/contacts.php 2012-04-20 12:39:56.000000000 +0200 -@@ -10,10 +10,10 @@ - // Project : NagiosQL - // Component : Contact definitions - // Website : http://www.nagiosql.org --// Date : $LastChangedDate: 2012-03-27 12:47:56 +0200 (Tue, 27 Mar 2012) $ -+// Date : $LastChangedDate: 2012-04-20 12:39:53 +0200 (Fr, 20. Apr 2012) $ - // Author : $LastChangedBy: martin $ - // Version : 3.2.0 --// Revision : $LastChangedRevision: 1308 $ -+// Revision : $LastChangedRevision: 1323 $ - // - /////////////////////////////////////////////////////////////////////////////// - // -@@ -259,7 +259,7 @@ - } else { - $conttp->setVariable("HOST_OPTION_FIELDS","chbGr1a,chbGr1b,chbGr1c,chbGr1d,chbGr1f"); - $conttp->setVariable("SERVICE_OPTION_FIELDS","chbGr2a,chbGr2b,chbGr2c,chbGr2d,chbGr2e,chbGr2g"); -- $conttp->setVariable("VERSION_20_VALUE_MUST",",tfFriendly"); -+ $conttp->setVariable("VERSION_20_VALUE_MUST",",tfValue2"); - } - // Insert data from database in "modify" mode - if (isset($arrModifyData) && ($chkSelModify == "modify")) { diff --git a/net-mgmt/nagiosql/files/patch-nagiosql32-admin-hosts.php b/net-mgmt/nagiosql/files/patch-nagiosql32-admin-hosts.php deleted file mode 100644 index f95da42c5c9c..000000000000 --- a/net-mgmt/nagiosql/files/patch-nagiosql32-admin-hosts.php +++ /dev/null @@ -1,23 +0,0 @@ ---- ../nagiosql/work/./nagiosql32/admin/hosts.php 2012-03-09 07:43:00.000000000 +0100 -+++ ./nagiosql32/admin/hosts.php 2012-04-17 11:54:12.000000000 +0200 -@@ -10,10 +10,10 @@ - // Project : NagiosQL - // Component : Host definition - // Website : http://www.nagiosql.org --// Date : $LastChangedDate: 2012-03-09 07:43:00 +0100 (Fri, 09 Mar 2012) $ -+// Date : $LastChangedDate: 2012-04-05 08:11:59 +0200 (Do, 05. Apr 2012) $ - // Author : $LastChangedBy: martin $ - // Version : 3.2.0 --// Revision : $LastChangedRevision: 1282 $ -+// Revision : $LastChangedRevision: 1315 $ - // - /////////////////////////////////////////////////////////////////////////////// - // -@@ -41,7 +41,6 @@ - if ($chkSelValue1 != "") { - for ($i=1;$i<=8;$i++) { - ${"chkTfArg$i"} = str_replace("!","::bang::",${"chkTfArg$i"}); -- ${"chkTfArg$i"} = str_replace("\\","::back::",${"chkTfArg$i"}); - if (${"chkTfArg$i"} != "") $chkSelValue1 .= "!".${"chkTfArg$i"}; - } - } diff --git a/net-mgmt/nagiosql/files/patch-nagiosql32-admin-services.php b/net-mgmt/nagiosql/files/patch-nagiosql32-admin-services.php deleted file mode 100644 index d2c348ecbedf..000000000000 --- a/net-mgmt/nagiosql/files/patch-nagiosql32-admin-services.php +++ /dev/null @@ -1,23 +0,0 @@ ---- ../nagiosql/work/./nagiosql32/admin/services.php 2012-03-09 07:43:00.000000000 +0100 -+++ ./nagiosql32/admin/services.php 2012-04-17 11:53:36.000000000 +0200 -@@ -10,10 +10,10 @@ - // Project : NagiosQL - // Component : Service definition - // Website : http://www.nagiosql.org --// Date : $LastChangedDate: 2012-03-09 07:43:00 +0100 (Fri, 09 Mar 2012) $ -+// Date : $LastChangedDate: 2012-04-05 08:11:59 +0200 (Do, 05. Apr 2012) $ - // Author : $LastChangedBy: martin $ - // Version : 3.2.0 --// Revision : $LastChangedRevision: 1282 $ -+// Revision : $LastChangedRevision: 1315 $ - // - /////////////////////////////////////////////////////////////////////////////// - // -@@ -41,7 +41,6 @@ - if ($chkSelValue1 != "") { - for ($i=1;$i<=8;$i++) { - ${"chkTfArg$i"} = str_replace("!","::bang::",${"chkTfArg$i"}); -- ${"chkTfArg$i"} = str_replace("\\","::back::",${"chkTfArg$i"}); - if (${"chkTfArg$i"} != "") $chkSelValue1 .= "!".${"chkTfArg$i"}; - } - } diff --git a/net-mgmt/nagiosql/files/patch-nagiosql32-admin-templatedefinitions.php b/net-mgmt/nagiosql/files/patch-nagiosql32-admin-templatedefinitions.php deleted file mode 100644 index 1cdfb1e56f49..000000000000 --- a/net-mgmt/nagiosql/files/patch-nagiosql32-admin-templatedefinitions.php +++ /dev/null @@ -1,44 +0,0 @@ ---- ../nagiosql/work/./nagiosql32/admin/templatedefinitions.php 2012-02-27 13:01:17.000000000 +0100 -+++ ./nagiosql32/admin/templatedefinitions.php 2012-04-05 08:12:08.000000000 +0200 -@@ -10,10 +10,10 @@ - // Project : NagiosQL - // Component : Template definition list - // Website : http://www.nagiosql.org --// Date : $LastChangedDate: 2012-02-27 13:01:17 +0100 (Mon, 27 Feb 2012) $ -+// Date : $LastChangedDate: 2012-04-05 08:11:59 +0200 (Do, 05. Apr 2012) $ - // Author : $LastChangedBy: martin $ - // Version : 3.2.0 --// Revision : $LastChangedRevision: 1257 $ -+// Revision : $LastChangedRevision: 1315 $ - // - /////////////////////////////////////////////////////////////////////////////// - // -@@ -102,8 +102,10 @@ - if ($chkMode == "add") { - if ($arrDefinition[1] == 1) { - $strSQL2 = "SELECT `template_name` FROM `tbl_".$chkPreTab."template` WHERE `id` = ".$arrDefinition[0]; -+ $strSQL3 = "SELECT `active` FROM `tbl_".$chkPreTab."template` WHERE `id` = ".$arrDefinition[0]; - } else { - $strSQL2 = "SELECT `name` FROM `tbl_".$chkPreTab."` WHERE `id` = ".$arrDefinition[0]; -+ $strSQL3 = "SELECT `active` FROM `tbl_".$chkPreTab."` WHERE `id` = ".$arrDefinition[0]; - } - if (isset($_SESSION['templatedefinition']) && is_array($_SESSION['templatedefinition'])) { - $intCheck = 0; -@@ -118,7 +120,7 @@ - $arrTemp['idTable'] = $arrDefinition[1]; - $arrTemp['idSort'] = 0; - $arrTemp['status'] = 0; -- $arrTemp['active'] = 0; -+ $arrTemp['active'] = $myDBClass->getFieldData($strSQL3)+0; - $_SESSION['templatedefinition'][] = $arrTemp; - } - } else { -@@ -127,7 +129,7 @@ - $arrTemp['idTable'] = $arrDefinition[1]; - $arrTemp['idSort'] = 0; - $arrTemp['status'] = 0; -- $arrTemp['active'] = 0; -+ $arrTemp['active'] = $myDBClass->getFieldData($strSQL3)+0; - $_SESSION['templatedefinition'][] = $arrTemp; - } - } diff --git a/net-mgmt/nagiosql/files/patch-nagiosql32-functions-config__class.php b/net-mgmt/nagiosql/files/patch-nagiosql32-functions-config__class.php deleted file mode 100644 index 7282c7213220..000000000000 --- a/net-mgmt/nagiosql/files/patch-nagiosql32-functions-config__class.php +++ /dev/null @@ -1,61 +0,0 @@ ---- ../nagiosql/work/./nagiosql32/functions/config_class.php 2012-03-07 10:38:34.000000000 +0100 -+++ ./nagiosql32/functions/config_class.php 2012-04-17 11:59:16.000000000 +0200 -@@ -10,10 +10,10 @@ - // Project : NagiosQL - // Component : Configuration Class - // Website : http://www.nagiosql.org --// Date : $LastChangedDate: 2012-03-07 10:38:34 +0100 (Wed, 07 Mar 2012) $ -+// Date : $LastChangedDate: 2012-04-17 11:47:05 +0200 (Di, 17. Apr 2012) $ - // Author : $LastChangedBy: martin $ - // Version : 3.2.0 --// Revision : $LastChangedRevision: 1275 $ -+// Revision : $LastChangedRevision: 1319 $ - // - /////////////////////////////////////////////////////////////////////////////////////////////// - // -@@ -749,13 +749,6 @@ - // - /////////////////////////////////////////////////////////////////////////////////////////// - function createConfigSingle($strTableName,$intDbId = 0,$intMode = 0) { -- // Get write access groups -- if (isset($_SESSION['userid'])) { -- $strAccess = $this->myVisClass->getAccGroups('write'); -- $strAccWhere = " AND `access_group` IN ($strAccess) "; -- } else { -- $strAccWhere = ""; -- } - // Do not create configs in common domain - if ($this->intDomainId == 0) { - $this->processClassMessage(translate('It is not possible to write config files directly from the common domain!')."::",$this->strErrorMessage); -@@ -769,9 +762,9 @@ - $strDomainWhere = " (`config_id`=".$this->intDomainId.") "; - } - if ($intDbId == 0) { -- $strSQL = "SELECT * FROM `".$strTableName."` WHERE $strDomainWhere AND `active`='1' $strAccWhere ORDER BY `id`"; -+ $strSQL = "SELECT * FROM `".$strTableName."` WHERE $strDomainWhere AND `active`='1' ORDER BY `id`"; - } else { -- $strSQL = "SELECT * FROM `".$strTableName."` WHERE $strDomainWhere AND `active`='1' $strAccWhere AND `id`=$intDbId"; -+ $strSQL = "SELECT * FROM `".$strTableName."` WHERE $strDomainWhere AND `active`='1' AND `id`=$intDbId"; - } - $booReturn = $this->myDBClass->getDataArray($strSQL,$arrData,$intDataCount); - if (($booReturn != false) && ($intDataCount != 0)) { -@@ -1381,8 +1374,8 @@ - if ($key == "contacts") $value = $this->checkTpl($value,"contacts_tploptions","tbl_host",$intDataId,$intSkip); - if ($key == "contact_groups") $value = $this->checkTpl($value,"contact_groups_tploptions","tbl_host",$intDataId,$intSkip); - if ($key == "use") $value = $this->checkTpl($value,"use_template_tploptions","tbl_host",$intDataId,$intSkip); -+ if ($key == "check_command") $value = str_replace("\::bang::","\!",$value); - if ($key == "check_command") $value = str_replace("::bang::","\!",$value); -- if ($key == "check_command") $value = str_replace("::back::","\\\\",$value); - } - if ($strTableName == "tbl_service") { - if ($key == "use_template") $key = "use"; -@@ -1403,8 +1396,8 @@ - if ($key == "contacts") $value = $this->checkTpl($value,"contacts_tploptions","tbl_service",$intDataId,$intSkip); - if ($key == "contact_groups") $value = $this->checkTpl($value,"contact_groups_tploptions","tbl_service",$intDataId,$intSkip); - if ($key == "use") $value = $this->checkTpl($value,"use_template_tploptions","tbl_service",$intDataId,$intSkip); -+ if ($key == "check_command") $value = str_replace("\::bang::","\!",$value); - if ($key == "check_command") $value = str_replace("::bang::","\!",$value); -- if ($key == "check_command") $value = str_replace("::back::","\\\\",$value); - } - if ($strTableName == "tbl_hosttemplate") { - if ($key == "template_name") $key = "name"; diff --git a/net-mgmt/nagiosql/files/patch-nagiosql32-functions-import__class.php b/net-mgmt/nagiosql/files/patch-nagiosql32-functions-import__class.php deleted file mode 100644 index 74da2c80d9ac..000000000000 --- a/net-mgmt/nagiosql/files/patch-nagiosql32-functions-import__class.php +++ /dev/null @@ -1,24 +0,0 @@ ---- ../nagiosql/work/./nagiosql32/functions/import_class.php 2012-03-07 10:38:34.000000000 +0100 -+++ ./nagiosql32/functions/import_class.php 2012-04-17 11:47:08.000000000 +0200 -@@ -10,10 +10,10 @@ - // Project : NagiosQL - // Component : Import Class - // Website : http://www.nagiosql.org --// Date : $LastChangedDate: 2012-03-07 10:38:34 +0100 (Wed, 07 Mar 2012) $ -+// Date : $LastChangedDate: 2012-04-17 11:47:05 +0200 (Di, 17. Apr 2012) $ - // Author : $LastChangedBy: martin $ - // Version : 3.2.0 --// Revision : $LastChangedRevision: 1275 $ -+// Revision : $LastChangedRevision: 1319 $ - // - /////////////////////////////////////////////////////////////////////////////////////////////// - // -@@ -75,7 +75,7 @@ - $intRemoveTmp = 0; - $strFileName = trim($strFileName); - $intReturn = $this->myConfigClass->getConfigData($intConfigId,"method",$intMethod); -- if ($intReturn != 0) { $this->strErrorMessage .= translate('Unable to get configuration data:')."method::"; return(1); } -+ if ($intReturn != 0) { $this->strErrorMessage .= translate('Unable to get configuration data:')." method::"; return(1); } - // Read import file - // Local file system - if ($intMethod == 1) { diff --git a/net-mgmt/nagiosql/files/patch-nagiosql32-functions-prepend__adm.php b/net-mgmt/nagiosql/files/patch-nagiosql32-functions-prepend__adm.php deleted file mode 100644 index 7109fa87ab71..000000000000 --- a/net-mgmt/nagiosql/files/patch-nagiosql32-functions-prepend__adm.php +++ /dev/null @@ -1,11 +0,0 @@ ---- ../nagiosql/work/./nagiosql32/functions/prepend_adm.php 2012-03-27 12:47:56.000000000 +0200 -+++ ./nagiosql32/functions/prepend_adm.php 2012-03-27 12:47:58.000000000 +0200 -@@ -9,7 +9,7 @@ - // Project : NagiosQL - // Component : Preprocessing script - // Website : http://www.nagiosql.org --// Date : $LastChangedDate: 2012-03-27 12:47:56 +0200 (Tue, 27 Mar 2012) $ -+// Date : $LastChangedDate: 2012-03-27 12:47:56 +0200 (Di, 27. Mär 2012) $ - // Author : $LastChangedBy: martin $ - // Version : 3.2.0 - // Revision : $LastChangedRevision: 1308 $ diff --git a/net-mgmt/nagiosql/files/patch-nagiosql32-functions-prepend__content.php b/net-mgmt/nagiosql/files/patch-nagiosql32-functions-prepend__content.php deleted file mode 100644 index 9a1bff1f9ef8..000000000000 --- a/net-mgmt/nagiosql/files/patch-nagiosql32-functions-prepend__content.php +++ /dev/null @@ -1,32 +0,0 @@ ---- ../nagiosql/work/./nagiosql32/functions/prepend_content.php 2012-02-29 11:01:14.000000000 +0100 -+++ ./nagiosql32/functions/prepend_content.php 2012-04-04 07:30:16.000000000 +0200 -@@ -178,6 +178,14 @@ - $chkTfValue19 = addslashes($chkTfValue19); - $chkTfValue20 = addslashes($chkTfValue20); - $chkTaValue1 = addslashes($chkTaValue1); -+ $chkTfArg1 = addslashes($chkTfArg1); -+ $chkTfArg2 = addslashes($chkTfArg2); -+ $chkTfArg3 = addslashes($chkTfArg3); -+ $chkTfArg4 = addslashes($chkTfArg4); -+ $chkTfArg5 = addslashes($chkTfArg5); -+ $chkTfArg6 = addslashes($chkTfArg6); -+ $chkTfArg7 = addslashes($chkTfArg7); -+ $chkTfArg8 = addslashes($chkTfArg8); - $chkTaFileText = addslashes($chkTaFileText); - } - // -@@ -204,6 +212,14 @@ - $chkTfValue18 = $myVisClass->tfSecure($chkTfValue18); - $chkTfValue19 = $myVisClass->tfSecure($chkTfValue19); - $chkTfValue20 = $myVisClass->tfSecure($chkTfValue20); -+$chkTfArg1 = $myVisClass->tfSecure($chkTfArg1); -+$chkTfArg2 = $myVisClass->tfSecure($chkTfArg2); -+$chkTfArg3 = $myVisClass->tfSecure($chkTfArg3); -+$chkTfArg4 = $myVisClass->tfSecure($chkTfArg4); -+$chkTfArg5 = $myVisClass->tfSecure($chkTfArg5); -+$chkTfArg6 = $myVisClass->tfSecure($chkTfArg6); -+$chkTfArg7 = $myVisClass->tfSecure($chkTfArg7); -+$chkTfArg8 = $myVisClass->tfSecure($chkTfArg8); - $chkTaValue1 = $myVisClass->tfSecure($chkTaValue1); - $chkTaFileText = stripslashes($chkTaFileText); - // diff --git a/net-mgmt/nagiosql/files/patch-nagiosql32-templates-admin-user.tpl.htm b/net-mgmt/nagiosql/files/patch-nagiosql32-templates-admin-user.tpl.htm deleted file mode 100644 index 86ab3decb81e..000000000000 --- a/net-mgmt/nagiosql/files/patch-nagiosql32-templates-admin-user.tpl.htm +++ /dev/null @@ -1,11 +0,0 @@ ---- ../nagiosql/work/./nagiosql32/templates/admin/user.tpl.htm 2012-03-27 12:47:56.000000000 +0200 -+++ ./nagiosql32/templates/admin/user.tpl.htm 2012-03-27 12:47:58.000000000 +0200 -@@ -3,7 +3,7 @@ - <!-- Project : NagiosQL --> - <!-- Component : User template --> - <!-- Website : http://www.nagiosql.org --> --<!-- Date : $LastChangedDate: 2012-03-27 12:47:56 +0200 (Tue, 27 Mar 2012) $ --> -+<!-- Date : $LastChangedDate: 2012-03-27 12:47:56 +0200 (Di, 27. Mär 2012) $ --> - <!-- Author : $LastChangedBy: martin $ --> - <!-- Version : 3.2.0 --> - <!-- Revision : $LastChangedRevision: 1308 $ --> diff --git a/net-mgmt/nagiosql/files/pkg-install.in b/net-mgmt/nagiosql/files/pkg-install.in new file mode 100644 index 000000000000..d27a1fe45264 --- /dev/null +++ b/net-mgmt/nagiosql/files/pkg-install.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD$ + +WWWOWN=%%WWWOWN%% +WWWGRP=%%WWWGRP%% +NAGIOSUSER=%%NAGIOSUSER%% + +ETCDIR=%%ETCDIR%% +WWWDIR=%%WWWDIR%% + +if [ "$2" = "POST-INSTALL" ]; then + echo "=========== p o s t - i n s t a l l =================" + install -m 750 -o ${WWWOWN} -g ${NAGIOSUSER} -d ${ETCDIR} + install -m 750 -o ${WWWOWN} -g ${NAGIOSUSER} -d ${ETCDIR}/ssh + install -m 750 -o ${WWWOWN} -g ${NAGIOSUSER} -d ${ETCDIR}/hosts + install -m 750 -o ${WWWOWN} -g ${NAGIOSUSER} -d ${ETCDIR}/services + install -m 750 -o ${WWWOWN} -g ${NAGIOSUSER} -d ${ETCDIR}/backup + install -m 750 -o ${WWWOWN} -g ${NAGIOSUSER} -d ${ETCDIR}/backup/hosts + install -m 750 -o ${WWWOWN} -g ${NAGIOSUSER} -d ${ETCDIR}/backup/services + install -m 750 -o ${WWWOWN} -g ${NAGIOSUSER} -d ${ETCDIR}/backup/ssh + chown ${WWWOWN}:${WWWGRP} ${WWWDIR}/config +fi diff --git a/net-mgmt/nagiosql/files/pkg-message.in b/net-mgmt/nagiosql/files/pkg-message.in index e66544f63b3b..e783601d0ef9 100644 --- a/net-mgmt/nagiosql/files/pkg-message.in +++ b/net-mgmt/nagiosql/files/pkg-message.in @@ -1,5 +1,5 @@ ======================================================================= -Nagiosql is now installed. If you intall it for the first time, +Nagiosql is now installed. If you install it for the first time, you may have to add an alias in apache config for it. Alias /nagiosql/ "%%WWWDIR%%/" |