Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2012 19:29:50 GMT
From:      Phillip <pneumann@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/164671: net/rabbitmq: Fix reference to /etc
Message-ID:  <201201311929.q0VJTo8G097762@red.freebsd.org>
Resent-Message-ID: <201201311930.q0VJUBRH036152@freefall.freebsd.org>

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

>Number:         164671
>Category:       ports
>Synopsis:       net/rabbitmq: Fix reference to /etc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 31 19:30:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Phillip
>Release:        8.0
>Organization:
>Environment:
FreeBSD ocho.sofsis.cl 8.0-STABLE FreeBSD 8.0-STABLE #1: Fri Jan  1 09:03:23 CLST 2010     root@ocho.sofsis.cl:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Hi.

This is a fix that makes the rabbitmq-plugins use $PREFIX/etc instead of /etc

Thanks!!

Reference: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2012-January/017784.html
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN rabbitmq.orig/Makefile rabbitmq/Makefile
--- rabbitmq.orig/Makefile	2012-01-29 08:04:36.000000000 -0300
+++ rabbitmq/Makefile	2012-01-31 16:22:35.000000000 -0300
@@ -7,6 +7,7 @@
 
 PORTNAME=	rabbitmq
 PORTVERSION=	2.7.1
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	http://www.rabbitmq.com/releases/rabbitmq-server/v${PORTVERSION}/
 DISTNAME=	${PORTNAME}-server-${PORTVERSION}
@@ -48,7 +49,8 @@
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/etc/rabbitmq|${PREFIX}/etc/rabbitmq|g ; s|/var/lib|/var/db|g ; s|erl|${LOCALBASE}/bin/erl|g' \
-		${SCRIPTS_DIR}/rabbitmq-server ${SCRIPTS_DIR}/rabbitmqctl ${SCRIPTS_DIR}/rabbitmq-env
+		${SCRIPTS_DIR}/rabbitmq-server ${SCRIPTS_DIR}/rabbitmqctl \
+		${SCRIPTS_DIR}/rabbitmq-env ${SCRIPTS_DIR}/rabbitmq-plugins
 	@${FIND} ${WRKSRC} -name "*.bak" -delete
 
 pre-install:
@@ -57,6 +59,7 @@
 		${XARGS} ${CHMOD} 0755
 	@${FIND} ${WRKSRC}/ebin ${WRKSRC}/include -type f | \
 		${XARGS} ${CHMOD} 0644
+	@${MKDIR} ${PREFIX}/etc/rabbitmq
 
 post-install:
 	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL


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



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