diff options
author | olgeni <olgeni@FreeBSD.org> | 2014-07-22 18:27:50 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2014-07-22 18:27:50 +0800 |
commit | 1983bdbdb1684f3c9ca46be5540350b2b018a4e2 (patch) | |
tree | a718a6f80186968ffe997e9faaaa2ae692ebf890 /net/rabbitmq | |
parent | 73708dee9dda02c314792dd11a6cff95ee17b90c (diff) | |
download | freebsd-ports-gnome-1983bdbdb1684f3c9ca46be5540350b2b018a4e2.tar.gz freebsd-ports-gnome-1983bdbdb1684f3c9ca46be5540350b2b018a4e2.tar.zst freebsd-ports-gnome-1983bdbdb1684f3c9ca46be5540350b2b018a4e2.zip |
Install sample rabbitmq.config.
Fix etc paths in rabbitmq-env.conf(5).
Diffstat (limited to 'net/rabbitmq')
-rw-r--r-- | net/rabbitmq/Makefile | 6 | ||||
-rw-r--r-- | net/rabbitmq/pkg-plist | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/net/rabbitmq/Makefile b/net/rabbitmq/Makefile index 48341c37c2c2..34822e30ae17 100644 --- a/net/rabbitmq/Makefile +++ b/net/rabbitmq/Makefile @@ -3,6 +3,7 @@ PORTNAME= rabbitmq PORTVERSION= 3.3.4 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.rabbitmq.com/releases/rabbitmq-server/v${PORTVERSION}/ DISTNAME= ${PORTNAME}-server-${PORTVERSION} @@ -53,7 +54,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-plugins \ - ${SCRIPTS_DIR}/rabbitmq-defaults + ${SCRIPTS_DIR}/rabbitmq-defaults \ + ${WRKSRC}/docs/rabbitmq-env.conf.5.xml @${REINPLACE_CMD} -e 's|VERSION=0.0.0|VERSION=${PORTVERSION}|g' \ ${WRKSRC}/plugins-src/rabbitmq-erlang-client/Makefile \ ${WRKSRC}/plugins-src/release.mk @@ -67,6 +69,8 @@ post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/etc/rabbitmq @${MKDIR} ${STAGEDIR}/var/db/rabbitmq/mnesia @${MKDIR} ${STAGEDIR}/var/log/rabbitmq + ${INSTALL_DATA} ${WRKSRC}/docs/rabbitmq.config.example \ + ${STAGEDIR}${PREFIX}/etc/rabbitmq/rabbitmq.config.sample .if ${PORT_OPTIONS:MADMIN} ${INSTALL} ${WRKSRC}/plugins-src/rabbitmq-management/bin/rabbitmqadmin ${STAGEDIR}${PREFIX}/bin .endif diff --git a/net/rabbitmq/pkg-plist b/net/rabbitmq/pkg-plist index fffdbe13f79a..e8ab06568943 100644 --- a/net/rabbitmq/pkg-plist +++ b/net/rabbitmq/pkg-plist @@ -1,3 +1,4 @@ +@sample etc/rabbitmq/rabbitmq.config.sample %%ADMIN%%bin/rabbitmqadmin sbin/rabbitmq-defaults sbin/rabbitmq-env @@ -208,7 +209,6 @@ man/man5/rabbitmq-env.conf.5.gz @dirrm lib/erlang/lib/rabbitmq_server-%%VERSION%%/sbin @dirrm lib/erlang/lib/rabbitmq_server-%%VERSION%%/ebin @dirrm lib/erlang/lib/rabbitmq_server-%%VERSION%% -@exec mkdir -p %D/etc/rabbitmq @dirrmtry etc/rabbitmq %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rabbitmq.config.example %%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%% |