ports/153773: rabbitmq: reads configuration from /etc instead of /usr/local/etc

Davide De Rosa famoqua+freebsd at gmail.com
Fri Jan 7 20:20:07 UTC 2011


>Number:         153773
>Category:       ports
>Synopsis:       rabbitmq: reads configuration from /etc instead of /usr/local/etc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 07 20:20:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Davide De Rosa
>Release:        8-STABLE
>Organization:
>Environment:
FreeBSD dmz.home.local 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Fri Jan  7 18:02:30 CET 2011     root at dmz.home.local:/archive/obj/archive/src/sys/DMZ  i386

>Description:
The package creates configuration directory /usr/local/etc/rabbitmq but the programs read from /etc/rabbitmq against hierarchy conventions.

>How-To-Repeat:
1) create a custom /usr/local/etc/rabbitmq/rabbitmq.conf
2) start the server with /usr/local/etc/rc.d/rabbitmq start
3) now you'll notice that your settings are being ignored

>Fix:
The file to update is port's Makefile. The "post-patch" target correctly adds /usr/local prefix in:

rabbitmq-multi
rabbitmq-server
rabbitmqctl

but leaves out:

rabbitmq-env

where configuration file is actually loaded.

Patch attached with submission follows:

51c51
< 		${SCRIPTS_DIR}/rabbitmq-multi ${SCRIPTS_DIR}/rabbitmq-server ${SCRIPTS_DIR}/rabbitmqctl ${SCRIPTS_DIR}/rabbitmq-env
---
> 		${SCRIPTS_DIR}/rabbitmq-multi ${SCRIPTS_DIR}/rabbitmq-server ${SCRIPTS_DIR}/rabbitmqctl


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list