2014-05-25 14:20:49 +02:00
|
|
|
# Created by: Joseph Benden <joe@thrallingpenguin.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mosquitto
|
2015-09-27 23:32:30 +02:00
|
|
|
PORTVERSION= 1.4.4
|
2015-10-30 23:43:16 +01:00
|
|
|
PORTREVISION= 1
|
2014-05-25 14:20:49 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://mosquitto.org/files/source/
|
|
|
|
|
|
|
|
MAINTAINER= joe@thrallingpenguin.com
|
|
|
|
COMMENT= Open-Source MQTT Broker
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libcares.so:dns/c-ares
|
|
|
|
BUILD_DEPENDS= xsltproc:textproc/libxslt
|
2014-05-25 14:20:49 +02:00
|
|
|
|
2014-10-16 00:53:29 +02:00
|
|
|
USES= cmake python:2
|
2014-05-25 14:20:49 +02:00
|
|
|
NOCONFIGURE= yes
|
|
|
|
USE_RC_SUBR= mosquitto
|
|
|
|
USE_LDCONFIG= yes
|
2015-07-04 11:14:06 +02:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
2014-05-25 14:20:49 +02:00
|
|
|
|
|
|
|
USERS= nobody
|
|
|
|
|
|
|
|
post-patch:
|
2015-05-10 20:06:00 +02:00
|
|
|
# do not run ldconfig in stage dir
|
|
|
|
${REINPLACE_CMD} -e '/ldconfig/d' ${WRKSRC}/src/CMakeLists.txt \
|
|
|
|
${WRKSRC}/lib/CMakeLists.txt ${WRKSRC}/lib/cpp/CMakeLists.txt
|
2014-05-25 14:20:49 +02:00
|
|
|
|
2015-05-10 20:06:00 +02:00
|
|
|
post-stage:
|
|
|
|
# Adjust configuration files
|
|
|
|
${MV} ${STAGEDIR}${ETCDIR}/mosquitto.conf ${STAGEDIR}${ETCDIR}/mosquitto.conf.sample
|
|
|
|
${MV} ${STAGEDIR}${ETCDIR}/pwfile.example ${STAGEDIR}${ETCDIR}/pwfile.sample
|
|
|
|
${MV} ${STAGEDIR}${ETCDIR}/pskfile.example ${STAGEDIR}${ETCDIR}/pskfile.sample
|
|
|
|
${MV} ${STAGEDIR}${ETCDIR}/aclfile.example ${STAGEDIR}${ETCDIR}/aclfile.sample
|
2014-05-25 14:20:49 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|