порт вроде довел до рабочего состояния.
с автором пообщался, но сейчас он что-то пропал
хотел уже потестить на редпортс, но там мне пока не создали реп
выложу тут, попинайте плз если не лень
еще есть пара вопросов
во первых, патчу внутренний мейкфайл(config.mk) как сказано тут.
http://www.freebsd.org/doc/en/books/por ... hread.html Вместо $PTHREAD_LIBS ничего не подставляется, хотя с ней все нормально
и во-вторых, в начале сборки вылетает
. что это значит и надо ли что-либо (что?) с этим делать?
Код: Выделить всё
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# /usr/ports/net/mosquitto/
# /usr/ports/net/mosquitto/Makefile
# /usr/ports/net/mosquitto/distinfo
# /usr/ports/net/mosquitto/files
# /usr/ports/net/mosquitto/files/patch-src__context.c
# /usr/ports/net/mosquitto/files/patch-src__net.c
# /usr/ports/net/mosquitto/files/patch-lib__memory_mosq.c
# /usr/ports/net/mosquitto/files/patch-lib__net_mosq.c
# /usr/ports/net/mosquitto/files/patch-config.mk
# /usr/ports/net/mosquitto/files/patch-src__Makefile
# /usr/ports/net/mosquitto/files/patch-lib__python__Makefile
# /usr/ports/net/mosquitto/files/patch-lib__cpp__Makefile
# /usr/ports/net/mosquitto/files/patch-lib__Makefile
# /usr/ports/net/mosquitto/files/patch-man__Makefile
# /usr/ports/net/mosquitto/files/patch-client__Makefile
# /usr/ports/net/mosquitto/files/patch-Makefile
# /usr/ports/net/mosquitto/files/mosquitto.in
# /usr/ports/net/mosquitto/pkg-descr
# /usr/ports/net/mosquitto/pkg-plist
#
echo c - /usr/ports/net/mosquitto/
mkdir -p /usr/ports/net/mosquitto/ > /dev/null 2>&1
echo x - /usr/ports/net/mosquitto/Makefile
sed 's/^X//' >/usr/ports/net/mosquitto/Makefile << '0f238210e399b7ee55046e7f5f23f0e9'
X# $FreeBSD$
X
XPORTNAME=mosquitto
XPORTVERSION=1.0.4
XCATEGORIES=net
XMASTER_SITES=http://mosquitto.org/files/source/
X
XMAINTAINER=freebsp@mail.ru
XCOMMENT=An Open Source MQTT v3.1 Broker
X
XMAN1=mosquitto_passwd.1 mosquitto_pub.1 mosquitto_sub.1
XMAN3=libmosquitto.3
XMAN5=mosquitto.conf.5
XMAN7=mosquitto-tls.7 mqtt.7
XMAN8=mosquitto.8
X
XUSE_GMAKE=yes
XUSE_LDCONFIG=yes
XUSE_RC_SUBR=mosquitto
X
X#USERS=mosquitto
X#GROUPS=mosquitto
X
XNO_OPTIONS_SORT=yes
XOPTIONS_DEFINE+=TLS TLS_PSK
X#OPTIONS_DEFAULT+=TLS TLS_PSK
XOPTIONS_DEFINE+=WRAP THREADING STRICT_PROTOCOL BRIDGE PERSISTENCE MEMORY_TRACKING PYTHON
XOPTIONS_DEFAULT+=THREADING BRIDGE PERSISTENCE MEMORY_TRACKING
X
XWRAP_DESC=Compile broker with tcpd/libwrap support.
XTLS_DESC=SSL/TLS support(Not tested).
XTLS_PSK_DESC=TLS/PSK support (Requires TLS),m/b broken.
XTHREADING_DESC=Client threading support.
XSTRICT_PROTOCOL_DESC=Strict protocol support.
XBRIDGE_DESC=Bridge support in the broker.
XPERSISTENCE_DESC=Persistent database support in the broker.
XMEMORY_TRACKING_DESC=Memory tracking support in the broker.
XPYTHON_DESC=Build Python library.
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MWRAP}
XMAKE_FLAGS+=WITH_WRAP=yes
X.else
XMAKE_FLAGS+=WITH_WRAP=no
X.endif
X
X.if ${PORT_OPTIONS:MTLS}
XMAKE_FLAGS+=WITH_TLS=yes
XUSE_OPENSSL=yes
XWITH_OPENSSL_PORT=yes
XPLIST_SUB+=SSL=""
XLDFLAGS+=-L${LOCALBASE}/lib
X.if ${PORT_OPTIONS:MTLS_PSK}
XMAKE_FLAGS+=WITH_TLS_PSK=yes
X.endif
X.else
XPLIST_SUB+=SSL="@comment "
XMAKE_FLAGS+=WITH_TLS=no
X.endif
X
X.if ${PORT_OPTIONS:MTHREADING}
XMAKE_FLAGS+=WITH_THREADING=yes
X.else
XMAKE_FLAGS+=WITH_THREADING=no
X.endif
X
X.if ${PORT_OPTIONS:MSTRICT_PROTOCOL}
XMAKE_FLAGS+=WITH_STRICT_PROTOCOL=yes
X.else
XMAKE_FLAGS+=WITH_STRICT_PROTOCOL=no
X.endif
X
X.if ${PORT_OPTIONS:MBRIDGE}
XMAKE_FLAGS+=WITH_BRIDGE=yes
X.else
XMAKE_FLAGS+=WITH_BRIDGE=no
X.endif
X
X.if ${PORT_OPTIONS:MPERSISTENCE}
XMAKE_FLAGS+=WITH_PERSISTENCE=yes
X.else
XMAKE_FLAGS+=WITH_PERSISTENCE=no
X.endif
X
X.if ${PORT_OPTIONS:MMEMORY_TRACKING}
XMAKE_FLAGS+=WITH_MEMORY_TRACKING=yes
X.else
XMAKE_FLAGS+=WITH_MEMORY_TRACKING=no
X.endif
X
X.if ${PORT_OPTIONS:MPYTHON}
XUSE_PYTHON=2.7+
XMAKE_FLAGS+=WITH_PYTHON=yes
XPLIST_SUB+=PYTHON=""
X.else
XMAKE_FLAGS+=WITH_PYTHON=no
XPLIST_SUB+=PYTHON="@comment "
X.endif
X
Xpost-install:
X @if [ ! -f ${PREFIX}/etc/mosquitto/mosquitto.conf ]; then \
X ${CP} -p ${PREFIX}/etc/mosquitto/mosquitto.conf.example ${PREFIX}/etc/mosquitto/mosquitto.conf ; \
X fi
X
X.include <bsd.port.mk>
0f238210e399b7ee55046e7f5f23f0e9
echo x - /usr/ports/net/mosquitto/distinfo
sed 's/^X//' >/usr/ports/net/mosquitto/distinfo << '9cd9c14ced558a9051d0d8baccd36c92'
XSHA256 (mosquitto-1.0.4.tar.gz) = 1db06a17332fde9afe960ebd8c18275ce75ddbef0c05150d821da83a94cf439f
XSIZE (mosquitto-1.0.4.tar.gz) = 291065
9cd9c14ced558a9051d0d8baccd36c92
echo c - /usr/ports/net/mosquitto/files
mkdir -p /usr/ports/net/mosquitto/files > /dev/null 2>&1
echo x - /usr/ports/net/mosquitto/files/patch-src__context.c
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-src__context.c << '5484c0729e61a3289c66b7f8045d1200'
X--- ./src/context.c.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./src/context.c 2012-11-05 00:21:04.000000000 +0400
X@@ -40,6 +40,10 @@
X #include <mosquitto_broker.h>
X #include <memory_mosq.h>
X
X+#ifdef __FreeBSD__
X+#include <netinet/in.h>
X+#endif
X+
X struct mosquitto *mqtt3_context_init(int sock)
X {
X struct mosquitto *context;
5484c0729e61a3289c66b7f8045d1200
echo x - /usr/ports/net/mosquitto/files/patch-src__net.c
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-src__net.c << 'cd5c3820758f63d6bdaf5cba90206025'
X--- ./src/net.c.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./src/net.c 2012-11-05 00:21:04.000000000 +0400
X@@ -53,6 +53,12 @@
X #include <sys/socket.h>
X #endif
X
X+#ifdef __FreeBSD__
X+#include <netinet/in.h>
X+#include <sys/types.h>
X+#include <sys/socket.h>
X+#endif
X+
X #include <mosquitto_broker.h>
X #include <mqtt3_protocol.h>
X #include <memory_mosq.h>
cd5c3820758f63d6bdaf5cba90206025
echo x - /usr/ports/net/mosquitto/files/patch-lib__memory_mosq.c
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-lib__memory_mosq.c << 'd2d17688be296ecd7b6ee152b540dbc7'
X--- ./lib/memory_mosq.c.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./lib/memory_mosq.c 2012-11-05 00:21:04.000000000 +0400
X@@ -37,6 +37,8 @@
X #ifdef REAL_WITH_MEMORY_TRACKING
X # if defined(__APPLE__)
X # define malloc_usable_size malloc_good_size
X+# elif defined(__FreeBSD__ )
X+# include <stdlib.h>
X # else
X # include <malloc.h>
X # endif
d2d17688be296ecd7b6ee152b540dbc7
echo x - /usr/ports/net/mosquitto/files/patch-lib__net_mosq.c
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-lib__net_mosq.c << 'f6aff4817d88593ab778041d14daa28e'
X--- ./lib/net_mosq.c.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./lib/net_mosq.c 2012-11-05 00:21:04.000000000 +0400
X@@ -41,6 +41,10 @@
X #include <ws2tcpip.h>
X #endif
X
X+#ifdef __FreeBSD__
X+#include <netinet/in.h>
X+#endif
X+
X #ifdef __SYMBIAN32__
X #include <netinet.in.h>
X #endif
f6aff4817d88593ab778041d14daa28e
echo x - /usr/ports/net/mosquitto/files/patch-config.mk
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-config.mk << '40519d95cdcc182f304b40ff027cfbdf'
X--- ./config.mk.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./config.mk 2012-11-05 00:21:15.000000000 +0400
X@@ -96,10 +96,15 @@
X BROKER_CFLAGS:=${LIB_CFLAGS} -DVERSION="\"${VERSION}\"" -DTIMESTAMP="\"${TIMESTAMP}\"" -DWITH_BROKER
X CLIENT_CFLAGS:=${CFLAGS} -I../lib
X
X-BROKER_LIBS:=-ldl
X+ifeq ($(UNAME),FreeBSD)
X+ BROKER_LIBS:=
X+else
X+ BROKER_LIBS:=-ldl
X+endif
X LIB_LIBS:=
X PASSWD_LIBS:=
X
X+LIB_LDFLAGS:=$(LIB_LDFLAGS) ${LDFLAGS}
X CLIENT_LDFLAGS:=$(LDFLAGS) -L../lib ../lib/libmosquitto.so.${SOVERSION}
X
X ifeq ($(UNAME),SunOS)
X@@ -184,5 +189,5 @@
X
X INSTALL?=install
X prefix=/usr/local
X-mandir=${prefix}/share/man
X-localedir=${prefix}/share/locale
X+mandir=/man
X+localedir=/share/locale
40519d95cdcc182f304b40ff027cfbdf
echo x - /usr/ports/net/mosquitto/files/patch-src__Makefile
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-src__Makefile << '181e11e39c4d015adcab8ba88d609aa8'
X--- ./src/Makefile.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./src/Makefile 2012-11-05 00:21:04.000000000 +0400
X@@ -90,15 +90,17 @@
X ${CC} $(CFLAGS) -c $< -o $@
X
X install : all
X- $(INSTALL) -d ${DESTDIR}$(prefix)/sbin
X- $(INSTALL) -s mosquitto ${DESTDIR}${prefix}/sbin/mosquitto
X- $(INSTALL) mosquitto_plugin.h ${DESTDIR}${prefix}/include/mosquitto_plugin.h
X- $(INSTALL) -s mosquitto_passwd ${DESTDIR}${prefix}/bin/mosquitto_passwd
X+ $(INSTALL) -d ${PREFIX}/sbin
X+ $(INSTALL) -s mosquitto ${PREFIX}/sbin/mosquitto
X+ $(INSTALL) mosquitto_plugin.h ${PREFIX}/include/mosquitto_plugin.h
X+ifeq ($(WITH_TLS),yes)
X+ $(INSTALL) -s mosquitto_passwd ${PREFIX}/bin/mosquitto_passwd
X+endif
X
X uninstall :
X- -rm -f ${DESTDIR}${prefix}/sbin/mosquitto
X- -rm -f ${DESTDIR}${prefix}/include/mosquitto_plugin.h
X- -rm -f ${DESTDIR}${prefix}/bin/mosquitto_passwd
X+ -rm -f ${PREFIX}/sbin/mosquitto
X+ -rm -f ${PREFIX}/include/mosquitto_plugin.h
X+ -rm -f ${PREFIX}/bin/mosquitto_passwd
X
X clean :
X -rm -f *.o mosquitto mosquitto_passwd
181e11e39c4d015adcab8ba88d609aa8
echo x - /usr/ports/net/mosquitto/files/patch-lib__python__Makefile
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-lib__python__Makefile << '073c5a9ba86c744fd8f4ce97c1b7a816'
X--- ./lib/python/Makefile.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./lib/python/Makefile 2012-11-05 00:21:04.000000000 +0400
X@@ -1,14 +1,14 @@
X include ../../config.mk
X
X-# Set DESTDIR if it isn't given
X-DESTDIR?=/
X+# Set PREFIX if it isn't given
X+PREFIX?=/
X
X .PHONY : all clean install
X
X all : mosquitto.pyc
X
X install : all
X- python ./setup.py install --prefix=${prefix} --root=${DESTDIR}
X+ python ./setup.py install --prefix= --root=${PREFIX}
X
X mosquitto.pyc : mosquitto.py
X python ./setup.py build
073c5a9ba86c744fd8f4ce97c1b7a816
echo x - /usr/ports/net/mosquitto/files/patch-lib__cpp__Makefile
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-lib__cpp__Makefile << 'd7f16d7cf34540047578f0ae0ace451e'
X--- ./lib/cpp/Makefile.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./lib/cpp/Makefile 2012-11-05 00:21:04.000000000 +0400
X@@ -9,16 +9,16 @@
X all : libmosquittopp.so.${SOVERSION}
X
X install : all
X- $(INSTALL) -d ${DESTDIR}$(prefix)/lib${LIB_SUFFIX}/
X- $(INSTALL) -s libmosquittopp.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquittopp.so.${SOVERSION}
X- ln -sf libmosquittopp.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquittopp.so
X- $(INSTALL) -d ${DESTDIR}${prefix}/include/
X- $(INSTALL) mosquittopp.h ${DESTDIR}${prefix}/include/mosquittopp.h
X+ $(INSTALL) -d ${PREFIX}/lib${LIB_SUFFIX}/
X+ $(INSTALL) -s libmosquittopp.so.${SOVERSION} ${PREFIX}/lib${LIB_SUFFIX}/libmosquittopp.so.${SOVERSION}
X+ ln -sf libmosquittopp.so.${SOVERSION} ${PREFIX}/lib${LIB_SUFFIX}/libmosquittopp.so
X+ $(INSTALL) -d ${PREFIX}/include/
X+ $(INSTALL) mosquittopp.h ${PREFIX}/include/mosquittopp.h
X
X uninstall :
X- -rm -f ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquittopp.so.${SOVERSION}
X- -rm -f ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquittopp.so
X- -rm -f ${DESTDIR}${prefix}/include/mosquittopp.h
X+ -rm -f ${PREFIX}/lib${LIB_SUFFIX}/libmosquittopp.so.${SOVERSION}
X+ -rm -f ${PREFIX}/lib${LIB_SUFFIX}/libmosquittopp.so
X+ -rm -f ${PREFIX}/include/mosquittopp.h
X
X clean :
X -rm -f *.o libmosquittopp.so.${SOVERSION}
d7f16d7cf34540047578f0ae0ace451e
echo x - /usr/ports/net/mosquitto/files/patch-lib__Makefile
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-lib__Makefile << 'ba96d0521d1dd2b0ea5dfec2c610fdd9'
X--- ./lib/Makefile.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./lib/Makefile 2012-11-05 00:21:04.000000000 +0400
X@@ -18,21 +18,25 @@
X
X all : libmosquitto.so.${SOVERSION} libmosquitto.a
X $(MAKE) -C cpp
X+ifeq ($(WITH_PYTHON),yes)
X $(MAKE) -C python
X+endif
X
X install : all
X- $(INSTALL) -d ${DESTDIR}$(prefix)/lib${LIB_SUFFIX}/
X- $(INSTALL) -s libmosquitto.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquitto.so.${SOVERSION}
X- ln -sf libmosquitto.so.${SOVERSION} ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquitto.so
X- $(INSTALL) -d ${DESTDIR}${prefix}/include/
X- $(INSTALL) mosquitto.h ${DESTDIR}${prefix}/include/mosquitto.h
X+ $(INSTALL) -d ${PREFIX}/lib${LIB_SUFFIX}/
X+ $(INSTALL) -s libmosquitto.so.${SOVERSION} ${PREFIX}/lib${LIB_SUFFIX}/libmosquitto.so.${SOVERSION}
X+ ln -sf libmosquitto.so.${SOVERSION} ${PREFIX}/lib${LIB_SUFFIX}/libmosquitto.so
X+ $(INSTALL) -d ${PREFIX}/include/
X+ $(INSTALL) mosquitto.h ${PREFIX}/include/mosquitto.h
X $(MAKE) -C cpp install
X+ifeq ($(WITH_PYTHON),yes)
X $(MAKE) -C python install
X+endif
X
X uninstall :
X- -rm -f ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquitto.so.${SOVERSION}
X- -rm -f ${DESTDIR}${prefix}/lib${LIB_SUFFIX}/libmosquitto.so
X- -rm -f ${DESTDIR}${prefix}/include/mosquitto.h
X+ -rm -f ${PREFIX}/lib${LIB_SUFFIX}/libmosquitto.so.${SOVERSION}
X+ -rm -f ${PREFIX}/lib${LIB_SUFFIX}/libmosquitto.so
X+ -rm -f ${PREFIX}/include/mosquitto.h
X
X reallyclean : clean
X
ba96d0521d1dd2b0ea5dfec2c610fdd9
echo x - /usr/ports/net/mosquitto/files/patch-man__Makefile
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-man__Makefile << 'f0996c5750a8cbe9ebc9b449e7635763'
X--- ./man/Makefile.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./man/Makefile 2012-11-05 00:21:04.000000000 +0400
X@@ -12,29 +12,29 @@
X dist : mosquitto.8 mosquitto-tls.7 mosquitto.conf.5 mosquitto_passwd.1 mosquitto_pub.1 mosquitto_sub.1 mqtt.7 libmosquitto.3
X
X install :
X- $(INSTALL) -d ${DESTDIR}$(mandir)/man8
X- $(INSTALL) -m 644 mosquitto.8 ${DESTDIR}${mandir}/man8/mosquitto.8
X- $(INSTALL) -d ${DESTDIR}$(mandir)/man5
X- $(INSTALL) -m 644 mosquitto.conf.5 ${DESTDIR}${mandir}/man5/mosquitto.conf.5
X- $(INSTALL) -d ${DESTDIR}$(mandir)/man1
X- $(INSTALL) -m 644 mosquitto_passwd.1 ${DESTDIR}${mandir}/man1/mosquitto_passwd.1
X- $(INSTALL) -m 644 mosquitto_pub.1 ${DESTDIR}${mandir}/man1/mosquitto_pub.1
X- $(INSTALL) -m 644 mosquitto_sub.1 ${DESTDIR}${mandir}/man1/mosquitto_sub.1
X- $(INSTALL) -d ${DESTDIR}$(mandir)/man7
X- $(INSTALL) -m 644 mqtt.7 ${DESTDIR}${mandir}/man7/mqtt.7
X- $(INSTALL) -m 644 mosquitto-tls.7 ${DESTDIR}${mandir}/man7/mosquitto-tls.7
X- $(INSTALL) -d ${DESTDIR}$(mandir)/man3
X- $(INSTALL) -m 644 libmosquitto.3 ${DESTDIR}${mandir}/man3/libmosquitto.3
X+ $(INSTALL) -d ${PREFIX}$(mandir)/man8
X+ $(INSTALL) -m 644 mosquitto.8 ${PREFIX}${mandir}/man8/mosquitto.8
X+ $(INSTALL) -d ${PREFIX}$(mandir)/man5
X+ $(INSTALL) -m 644 mosquitto.conf.5 ${PREFIX}${mandir}/man5/mosquitto.conf.5
X+ $(INSTALL) -d ${PREFIX}$(mandir)/man1
X+ $(INSTALL) -m 644 mosquitto_passwd.1 ${PREFIX}${mandir}/man1/mosquitto_passwd.1
X+ $(INSTALL) -m 644 mosquitto_pub.1 ${PREFIX}${mandir}/man1/mosquitto_pub.1
X+ $(INSTALL) -m 644 mosquitto_sub.1 ${PREFIX}${mandir}/man1/mosquitto_sub.1
X+ $(INSTALL) -d ${PREFIX}$(mandir)/man7
X+ $(INSTALL) -m 644 mqtt.7 ${PREFIX}${mandir}/man7/mqtt.7
X+ $(INSTALL) -m 644 mosquitto-tls.7 ${PREFIX}${mandir}/man7/mosquitto-tls.7
X+ $(INSTALL) -d ${PREFIX}$(mandir)/man3
X+ $(INSTALL) -m 644 libmosquitto.3 ${PREFIX}${mandir}/man3/libmosquitto.3
X
X uninstall :
X- -rm -f ${DESTDIR}${mandir}/man8/mosquitto.8
X- -rm -f ${DESTDIR}${mandir}/man5/mosquitto.conf.5
X- -rm -f ${DESTDIR}${mandir}/man1/mosquitto_passwd.1
X- -rm -f ${DESTDIR}${mandir}/man1/mosquitto_pub.1
X- -rm -f ${DESTDIR}${mandir}/man1/mosquitto_sub.1
X- -rm -f ${DESTDIR}${mandir}/man7/mqtt.7
X- -rm -f ${DESTDIR}${mandir}/man7/mosquitto-tls.7
X- -rm -f ${DESTDIR}${mandir}/man3/libmosquitto.3
X+ -rm -f ${PREFIX}${mandir}/man8/mosquitto.8
X+ -rm -f ${PREFIX}${mandir}/man5/mosquitto.conf.5
X+ -rm -f ${PREFIX}${mandir}/man1/mosquitto_passwd.1
X+ -rm -f ${PREFIX}${mandir}/man1/mosquitto_pub.1
X+ -rm -f ${PREFIX}${mandir}/man1/mosquitto_sub.1
X+ -rm -f ${PREFIX}${mandir}/man7/mqtt.7
X+ -rm -f ${PREFIX}${mandir}/man7/mosquitto-tls.7
X+ -rm -f ${PREFIX}${mandir}/man3/libmosquitto.3
X
X mosquitto.8 : mosquitto.8.xml
X $(XSLTPROC) $^
f0996c5750a8cbe9ebc9b449e7635763
echo x - /usr/ports/net/mosquitto/files/patch-client__Makefile
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-client__Makefile << '923b69ff7f32529f0d7bf5083ad4120c'
X--- ./client/Makefile.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./client/Makefile 2012-11-05 00:21:04.000000000 +0400
X@@ -20,13 +20,13 @@
X $(MAKE) -C ../lib
X
X install : all
X- $(INSTALL) -d ${DESTDIR}$(prefix)/bin
X- $(INSTALL) -s mosquitto_pub ${DESTDIR}${prefix}/bin/mosquitto_pub
X- $(INSTALL) -s mosquitto_sub ${DESTDIR}${prefix}/bin/mosquitto_sub
X+ $(INSTALL) -d ${PREFIX}/bin
X+ $(INSTALL) -s mosquitto_pub ${PREFIX}/bin/mosquitto_pub
X+ $(INSTALL) -s mosquitto_sub ${PREFIX}/bin/mosquitto_sub
X
X uninstall :
X- -rm -f ${DESTDIR}${prefix}/bin/mosquitto_pub
X- -rm -f ${DESTDIR}${prefix}/bin/mosquitto_sub
X+ -rm -f ${PREFIX}/bin/mosquitto_pub
X+ -rm -f ${PREFIX}/bin/mosquitto_sub
X
X reallyclean : clean
X
923b69ff7f32529f0d7bf5083ad4120c
echo x - /usr/ports/net/mosquitto/files/patch-Makefile
sed 's/^X//' >/usr/ports/net/mosquitto/files/patch-Makefile << 'dbade7d385cce8f52ca00b4b588200b1'
X--- ./Makefile.orig 2012-10-18 01:02:01.000000000 +0400
X+++ ./Makefile 2012-11-05 00:21:04.000000000 +0400
X@@ -33,18 +33,18 @@
X install : mosquitto
X @for d in ${DIRS}; do $(MAKE) -C $${d} install; done
X @for d in ${DOCDIRS}; do $(MAKE) -C $${d} install; done
X- $(INSTALL) -d ${DESTDIR}/etc/mosquitto
X- $(INSTALL) -m 644 mosquitto.conf ${DESTDIR}/etc/mosquitto/mosquitto.conf
X- $(INSTALL) -m 644 aclfile.example ${DESTDIR}/etc/mosquitto/aclfile.example
X- $(INSTALL) -m 644 pwfile.example ${DESTDIR}/etc/mosquitto/pwfile.example
X- $(INSTALL) -m 644 pskfile.example ${DESTDIR}/etc/mosquitto/pskfile.example
X+ $(INSTALL) -d ${PREFIX}/etc/mosquitto
X+ $(INSTALL) -m 644 mosquitto.conf ${PREFIX}/etc/mosquitto/mosquitto.conf.example
X+ $(INSTALL) -m 644 aclfile.example ${PREFIX}/etc/mosquitto/aclfile.example
X+ $(INSTALL) -m 644 pwfile.example ${PREFIX}/etc/mosquitto/pwfile.example
X+ $(INSTALL) -m 644 pskfile.example ${PREFIX}/etc/mosquitto/pskfile.example
X
X uninstall :
X @for d in ${DIRS}; do $(MAKE) -C $${d} uninstall; done
X- rm -f ${DESTDIR}/etc/mosquitto/mosquitto.conf
X- rm -f ${DESTDIR}/etc/mosquitto/aclfile.example
X- rm -f ${DESTDIR}/etc/mosquitto/pwfile.example
X- rm -f ${DESTDIR}/etc/mosquitto/pskfile.example
X+ rm -f ${PREFIX}/etc/mosquitto/mosquitto.conf
X+ rm -f ${PREFIX}/etc/mosquitto/aclfile.example
X+ rm -f ${PREFIX}/etc/mosquitto/pwfile.example
X+ rm -f ${PREFIX}/etc/mosquitto/pskfile.example
X
X dist : reallyclean
X @for d in ${DISTDIRS}; do $(MAKE) -C $${d} dist; done
dbade7d385cce8f52ca00b4b588200b1
echo x - /usr/ports/net/mosquitto/files/mosquitto.in
sed 's/^X//' >/usr/ports/net/mosquitto/files/mosquitto.in << 'a3da1a9756d3216a63c5239d55cc4569'
X#!/bin/sh
X
X# $FreeBSD$
X#
X# PROVIDE: mosquitto
X# REQUIRE: LOGIN
X# KEYWORD: shutdown
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable this service:
X#
X# mosquitto_enable (bool): Set to NO by default.
X# Set it to YES to enable mosquitto.
X# mosquitto_config (path): Set to %%PREFIX%%/etc/mosquitto/mosquitto.cf
X# by default.
X
X. /etc/rc.subr
X
Xname=mosquitto
Xrcvar=mosquitto_enable
X
Xload_rc_config $name
X
X: ${mosquitto_enable:="NO"}
X: ${mosquitto_config:="%%PREFIX%%/etc/mosquitto/mosquitto.conf"}
X: ${mosquitto_flags:="-d"}
X: ${mosquitto_port:="1883"}
X
Xcommand=%%PREFIX%%/sbin/${name}
Xpidfile=/var/run/${name}.pid
X
Xcommand_args="-c $mosquitto_config -p $mosquitto_port"
X
Xrun_rc_command "$1"
a3da1a9756d3216a63c5239d55cc4569
echo x - /usr/ports/net/mosquitto/pkg-descr
sed 's/^X//' >/usr/ports/net/mosquitto/pkg-descr << 'd70fdeba64d8079364b55ba69beb79cb'
XMosquitto is an open source (BSD licensed) message broker that implements the
XMQ Telemetry Transport protocol version 3.1. MQTT provides a lightweight
Xmethod of carrying out messaging using a publish/subscribe model. This makes
Xit suitable for "machine to machine" messaging such as with low power sensors
Xor mobile devices such as phones, embedded computers or microcontrollers like
Xthe Arduino. A good example of this is all of the work that Andy Stanford-Clark
X(one of the originators of MQTT) has done in home monitoring and automation
Xwith his twittering house and twittering ferry.
X
XWWW: http://mosquitto.org/
d70fdeba64d8079364b55ba69beb79cb
echo x - /usr/ports/net/mosquitto/pkg-plist
sed 's/^X//' >/usr/ports/net/mosquitto/pkg-plist << 'd0c6c226bd04b9b188181e5807272bf0'
X%%SSL%%bin/mosquitto_passwd
Xbin/mosquitto_pub
Xbin/mosquitto_sub
Xetc/mosquitto/aclfile.example
X@unexec if cmp -s %D/etc/mosquitto/mosquitto.conf.example %D/etc/mosquitto/mosquitto.conf; then rm -f %D/etc/mosquitto/mosquitto.conf; fi
Xetc/mosquitto/mosquitto.conf.example
X@exec if [ ! -f %D/etc/mosquitto/mosquitto.conf ] ; then cp -p %D/%F %D/etc/mosquitto/mosquitto.conf; fi
Xetc/mosquitto/pskfile.example
Xetc/mosquitto/pwfile.example
Xinclude/mosquitto.h
Xinclude/mosquitto_plugin.h
Xinclude/mosquittopp.h
Xlib/libmosquitto.so
Xlib/libmosquitto.so.1
Xlib/libmosquittopp.so
Xlib/libmosquittopp.so.1
X%%PYTHON%%%%PYTHON_SITELIBDIR%%/mosquitto-1.0.4-py2.7.egg-info
X%%PYTHON%%%%PYTHON_SITELIBDIR%%/mosquitto.py
X%%PYTHON%%%%PYTHON_SITELIBDIR%%/mosquitto.pyc
Xsbin/mosquitto
X@dirrmtry etc/mosquitto
d0c6c226bd04b9b188181e5807272bf0
exit
Человек начинает получать первые наслаждения от знакомства с unix системами. Ему нужно помочь - дальше он сможет получать наслаждение самостоятельно ©
Ламер — не желающий самостоятельно разбираться. Не путать с новичком: ламер опасен и знает это!