mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
a5e48c4187
Fails to compile with: ld: error: undefined symbol: EVP_MD_size Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
98 lines
2.9 KiB
Makefile
98 lines
2.9 KiB
Makefile
PORTNAME= lavinmq
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.1.4
|
|
CATEGORIES= net
|
|
|
|
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
|
|
|
|
MAINTAINER= dch@FreeBSD.org
|
|
COMMENT= Next-generation AMQP 0.9.1 based message broker
|
|
WWW= https://www.lavinmq.com/
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= crystal:lang/crystal \
|
|
help2man:misc/help2man \
|
|
shards:devel/shards
|
|
|
|
USES= pkgconfig ssl:build
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= cloudamqp
|
|
GH_TUPLE= 84codes:http-protection:893a191d55e301e0df96d6dd0f7d72c527bddeb8:a/deps/http-protection \
|
|
84codes:systemd.cr:v2.0.0:systemd/deps/systemd.cr \
|
|
cloudamqp:amq-protocol.cr:v1.1.2:proto/deps/amq-protocol.cr \
|
|
cloudamqp:amqp-client.cr:v1.0.10:client/deps/amqp-client.cr \
|
|
luislavena:radix:v0.4.1:radix/deps/radix \
|
|
schovi:baked_file_system:v0.10.0:baked/deps/baked_file_system \
|
|
tbrand:router.cr:v0.2.8:router/deps/router.cr
|
|
|
|
USE_RC_SUBR= lavinmq
|
|
|
|
USERS= lavinmq
|
|
GROUPS= lavinmq
|
|
|
|
PORTDOCS= CHANGELOG.md NOTICE README.md SECURITY.md
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
SHARDS_ENV= --time --verbose --production --release --no-color --stats \
|
|
--static
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
|
|
BROKEN= fails to compile: undefined symbol: EVP_MD_size
|
|
.endif
|
|
|
|
post-extract:
|
|
# force shards to use local paths, not git repos, for dependencies
|
|
@${RM} ${WRKSRC}/shard.lock
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's,github: .*/,path: deps/,' \
|
|
-e '/branch:/d' \
|
|
-e '/version: .>1/d' \
|
|
${WRKSRC}/shard.yml \
|
|
${WRKSRC}/deps/*/shard.yml
|
|
# switch config example into hier(5) compliance
|
|
@${REINPLACE_CMD} -E \
|
|
-e 's,/etc/,${PREFIX}/etc/,' \
|
|
-e 's,/lib/,/db/,' \
|
|
-e 's,/tmp/lavinmq-http.sock,/var/run/lavinmq/http.sock,' \
|
|
-e 's,/tmp/lavinmq.sock,/var/run/lavinmq/amqp.sock,' \
|
|
${WRKSRC}/extras/config.ini
|
|
|
|
do-build:
|
|
${MKDIR} ${WRKDIR}/man1
|
|
(cd ${WRKSRC} && \
|
|
${LOCALBASE}/bin/shards lock ${SHARDS_ENV} && \
|
|
${LOCALBASE}/bin/shards build ${SHARDS_ENV})
|
|
help2man -Nn "fast and advanced message queue server" ${WRKSRC}/bin/lavinmq \
|
|
-o ${WRKDIR}/man1/lavinmq.1
|
|
help2man -Nn "control utility for lavinmq server" ${WRKSRC}/bin/lavinmqctl \
|
|
-o ${WRKDIR}/man1/lavinmqctl.1
|
|
help2man -Nn "performance testing tool for amqp servers" ${WRKSRC}/bin/lavinmqperf \
|
|
-o ${WRKDIR}/man1/lavinmqperf.1
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${ETCDIR} \
|
|
${STAGEDIR}/var/db/lavinmq \
|
|
${STAGEDIR}/var/log/lavinmq \
|
|
${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
${INSTALL_DATA} ${WRKSRC}/extras/config.ini \
|
|
${STAGEDIR}${ETCDIR}/config.ini.sample
|
|
.for f in lavinmq lavinmqctl lavinmqperf
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKDIR}/man1/${f}.1 \
|
|
${STAGEDIR}${MAN1PREFIX}/man/man1/
|
|
.endfor
|
|
|
|
do-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} \
|
|
${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|