Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= mosquitto |
4 |
PORTNAME= mosquitto |
5 |
PORTVERSION= 1.3.5 |
5 |
PORTVERSION= 1.4.2 |
6 |
PORTREVISION= 1 |
|
|
7 |
CATEGORIES= net |
6 |
CATEGORIES= net |
8 |
MASTER_SITES= http://mosquitto.org/files/source/ |
7 |
MASTER_SITES= http://mosquitto.org/files/source/ |
9 |
|
8 |
|
Lines 15-40
Link Here
|
15 |
LIB_DEPENDS= libcares.so:${PORTSDIR}/dns/c-ares |
14 |
LIB_DEPENDS= libcares.so:${PORTSDIR}/dns/c-ares |
16 |
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt |
15 |
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt |
17 |
|
16 |
|
18 |
OPTIONS_DEFAULT=PYTHON |
|
|
19 |
OPTIONS_DEFINE= PYTHON |
20 |
|
21 |
PYTHON_DESC= Build python driver |
22 |
|
23 |
USES= cmake python:2 |
17 |
USES= cmake python:2 |
24 |
NOCONFIGURE= yes |
18 |
NOCONFIGURE= yes |
25 |
USE_RC_SUBR= mosquitto |
19 |
USE_RC_SUBR= mosquitto |
26 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
|
|
21 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
27 |
|
22 |
|
28 |
USERS= nobody |
23 |
USERS= nobody |
29 |
|
24 |
|
30 |
.include <bsd.port.options.mk> |
|
|
31 |
|
32 |
.if ${PORT_OPTIONS:MPYTHON} |
33 |
PLIST_SUB= PYTHON_VER=${PYTHON_VER} NOPYTHON="" PORTVERSION=${PORTVERSION} |
34 |
.else |
35 |
PLIST_SUB= NOPYTHON="@comment " PORTVERSION=${PORTVERSION} |
36 |
.endif |
37 |
|
38 |
post-patch: |
25 |
post-patch: |
39 |
# do not run ldconfig in stage dir |
26 |
# do not run ldconfig in stage dir |
40 |
${REINPLACE_CMD} -e '/ldconfig/d' ${WRKSRC}/src/CMakeLists.txt \ |
27 |
${REINPLACE_CMD} -e '/ldconfig/d' ${WRKSRC}/src/CMakeLists.txt \ |
Lines 41-50
Link Here
|
41 |
${WRKSRC}/lib/CMakeLists.txt ${WRKSRC}/lib/cpp/CMakeLists.txt |
28 |
${WRKSRC}/lib/CMakeLists.txt ${WRKSRC}/lib/cpp/CMakeLists.txt |
42 |
|
29 |
|
43 |
post-stage: |
30 |
post-stage: |
44 |
.if ${PORT_OPTIONS:MPYTHON} |
|
|
45 |
(cd ${WRKSRC}/lib/python && \ |
46 |
${PYTHON_CMD} ${WRKSRC}/lib/python/setup.py build install --prefix=${PREFIX} --root=${STAGEDIR}) |
47 |
.endif |
48 |
# Adjust configuration files |
31 |
# Adjust configuration files |
49 |
${MV} ${STAGEDIR}${ETCDIR}/mosquitto.conf ${STAGEDIR}${ETCDIR}/mosquitto.conf.sample |
32 |
${MV} ${STAGEDIR}${ETCDIR}/mosquitto.conf ${STAGEDIR}${ETCDIR}/mosquitto.conf.sample |
50 |
${MV} ${STAGEDIR}${ETCDIR}/pwfile.example ${STAGEDIR}${ETCDIR}/pwfile.sample |
33 |
${MV} ${STAGEDIR}${ETCDIR}/pwfile.example ${STAGEDIR}${ETCDIR}/pwfile.sample |