pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/rsyslog Update rsyslog to 8.7.0.
details: https://anonhg.NetBSD.org/pkgsrc/rev/721643a126b5
branches: trunk
changeset: 644720:721643a126b5
user: fhajny <fhajny%pkgsrc.org@localhost>
date: Fri Jan 16 16:58:28 2015 +0000
description:
Update rsyslog to 8.7.0.
- add message metadata "system" to msg object
this permits to store metadata alongside the message
- imfile: add support for "filename" metadata
this is useful in cases where wildcards are used
- imptcp: make stats counter names consistent with what imudp, imtcp uses
- added new module "omkafka" to support writing to Apache Kafka
- omfwd: add new "udp.senddelay" parameter
- mmnormalize enhancements
- RainerScript "foreach" iterator and array reading support
- now requires liblognorm >= 1.0.2
- add support for systemd >= 209 library names
- BSD "ntp" facility (value 12) is now also supported in filter
- bugfix: global(localHostName="xxx") was not respected in all modules
- bugfix: emit correct error message on config-file-not-found
- bugfix: impstats emitted invalid JSON format (if JSON was selected)
- bugfix: (small) memory leak in omfile's outchannel code
- bugfix: imuxsock did not deactivate some code not supported by platform
diffstat:
sysutils/rsyslog/Makefile | 5 +-
sysutils/rsyslog/Makefile.common | 4 +-
sysutils/rsyslog/distinfo | 16 +++--
sysutils/rsyslog/patches/patch-platform_redhat_rsyslog.conf | 21 ++++----
sysutils/rsyslog/patches/patch-plugins_imptcp_imptcp.c | 32 +++++++++++++
sysutils/rsyslog/patches/patch-runtime_nsd__ptcp.c | 32 +++++++++++++
sysutils/rsyslog/patches/patch-tools_rsyslogd.c | 16 +++---
sysutils/rsyslog/patches/patch-tools_syslogd.c | 4 +-
8 files changed, 97 insertions(+), 33 deletions(-)
diffs (220 lines):
diff -r ab5441685530 -r 721643a126b5 sysutils/rsyslog/Makefile
--- a/sysutils/rsyslog/Makefile Fri Jan 16 16:40:56 2015 +0000
+++ b/sysutils/rsyslog/Makefile Fri Jan 16 16:58:28 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2014/09/25 08:49:50 fhajny Exp $
+# $NetBSD: Makefile,v 1.3 2015/01/16 16:58:28 fhajny Exp $
#
BUILDLINK_DEPMETHOD.libestr= full
@@ -9,8 +9,6 @@
COMMENT= The enhanced syslogd for Unix
-#.include "options.mk"
-
CONFIGURE_ARGS+= --disable-testbench --enable-cached-man-pages \
--enable-diagtools --enable-usertools --enable-uuid \
--enable-imdiag --enable-imfile --enable-impstats \
@@ -52,5 +50,6 @@
${INSTALL_DATA} ${WRKSRC}/platform/redhat/rsyslog.conf \
${DESTDIR}${EGDIR}/rsyslog.conf
+BUILDLINK_ABI_DEPENDS.liblognorm+= liblognorm>=1.0.2
.include "../../sysutils/liblognorm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r ab5441685530 -r 721643a126b5 sysutils/rsyslog/Makefile.common
--- a/sysutils/rsyslog/Makefile.common Fri Jan 16 16:40:56 2015 +0000
+++ b/sysutils/rsyslog/Makefile.common Fri Jan 16 16:58:28 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.4 2014/12/12 12:47:46 fhajny Exp $
+# $NetBSD: Makefile.common,v 1.5 2015/01/16 16:58:28 fhajny Exp $
# used by sysutils/rsyslog/Makefile
# used by sysutils/rsyslog-dbi/Makefile
# used by sysutils/rsyslog-gnutls/Makefile
@@ -11,7 +11,7 @@
.include "../../mk/bsd.prefs.mk"
-DISTNAME= rsyslog-8.6.0
+DISTNAME= rsyslog-8.7.0
CATEGORIES= sysutils
MASTER_SITES= http://www.rsyslog.com/files/download/rsyslog/
diff -r ab5441685530 -r 721643a126b5 sysutils/rsyslog/distinfo
--- a/sysutils/rsyslog/distinfo Fri Jan 16 16:40:56 2015 +0000
+++ b/sysutils/rsyslog/distinfo Fri Jan 16 16:58:28 2015 +0000
@@ -1,13 +1,15 @@
-$NetBSD: distinfo,v 1.3 2014/12/12 12:47:46 fhajny Exp $
+$NetBSD: distinfo,v 1.4 2015/01/16 16:58:28 fhajny Exp $
-SHA1 (rsyslog-8.6.0.tar.gz) = 06e912c8d48a9736ab2a1810f4f7c76a20abb0eb
-RMD160 (rsyslog-8.6.0.tar.gz) = 12f53341404fd20ded9f9de50b2e57aedef89205
-Size (rsyslog-8.6.0.tar.gz) = 1975854 bytes
+SHA1 (rsyslog-8.7.0.tar.gz) = 7f3909e58ec2f785c6aadf2e0685479150c82cc7
+RMD160 (rsyslog-8.7.0.tar.gz) = 2bb24de029edc69e0724c012bbe710e063d1907f
+Size (rsyslog-8.7.0.tar.gz) = 2003365 bytes
SHA1 (patch-grammar_lexer.l) = d52518e8b962820a030e01fcf5d00c1e3f1377ec
-SHA1 (patch-platform_redhat_rsyslog.conf) = a61cf6750e21bfb8ddb4fd8150b98835231cb950
+SHA1 (patch-platform_redhat_rsyslog.conf) = b2fc1dbeb2b679b82d6c1a86ec1e4e72ef460433
SHA1 (patch-plugins_imfile_imfile.c) = 6909e68e700d61099d9200fd26072bd7f199639f
+SHA1 (patch-plugins_imptcp_imptcp.c) = 47f7184acf0279df4117924108f961529b22a21e
SHA1 (patch-plugins_imuxsock_imuxsock.c) = a3c682d5a2132cd4796893f286193259087223da
SHA1 (patch-plugins_mmexternal_mmexternal.c) = 12053abfd32553c4c29faa131b803e7edfaa3803
+SHA1 (patch-runtime_nsd__ptcp.c) = fcc8bdd5c5068cc0fb2f3b29d53a6bee41c7a437
SHA1 (patch-tools_rsyslogd.8) = a3c79f551111b7bf5933ca5e0930b1f52875f341
-SHA1 (patch-tools_rsyslogd.c) = 7d33c23a7c5b61317e2857df11b7b62e6c8f188b
-SHA1 (patch-tools_syslogd.c) = 94a53b2a2cfbc2b57c29d90c276fa4877fdfd2f2
+SHA1 (patch-tools_rsyslogd.c) = 5d480bc32f44ee308acad76588b250f8a56d894f
+SHA1 (patch-tools_syslogd.c) = 6855271d05da979d53ae7cee167163a563922b00
diff -r ab5441685530 -r 721643a126b5 sysutils/rsyslog/patches/patch-platform_redhat_rsyslog.conf
--- a/sysutils/rsyslog/patches/patch-platform_redhat_rsyslog.conf Fri Jan 16 16:40:56 2015 +0000
+++ b/sysutils/rsyslog/patches/patch-platform_redhat_rsyslog.conf Fri Jan 16 16:58:28 2015 +0000
@@ -1,17 +1,16 @@
-$NetBSD: patch-platform_redhat_rsyslog.conf,v 1.2 2014/12/12 12:47:46 fhajny Exp $
+$NetBSD: patch-platform_redhat_rsyslog.conf,v 1.3 2015/01/16 16:58:28 fhajny Exp $
Fix sample config file. Auto-select kernel logging module.
---- platform/redhat/rsyslog.conf.orig 2014-11-17 15:08:14.000000000 +0000
+--- platform/redhat/rsyslog.conf.orig 2015-01-12 14:15:52.000000000 +0000
+++ platform/redhat/rsyslog.conf
-@@ -4,15 +4,14 @@
- * like we have with the default config. For more advanced
- * things, RainerScript configuration is suggested.
- *
-- * For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
-- * or latest version online at http://www.rsyslog.com/doc/rsyslog_conf.html
-+ * For more information see http://www.rsyslog.com/doc/rsyslog_conf.html
- * If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
- */
+@@ -4,14 +4,14 @@
+ # like we have with the default config. For more advanced
+ # things, RainerScript configuration is suggested.
+ #
+-# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
++# For more information see `man rsyslog.conf`
+ # or latest version online at http://www.rsyslog.com/doc/rsyslog_conf.html
+ # If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
#### MODULES ####
diff -r ab5441685530 -r 721643a126b5 sysutils/rsyslog/patches/patch-plugins_imptcp_imptcp.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/rsyslog/patches/patch-plugins_imptcp_imptcp.c Fri Jan 16 16:58:28 2015 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-plugins_imptcp_imptcp.c,v 1.1 2015/01/16 16:58:28 fhajny Exp $
+
+Improve portability, fix build on SunOS and BSD.
+--- plugins/imptcp/imptcp.c.orig 2015-01-08 14:58:14.000000000 +0000
++++ plugins/imptcp/imptcp.c
+@@ -585,7 +585,7 @@ EnableKeepAlive(ptcplstn_t *pLstn, int s
+ if(pLstn->pSrv->iKeepAliveProbes > 0) {
+ optval = pLstn->pSrv->iKeepAliveProbes;
+ optlen = sizeof(optval);
+- ret = setsockopt(sock, SOL_TCP, TCP_KEEPCNT, &optval, optlen);
++ ret = setsockopt(sock, IPPROTO_TCP, TCP_KEEPCNT, &optval, optlen);
+ } else {
+ ret = 0;
+ }
+@@ -600,7 +600,7 @@ EnableKeepAlive(ptcplstn_t *pLstn, int s
+ if(pLstn->pSrv->iKeepAliveTime > 0) {
+ optval = pLstn->pSrv->iKeepAliveTime;
+ optlen = sizeof(optval);
+- ret = setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, &optval, optlen);
++ ret = setsockopt(sock, IPPROTO_TCP, TCP_KEEPIDLE, &optval, optlen);
+ } else {
+ ret = 0;
+ }
+@@ -615,7 +615,7 @@ EnableKeepAlive(ptcplstn_t *pLstn, int s
+ if(pLstn->pSrv->iKeepAliveIntvl > 0) {
+ optval = pLstn->pSrv->iKeepAliveIntvl;
+ optlen = sizeof(optval);
+- ret = setsockopt(sock, SOL_TCP, TCP_KEEPINTVL, &optval, optlen);
++ ret = setsockopt(sock, IPPROTO_TCP, TCP_KEEPINTVL, &optval, optlen);
+ } else {
+ ret = 0;
+ }
diff -r ab5441685530 -r 721643a126b5 sysutils/rsyslog/patches/patch-runtime_nsd__ptcp.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/rsyslog/patches/patch-runtime_nsd__ptcp.c Fri Jan 16 16:58:28 2015 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-runtime_nsd__ptcp.c,v 1.1 2015/01/16 16:58:28 fhajny Exp $
+
+Improve portability, fix build on SunOS and BSD.
+--- runtime/nsd_ptcp.c.orig 2015-01-08 14:58:14.000000000 +0000
++++ runtime/nsd_ptcp.c
+@@ -656,7 +656,7 @@ EnableKeepAlive(nsd_t *pNsd)
+ if(pThis->iKeepAliveProbes > 0) {
+ optval = pThis->iKeepAliveProbes;
+ optlen = sizeof(optval);
+- ret = setsockopt(pThis->sock, SOL_TCP, TCP_KEEPCNT, &optval, optlen);
++ ret = setsockopt(pThis->sock, IPPROTO_TCP, TCP_KEEPCNT, &optval, optlen);
+ } else {
+ ret = 0;
+ }
+@@ -671,7 +671,7 @@ EnableKeepAlive(nsd_t *pNsd)
+ if(pThis->iKeepAliveTime > 0) {
+ optval = pThis->iKeepAliveTime;
+ optlen = sizeof(optval);
+- ret = setsockopt(pThis->sock, SOL_TCP, TCP_KEEPIDLE, &optval, optlen);
++ ret = setsockopt(pThis->sock, IPPROTO_TCP, TCP_KEEPIDLE, &optval, optlen);
+ } else {
+ ret = 0;
+ }
+@@ -686,7 +686,7 @@ EnableKeepAlive(nsd_t *pNsd)
+ if(pThis->iKeepAliveIntvl > 0) {
+ optval = pThis->iKeepAliveIntvl;
+ optlen = sizeof(optval);
+- ret = setsockopt(pThis->sock, SOL_TCP, TCP_KEEPINTVL, &optval, optlen);
++ ret = setsockopt(pThis->sock, IPPROTO_TCP, TCP_KEEPINTVL, &optval, optlen);
+ } else {
+ ret = 0;
+ }
diff -r ab5441685530 -r 721643a126b5 sysutils/rsyslog/patches/patch-tools_rsyslogd.c
--- a/sysutils/rsyslog/patches/patch-tools_rsyslogd.c Fri Jan 16 16:40:56 2015 +0000
+++ b/sysutils/rsyslog/patches/patch-tools_rsyslogd.c Fri Jan 16 16:58:28 2015 +0000
@@ -1,18 +1,18 @@
-$NetBSD: patch-tools_rsyslogd.c,v 1.2 2014/12/12 12:47:46 fhajny Exp $
+$NetBSD: patch-tools_rsyslogd.c,v 1.3 2015/01/16 16:58:28 fhajny Exp $
Need errno.h on NetBSD. Default PID file path.
---- tools/rsyslogd.c.orig 2014-12-02 10:15:16.000000000 +0000
+--- tools/rsyslogd.c.orig 2015-01-12 08:49:44.000000000 +0000
+++ tools/rsyslogd.c
-@@ -27,7 +27,7 @@
- #include <signal.h>
- #include <sys/wait.h>
- #include <liblogging/stdlog.h>
+@@ -29,7 +29,7 @@
+ #ifdef HAVE_LIBLOGGING_STDLOG
+ # include <liblogging/stdlog.h>
+ #endif
-#ifdef OS_SOLARIS
-+#if defined(OS_SOLARIS) || defined(__NetBSD__)
++#if defined(OS_SOLARIS) || defined(OS_BSD)
# include <errno.h>
#else
# include <sys/errno.h>
-@@ -84,7 +84,7 @@ void rsyslogdDoDie(int sig);
+@@ -87,7 +87,7 @@ void rsyslogdDoDie(int sig);
#ifndef PATH_PIDFILE
diff -r ab5441685530 -r 721643a126b5 sysutils/rsyslog/patches/patch-tools_syslogd.c
--- a/sysutils/rsyslog/patches/patch-tools_syslogd.c Fri Jan 16 16:40:56 2015 +0000
+++ b/sysutils/rsyslog/patches/patch-tools_syslogd.c Fri Jan 16 16:58:28 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-tools_syslogd.c,v 1.2 2014/12/12 12:47:46 fhajny Exp $
+$NetBSD: patch-tools_syslogd.c,v 1.3 2015/01/16 16:58:28 fhajny Exp $
Need errno.h on NetBSD. Fix default PID path.
--- tools/syslogd.c.orig 2014-12-02 10:15:16.000000000 +0000
@@ -8,7 +8,7 @@
#include <assert.h>
-#ifdef OS_SOLARIS
-+#if defined(OS_SOLARIS) || defined(__NetBSD__)
++#if defined(OS_SOLARIS) || defined(OS_BSD)
# include <errno.h>
+#else
+# include <sys/errno.h>
Home |
Main Index |
Thread Index |
Old Index