Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jan 2011 20:11:34 GMT
From:      Davide De Rosa <famoqua+freebsd@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/153773: rabbitmq: reads configuration from /etc instead of /usr/local/etc
Message-ID:  <201101072011.p07KBYpI081602@red.freebsd.org>
Resent-Message-ID: <201101072020.p07KK7SR047910@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101072011.p07KBYpI081602>