Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2014 18:06:06 -0700
From:      Joseph Benden <joe@thrallingpenguin.com>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/189451: [patch] New port of net/mosquitto version 1.3.1
Message-ID:  <5376B5FE.1000501@thrallingpenguin.com>
In-Reply-To: <201405080030.s480U0e0068175@freefall.freebsd.org>
References:  <201405080030.s480U0e0068175@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------020900010001060103040105
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Please use the attached Shar file. This one builds using CMake and
custom builds the Python code.

Thanks,
-Joe
> FreeBSD-gnats-submit@FreeBSD.org <mailto:FreeBSD-gnats-submit@FreeBSD.org>
> May 7, 2014 at 5:30 PM
> Thank you very much for your problem report.
> It has the internal identification `ports/189451'.
> The individual assigned to look at your
> report is: freebsd-ports-bugs.
>
> You can access the state of your problem report at any time
> via this link:
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=189451
>
>

--------------020900010001060103040105
Content-Type: text/plain;
 name="mosquitto-cmake.shar.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="mosquitto-cmake.shar.txt"

# 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:
#
#	net/mosquitto
#	net/mosquitto/Makefile
#	net/mosquitto/distinfo
#	net/mosquitto/files
#	net/mosquitto/files/mosquitto.in
#	net/mosquitto/files/patch-config.mk
#	net/mosquitto/files/patch-etc-mosquitto.conf.example
#	net/mosquitto/files/patch-lib-tls_mosq.h
#	net/mosquitto/files/patch-CMakeList.txt
#	net/mosquitto/files/patch-src-CMakeList.txt
#	net/mosquitto/pkg-descr
#	net/mosquitto/pkg-plist
#
echo c - net/mosquitto
mkdir -p net/mosquitto > /dev/null 2>&1
echo x - net/mosquitto/Makefile
sed 's/^X//' >net/mosquitto/Makefile << '0ac3ba1e1320dc6cbcdf528ccb6e87b8'
X# Created by: Joseph Benden <joe@thrallingpenguin.com>
X# $FreeBSD$
X
XPORTNAME=	mosquitto
XPORTVERSION=	1.3.1
XCATEGORIES=	net
XMASTER_SITES=	http://mosquitto.org/files/source/
X
XMAINTAINER=	joe@thrallingpenguin.com
XCOMMENT=	An Open-Source MQTT Broker
X
XLICENSE=	BSD3CLAUSE
X
XLIB_DEPENDS=	libcares.so:${PORTSDIR}/dns/c-ares
XBUILD_DEPENDS=	xsltproc:${PORTSDIR}/textproc/libxslt
X
XUSES=		cmake
XUSE_PYTHON=	2
XNOCONFIGURE=	yes
XUSE_RC_SUBR=	mosquitto
XMANCOMPRESSED=	no
XNO_MANCOMPRESS=	yes
X
XUSERS=		nobody
X
XPLIST_SUB=	PYTHON_VER=${PYTHON_VER}
X
Xpost-patch:
X	${MV} ${WRKSRC}/mosquitto.conf ${WRKSRC}/mosquitto.conf.example
X
Xpost-install:
X	# Install python library
X	CWD=`pwd`
X	cd ${WRKSRC}/lib/python ; \
X	${PYTHON_CMD} ${WRKSRC}/lib/python/setup.py build ; \
X	${PYTHON_CMD} ${WRKSRC}/lib/python/setup.py install --prefix=${PREFIX} --root=${STAGEDIR}
X	cd ${CWD}
X
X	# Compress Man Pages
X	${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man8/mosquitto.8
X	${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man7/mqtt.7
X	${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man7/mosquitto-tls.7
X	${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man5/mosquitto.conf.5
X	${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man3/libmosquitto.3
X	${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man1/mosquitto_sub.1
X	${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man1/mosquitto_pub.1
X	${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man1/mosquitto_passwd.1
X
X.include <bsd.port.mk>
0ac3ba1e1320dc6cbcdf528ccb6e87b8
echo x - net/mosquitto/distinfo
sed 's/^X//' >net/mosquitto/distinfo << '432cbefac535e9c6c50df4a7944108e5'
XSHA256 (mosquitto-1.3.1.tar.gz) = 1ee649cb80e0bd0aed8476349aa4c15c667507e2fc69540f18e3a1c599ed85fd
XSIZE (mosquitto-1.3.1.tar.gz) = 350381
432cbefac535e9c6c50df4a7944108e5
echo c - net/mosquitto/files
mkdir -p net/mosquitto/files > /dev/null 2>&1
echo x - net/mosquitto/files/mosquitto.in
sed 's/^X//' >net/mosquitto/files/mosquitto.in << '6ac7a2e4efc1ed716a7da91fd5227372'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: mosquitto
X# REQUIRE: DAEMON
X# BEFORE: LOGIN
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable mosquitto:
X#
X# mosquitto_enable="YES"
X# mosquitto_flags="<set as needed>"
X#
X# See mosquitto(8) for flags
X#
X
X. /etc/rc.subr
X
Xname=mosquitto
Xrcvar=mosquitto_enable
X
Xmosquitto_enable=${mosquitto_enable:="NO"}
Xmosquitto_config=${mosquitto_config:="%%PREFIX%%/etc/mosquitto/mosquitto.conf"}
X
Xcommand=%%PREFIX%%/sbin/mosquitto
Xcommand_args="-c ${mosquitto_config} -d"
Xpidfile=$(grep pidfile ${mosquitto_config} | awk '{print($2)}')
Xrequired_files=${mosquitto_config}
X
Xextra_commands="reload"
Xstop_postcmd=stop_postcmd
Xstop_postcmd()
X{
X  rm -f $pidfile
X}
X
Xload_rc_config $name
Xrun_rc_command "$1"
6ac7a2e4efc1ed716a7da91fd5227372
echo x - net/mosquitto/files/patch-config.mk
sed 's/^X//' >net/mosquitto/files/patch-config.mk << '108ca82e92c2ba6ccb80469d8bf98a1b'
X--- config.mk.orig	2014-05-07 17:09:56.000000000 -0700
X+++ config.mk	2014-05-07 17:10:31.000000000 -0700
X@@ -213,6 +213,6 @@
X 
X 
X INSTALL?=install
X-prefix=/usr/local
X-mandir=${prefix}/share/man
X-localedir=${prefix}/share/locale
X+prefix=${PREFIX}
X+mandir=${PREFIX}/share/man
X+localedir=${PREFIX}/share/locale
108ca82e92c2ba6ccb80469d8bf98a1b
echo x - net/mosquitto/files/patch-etc-mosquitto.conf.example
sed 's/^X//' >net/mosquitto/files/patch-etc-mosquitto.conf.example << '6962b3da3bc0ac7b1c7d01248decc954'
X--- mosquitto.conf	2014-05-07 16:08:10.000000000 -0700
X+++ mosquitto.conf	2014-05-07 16:13:05.000000000 -0700
X@@ -32,7 +32,7 @@
X # This should be set to /var/run/mosquitto.pid if mosquitto is
X # being run automatically on boot with an init script and 
X # start-stop-daemon or similar.
X-#pid_file
X+pid_file /var/run/mosquitto.pid
X 
X # When run as root, drop privileges to this user and its primary 
X # group.
X@@ -40,7 +40,7 @@
X # If run as a non-root user, this setting has no effect.
X # Note that on Windows this has no effect and so mosquitto should 
X # be started by the user you wish it to run as.
X-#user mosquitto
X+user nobody
X 
X # The maximum number of QoS 1 and 2 messages currently inflight per 
X # client.
X@@ -133,7 +133,7 @@
X #bind_address
X 
X # Port to use for the default listener.
X-#port 1883
X+port 1883
X 
X # The maximum number of client connections to allow. This is 
X # a per listener setting.
6962b3da3bc0ac7b1c7d01248decc954
echo x - net/mosquitto/files/patch-lib-tls_mosq.h
sed 's/^X//' >net/mosquitto/files/patch-lib-tls_mosq.h << 'a1e9ab735c268de5de57c88853efbd05'
X--- lib/tls_mosq.h.orig	2014-05-07 14:39:22.000000000 -0700
X+++ lib/tls_mosq.h	2014-05-07 14:39:47.000000000 -0700
X@@ -33,6 +33,7 @@
X #ifdef WITH_TLS
X 
X #include <openssl/ssl.h>
X+#include <sys/socket.h>
X #ifdef WITH_TLS_PSK
X #  if OPENSSL_VERSION_NUMBER >= 0x10000000
X #    define REAL_WITH_TLS_PSK
a1e9ab735c268de5de57c88853efbd05
echo x - net/mosquitto/files/patch-CMakeList.txt
sed 's/^X//' >net/mosquitto/files/patch-CMakeList.txt << '4f326483277d8ffb15c0f98a8c414d6f'
X--- CMakeLists.txt.orig	2014-05-16 15:15:44.000000000 -0700
X+++ CMakeLists.txt	2014-05-16 15:28:39.000000000 -0700
X@@ -8,6 +8,8 @@
X 
X set (VERSION 1.3.1)
X 
X+link_directories(/usr/local/lib)
X+
X if (WIN32)
X 	execute_process(COMMAND cmd /c echo %DATE% %TIME% OUTPUT_VARIABLE TIMESTAMP
X 			OUTPUT_STRIP_TRAILING_WHITESPACE)
X@@ -71,4 +73,4 @@
X # Install config file
X # ========================================
X 
X-install(FILES mosquitto.conf aclfile.example pskfile.example pwfile.example DESTINATION ${SYSCONFDIR})
X+install(FILES mosquitto.conf.example aclfile.example pskfile.example pwfile.example DESTINATION ${SYSCONFDIR})
4f326483277d8ffb15c0f98a8c414d6f
echo x - net/mosquitto/files/patch-src-CMakeList.txt
sed 's/^X//' >net/mosquitto/files/patch-src-CMakeList.txt << '4a9a44b06010f08773014b8cd9a19712'
X--- src/CMakeLists.txt.orig	2014-05-16 15:17:23.000000000 -0700
X+++ src/CMakeLists.txt	2014-05-16 15:18:03.000000000 -0700
X@@ -79,7 +79,7 @@
X 	if (APPLE)
X 		set (MOSQ_LIBS ${MOSQ_LIBS} dl m)
X 	else (APPLE)
X-		set (MOSQ_LIBS ${MOSQ_LIBS} rt dl m)
X+		set (MOSQ_LIBS ${MOSQ_LIBS} rt m)
X 	endif (APPLE)
X endif (UNIX)
X 
4a9a44b06010f08773014b8cd9a19712
echo x - net/mosquitto/pkg-descr
sed 's/^X//' >net/mosquitto/pkg-descr << '7ce7f67547337cd353786fef98c406d8'
XMosquitto is an open source implementation of a server for version 3.1
Xof the MQTT protocol.
X
XWWW: http://mosquitto.org/
7ce7f67547337cd353786fef98c406d8
echo x - net/mosquitto/pkg-plist
sed 's/^X//' >net/mosquitto/pkg-plist << 'eec9fc7572767ca43b77952c7e1119c0'
Xshare/man/man8/mosquitto.8.gz
Xshare/man/man7/mqtt.7.gz
Xshare/man/man7/mosquitto-tls.7.gz
Xshare/man/man5/mosquitto.conf.5.gz
Xshare/man/man3/libmosquitto.3.gz
Xshare/man/man1/mosquitto_sub.1.gz
Xshare/man/man1/mosquitto_pub.1.gz
Xshare/man/man1/mosquitto_passwd.1.gz
X%%PYTHON_LIBDIR%%/site-packages/mosquitto.pyc
X%%PYTHON_LIBDIR%%/site-packages/mosquitto.py
X%%PYTHON_LIBDIR%%/site-packages/mosquitto-1.3.1-py%%PYTHON_VER%%.egg-info
Xlib/libmosquittopp.so.1
Xlib/libmosquittopp.so
Xlib/libmosquitto.so.1
Xlib/libmosquitto.so
Xlib/libmosquitto.so.1.3.1
Xlib/libmosquittopp.so.1.3.1
Xinclude/mosquittopp.h
Xinclude/mosquitto_plugin.h
Xinclude/mosquitto.h
Xbin/mosquitto_sub
Xbin/mosquitto_pub
Xbin/mosquitto_passwd
Xsbin/mosquitto
Xetc/mosquitto/pwfile.example
Xetc/mosquitto/pskfile.example
X@unexec if cmp -s %D/etc/mosquitto/mosquitto.conf %D/etc/mosquitto/mosquitto.conf.example; then rm -f %D/etc/mosquitto/mosquitto.conf; fi
Xetc/mosquitto/mosquitto.conf.example
X@exec cp -n %B/mosquitto.conf.example %B/mosquitto.conf
Xetc/mosquitto/aclfile.example
X@dirrmtry etc/mosquitto
X@dirrmtry share/man/man8
X@dirrmtry share/man/man7
X@dirrmtry share/man/man5
X@dirrmtry share/man/man3
X@dirrmtry share/man/man1
X@dirrmtry share/man
X@dirrmtry %%PYTHON_LIBDIR%%/site-packages
X@dirrmtry %%PYTHON_LIBDIR%%
eec9fc7572767ca43b77952c7e1119c0
exit


--------------020900010001060103040105--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5376B5FE.1000501>