ports/111462: syslog-ng2 default configuration file path

Brian A. Seklecki bseklecki at collaborativefusion.com
Tue Apr 10 22:40:02 UTC 2007

>Number:         111462
>Category:       ports
>Synopsis:       syslog-ng2 default configuration file path
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 10 22:40:01 GMT 2007
>Originator:     Brian A. Seklecki
>Release:        FreeBSD bdb0 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3
Collaborative Fusion, Inc.
FreeBSD bdb0 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p
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 at 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


Portupgrade to 2.0.2

Regardless of when/why this changed and who is responsible, here are the corrective actions that need to be taken to resolve the problem:

-) pkg-plist needs to reflect %%PREFIX%%/etc/syslog-ng.conf instead of etc/syslog-ng/syslog-ng.conf

-) pkg-message needs to mention that configuration file path has changed

-) ${required_files}= in ports/sysutils/syslog-ng2/files/syslog-ng.sh.in needs to reflect %%PREFIX%%/etc/syslog-ng.conf instead of %%PREFIX%%/etc/syslog-ng/syslog-ng.conf

More information about the freebsd-ports-bugs mailing list