summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilvioGiunge <alvolivre@live.com>2016-08-19 09:48:29 -0300
committerRenato Botelho <garga@FreeBSD.org>2016-08-19 11:25:35 -0300
commit29f441367184dd4b3fd9b0718ea81f016373bac9 (patch)
tree48914772c9bf93e5344e7b7bdd1f038d736ea0b7
parent4dca8c1ae6758f5c24b4942e67b30643a7bb2d8e (diff)
downloadFreeBSD-ports-29f441367184dd4b3fd9b0718ea81f016373bac9.zip
FreeBSD-ports-29f441367184dd4b3fd9b0718ea81f016373bac9.tar.gz
Fixed port syslog-ng
(cherry picked from commit 096bf95e47a580925b86f7bca5cbff87306624bd)
-rw-r--r--sysutils/pfSense-pkg-syslog-ng/Makefile2
-rw-r--r--sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.inc2
-rw-r--r--sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.xml2
-rw-r--r--sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng_advanced.xml2
-rw-r--r--sysutils/pfSense-pkg-syslog-ng/files/usr/local/www/syslog-ng_log_viewer.php35
5 files changed, 28 insertions, 15 deletions
diff --git a/sysutils/pfSense-pkg-syslog-ng/Makefile b/sysutils/pfSense-pkg-syslog-ng/Makefile
index 0795063..2c41811 100644
--- a/sysutils/pfSense-pkg-syslog-ng/Makefile
+++ b/sysutils/pfSense-pkg-syslog-ng/Makefile
@@ -2,7 +2,7 @@
PORTNAME= pfSense-pkg-syslog-ng
PORTVERSION= 1.1.2
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.inc b/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.inc
index 0d416a1..7dca51f 100644
--- a/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.inc
+++ b/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.inc
@@ -204,7 +204,7 @@ function syslogng_get_log_files($objects) {
function syslogng_build_conf($objects) {
$conf = "# This file is automatically generated by pfSense\n";
$conf .= "# Do not edit manually !\n";
- $conf .= "@version:3.6\n";
+ $conf .= "@version:3.7\n";
foreach ($objects as $object) {
if ($object['objecttype'] == 'log' || $object['objecttype'] == 'options') {
diff --git a/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.xml b/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.xml
index 5a830de..80a1533 100644
--- a/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.xml
+++ b/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng.xml
@@ -63,7 +63,7 @@
</tab>
<tab>
<text>Advanced</text>
- <url>/pkg.php?xml=syslog-ng_advanced.xml</url>
+ <url>/pkg_edit.php?xml=syslog-ng_advanced.xml</url>
</tab>
<tab>
<text>Log Viewer</text>
diff --git a/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng_advanced.xml b/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng_advanced.xml
index f9b588d..8d0fcdc 100644
--- a/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng_advanced.xml
+++ b/sysutils/pfSense-pkg-syslog-ng/files/usr/local/pkg/syslog-ng_advanced.xml
@@ -58,7 +58,7 @@
</tab>
<tab>
<text>Advanced</text>
- <url>/pkg.php?xml=syslog-ng_advanced.xml</url>
+ <url>/pkg_edit.php?xml=syslog-ng_advanced.xml</url>
<active/>
</tab>
<tab>
diff --git a/sysutils/pfSense-pkg-syslog-ng/files/usr/local/www/syslog-ng_log_viewer.php b/sysutils/pfSense-pkg-syslog-ng/files/usr/local/www/syslog-ng_log_viewer.php
index 3f48eae..4577663 100644
--- a/sysutils/pfSense-pkg-syslog-ng/files/usr/local/www/syslog-ng_log_viewer.php
+++ b/sysutils/pfSense-pkg-syslog-ng/files/usr/local/www/syslog-ng_log_viewer.php
@@ -91,18 +91,30 @@ if (file_exists($logfile) && (filesize($logfile) > 0)) {
}
}
-$pgtitle = "Services: Syslog-ng Log Viewer";
+$pgtitle = array(gettext("Package"), gettext("Services: Syslog-ng"), gettext("Logs"));
+
include("head.inc");
?>
+
<?php include("fbegin.inc"); ?>
<?php if ($savemsg) print_info_box($savemsg); ?>
+
+<style>
+
+.border-bottom {
+ border: 1px solid #F5F5F5; border-width: 0px 0 3px 0px;
+}
+
+</style>
+
+
<form action="syslog-ng_log_viewer.php" method="post" name="iform">
-<table width="99%" border="0" cellpadding="0" cellspacing="0">
+<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color: #F5F5F5;">
<tr><td>
<?php
$tab_array = array();
$tab_array[] = array("General", false, "/pkg_edit.php?xml=syslog-ng.xml&amp;id=0");
- $tab_array[] = array("Advanced", false, "/pkg.php?xml=syslog-ng_advanced.xml");
+ $tab_array[] = array("Advanced", false, "/pkg_edit.php?xml=syslog-ng_advanced.xml");
$tab_array[] = array("Log Viewer", true, "/syslog-ng_log_viewer.php");
display_top_tabs($tab_array);
?>
@@ -112,8 +124,9 @@ include("head.inc");
<table id="maintable" class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
- <table>
- <tr><td width="22%">Log File</td><td width="78%"><select name="logfile">
+ <table width="100%" class="panel-default" style="background-color: #FFFFFF;">
+ <h2 class="panel-title" style="background-color: #424242; color: #FFFFFF; border: solid 5px #424242;">Syslog-ng Logs</h2>
+ <tr><td class="border-bottom" width="22%">Log File</td><td class="border-bottom" width="78%"><select name="logfile">
<?php
$log_files = syslogng_get_log_files($objects);
foreach($log_files as $log_file) {
@@ -125,7 +138,7 @@ include("head.inc");
}
?>
</select></td></tr>
- <tr><td width="22%">Limit</td><td width="78%"><select name="limit">
+ <tr><td class="border-bottom" width="22%">Limit</td><td class="border-bottom" width="78%"><select name="limit">
<?php
$limit_options = array("10", "20", "50");
foreach($limit_options as $limit_option) {
@@ -137,8 +150,8 @@ include("head.inc");
}
?>
</select></td></tr>
- <tr><td width="22%">Include Archives</td><td width="78%"><input type="checkbox" name="archives" <?php if($archives) echo " CHECKED"; ?> /></td></tr>
- <tr><td colspan="2">
+ <tr><td class="border-bottom" width="22%">Include Archives</td><td class="border-bottom" width="78%"><input type="checkbox" name="archives" <?php if($archives) echo " CHECKED"; ?> /></td></tr>
+ <tr><td class="border-bottom" colspan="2">
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
if(!empty($log_messages)) {
@@ -152,9 +165,9 @@ include("head.inc");
?>
</table>
</td></tr>
- <tr><td width="22%">Filter</td><td width="78%"><input name="filter" value="<?=$filter?>" /></td></tr>
- <tr><td width="22%">Inverse Filter (NOT)</td><td width="78%"><input type="checkbox" name="not" <?php if($not) echo " CHECKED"; ?> /></td></tr>
- <tr><td colspan="2"><input type="submit" value="Refresh" /></td></tr>
+ <tr><td class="border-bottom" width="22%">Filter</td><td class="border-bottom" width="78%"><input name="filter" value="<?=$filter?>" /></td></tr>
+ <tr><td class="border-bottom" width="22%">Inverse Filter (NOT)</td><td class="border-bottom" width="78%"><input type="checkbox" name="not" <?php if($not) echo " CHECKED"; ?> /></td></tr>
+ <tr><td class="border-bottom" colspan="2"><input type="submit" value="Refresh" /></td></tr>
</table>
</td></tr>
OpenPOWER on IntegriCloud