From 2a74583ea36bedf5f56c4cffcaa88ad317679104 Mon Sep 17 00:00:00 2001 From: Matthew Seaman Date: Fri, 3 Dec 2021 18:10:10 +0000 Subject: [PATCH] sysutils/rsyslog8: update pkg-message and add sample config file Upstream changes mean that the advice formerly given in pkg-message to modify the default /etc/syslog.conf file as the basis of a new ${PREFIX}/etc/rsyslog.conf are now less useful and confusing to end users. Therefore, update the pkg-message accordingly, and install a sample config file which should duplicated the functionality of the base syslog.conf. PR: 260158 Reported by: Mark Johnston --- sysutils/rsyslog8/Makefile | 5 +++ sysutils/rsyslog8/files/pkg-message.in | 19 ++++------- sysutils/rsyslog8/files/rsyslog.conf | 47 ++++++++++++++++++++++++++ sysutils/rsyslog8/pkg-plist | 2 ++ 4 files changed, 61 insertions(+), 12 deletions(-) create mode 100644 sysutils/rsyslog8/files/rsyslog.conf diff --git a/sysutils/rsyslog8/Makefile b/sysutils/rsyslog8/Makefile index 0bfd895b2a9ad..e39a8c31eba22 100644 --- a/sysutils/rsyslog8/Makefile +++ b/sysutils/rsyslog8/Makefile @@ -1,5 +1,6 @@ PORTNAME= rsyslog PORTVERSION= 8.2110.0 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.rsyslog.com/files/download/rsyslog/ @@ -152,6 +153,10 @@ post-patch: @${REINPLACE_CMD} -e 's,/lib/rsyslog,${PREFIX}/lib/rsyslog,' ${WRKSRC}/tools/syslogd.c @${FIND} ${WRKSRC} -name '*.bak' -delete +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/rsyslog.d + ${INSTALL_DATA} ${FILESDIR}/rsyslog.conf ${STAGEDIR}${PREFIX}/etc/rsyslog.conf.sample + post-install-DOCS-on: .for SQL in ${PORTDOCS:M*.sql} @${MKDIR} ${STAGEDIR}${DOCSDIR}/${SQL:H} diff --git a/sysutils/rsyslog8/files/pkg-message.in b/sysutils/rsyslog8/files/pkg-message.in index 87e6076dbf4ec..c9dacc98a087f 100644 --- a/sysutils/rsyslog8/files/pkg-message.in +++ b/sysutils/rsyslog8/files/pkg-message.in @@ -1,24 +1,19 @@ [ { type: install message: <=notice /var/log/devd.log +# } + +include(file="/usr/local/etc/rsyslog.d/*.conf" mode="optional") diff --git a/sysutils/rsyslog8/pkg-plist b/sysutils/rsyslog8/pkg-plist index 3546b22d7adda..7f512c039c167 100644 --- a/sysutils/rsyslog8/pkg-plist +++ b/sysutils/rsyslog8/pkg-plist @@ -1,3 +1,5 @@ +@dir etc/rsyslog.d +@sample etc/rsyslog.conf.sample lib/rsyslog/fmhash.so lib/rsyslog/fmhttp.so lib/rsyslog/im3195.so