Date: Fri, 20 Apr 2007 14:10:27 GMT From: ivan.lago@ifom-ieo-campus.it To: freebsd-ports-bugs@FreeBSD.org Subject: re:ports/111462: syslog-ng2 default configuration file path Message-ID: <200704201410.l3KEARnk021584@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/111462; it has been noted by GNATS. From: ivan.lago@ifom-ieo-campus.it To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: re:ports/111462: syslog-ng2 default configuration file path Date: Fri, 20 Apr 2007 14:07:05 +0000 (UTC) >Submitter-Id: current-users >Originator: Ivan Lago >Organization: European Institute of Oncology >Confidential: no >Synopsis: re:ports/111462: syslog-ng2 default configuration file path >Severity: serious >Priority: medium >Category: ports >Class: maintainer-update >Release: FreeBSD 6.2-RELEASE-p3 amd64 >Environment: System: FreeBSD sodio.ifom-ieo-campus.it 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #5: Fri Mar 16 15:21:33 CET 2007 root@sodio.ifom-ieo-campus.it:/usr/obj/usr/src/sys/SODIO amd64 >Description: Among many other things, syslog-ng changed the default configuration file path determination method between 2.0.0 and 2.0.3. This was missed by the port maintainer (an easy mistake if you set $syslog_ng_flags="-f /alt/file.conf" seklecki@ravage:/tmp$ diff -u syslog-ng-2.0.0/syslog-ng.spec.bb \ syslog-ng-2.0.2/syslog-ng.spec.bb | grep -i conf -./configure --prefix=/ --mandir=/usr/share/man --infodir=/usr/share/info \ - --sysconfdir=/etc +./configure --prefix=%{prefix} --mandir=%{_mandir} --infodir=%{prefix}/share/info \ + --sysconfdir=/etc/syslog-ng >How-To-Repeat: portupgrade to 2.0.2 >Fix: --- syslog-ng2.patch begins here --- diff -ruN /usr/ports/sysutils/syslog-ng2/files/pkg-message.in syslog-ng2/files/pkg-message.in --- /usr/ports/sysutils/syslog-ng2/files/pkg-message.in Thu Mar 22 17:30:16 2007 +++ syslog-ng2/files/pkg-message.in Mon Apr 16 16:46:51 2007 @@ -2,8 +2,12 @@ syslog-ng is now installed! To replace FreeBSD's standard syslogd (/usr/sbin/syslogd), complete these steps: -1. Create a configuration file named %%PREFIX%%/etc/syslog-ng/syslog-ng.conf - (a sample named syslog-ng.conf.sample has been included) +1. Create a configuration file named %%PREFIX%%/etc/syslog-ng.conf + (a sample named syslog-ng.conf.sample has been included in + %%PREFIX%%/etc/syslog-ng). Note that this is a change in 2.0.2 + version, previous ones put the config file in + %%PREFIX%%/etc/syslog-ng/syslog-ng.conf, so if this is an update + move that file in the right place 2. Configure syslog-ng to start automatically by adding the following to /etc/rc.conf: diff -ruN /usr/ports/sysutils/syslog-ng2/files/syslog-ng.sh.in syslog-ng2/files/syslog-ng.sh.in --- /usr/ports/sysutils/syslog-ng2/files/syslog-ng.sh.in Thu Mar 22 17:30:16 2007 +++ syslog-ng2/files/syslog-ng.sh.in Mon Apr 16 16:16:11 2007 @@ -24,7 +24,7 @@ rcvar=`set_rcvar` command=%%PREFIX%%/sbin/syslog-ng -required_files=%%PREFIX%%/etc/syslog-ng/syslog-ng.conf +required_files=%%PREFIX%%/etc/syslog-ng.conf extra_commands=reload if checkyesno syslog_ng_purgeklog; then --- syslog-ng2.patch ends here ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704201410.l3KEARnk021584>