summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2017-05-02 06:30:46 +0000
committerMartin Wilke <miwi@FreeBSD.org>2017-05-02 06:30:46 +0000
commitfa3c17371e9998caf3684a9c104439377023a7e3 (patch)
tree364ab122821ba6ced0090db7729020d4e9b35990
parentAs of today, USE_GCC=yes (and USE_GCC=any in most circumstances) (diff)
- Fixed a error writing to the syslog
PR: 21145 Submitted by: Franco Fichtner Reported by: Alexander Shursha Approved by: maintainer timeout
-rw-r--r--www/havp/Makefile2
-rw-r--r--www/havp/files/patch-havp_logfile.cpp14
2 files changed, 15 insertions, 1 deletions
diff --git a/www/havp/Makefile b/www/havp/Makefile
index 0a96fb05d23c..c646ba0ac607 100644
--- a/www/havp/Makefile
+++ b/www/havp/Makefile
@@ -3,7 +3,7 @@
PORTNAME= havp
PORTVERSION= 0.91
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= www
MASTER_SITES= http://www.server-side.de/download/ \
http://bio3k.softboard.ru/uploads/arch/ \
diff --git a/www/havp/files/patch-havp_logfile.cpp b/www/havp/files/patch-havp_logfile.cpp
new file mode 100644
index 000000000000..48248a2b02a0
--- /dev/null
+++ b/www/havp/files/patch-havp_logfile.cpp
@@ -0,0 +1,14 @@
+--- havp/logfile.cpp.orig 2016-06-27 14:16:19.640229000 +0300
++++ havp/logfile.cpp 2016-06-27 14:25:01.272114000 +0300
+@@ -52,7 +52,10 @@
+ SyslogLevel = GetSyslogLevel();
+ SyslogVirusLevel = GetSyslogVirusLevel();
+
+- openlog(Params::GetConfigString("SYSLOGNAME").c_str(), LOG_CONS | LOG_PID, GetSyslogFacility());
++ // FreeBSD don't copy ident, only pointer to ident. So we need store ident itself
++ static string SyslogName;
++ SyslogName = Params::GetConfigString("SYSLOGNAME");
++ openlog(SyslogName.c_str(), LOG_CONS | LOG_PID, GetSyslogFacility());
+
+ return true;
+ }