Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2014 16:38:01 +0900 (JST)
From:      Fuminori OKUHARA <fuminori@okku.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/189850: New ports: net/mosquitto A MQTT Broker / Client / Client library
Message-ID:  <201405160738.s4G7c1Of019759@sakura.alaif.net>
Resent-Message-ID: <201405160740.s4G7e1de056728@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         189850
>Category:       ports
>Synopsis:       New ports: net/mosquitto A MQTT Broker / Client / Client library
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 16 07:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Fuminori OKUHARA
>Release:        FreeBSD 10.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD sakura.alaif.net 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
This is a port of Mosquitto.
Mosquitto is an open source message broker / client / client library imprements
the MQTT protocol version 3.1.

WWW: http://http://mosquitto.org/

>How-To-Repeat:

>Fix:
--- mosquitto.shar begins here ---
# 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:
#
#	mosquitto
#	mosquitto/Makefile
#	mosquitto/distinfo
#	mosquitto/files
#	mosquitto/files/patch-ac
#	mosquitto/files/patch-ab
#	mosquitto/files/patch-aa
#	mosquitto/files/patch-ad
#	mosquitto/files/mosquitto.in
#	mosquitto/pkg-descr
#	mosquitto/pkg-plist
#
echo c - mosquitto
mkdir -p mosquitto > /dev/null 2>&1
echo x - mosquitto/Makefile
sed 's/^X//' >mosquitto/Makefile << 'f72442419f1d6f9d5de58aecf34da831'
X# $FreeBSD$
X
XPORTNAME=	mosquitto
XPORTVERSION=	1.3.1
XCATEGORIES=	net
XMASTER_SITES=	http://mosquitto.org/files/source/
X
XMAINTAINER=	fuminori@okku.jp
XCOMMENT=	An Open Source MQTT Broker / Client / Client library
X
XLICENSE=	bsd
X
XLIB_DEPENDS=	libcares.so:${PORTSDIR}/dns/c-ares
X
XUSES=		cmake
XUSE_RC_SUBR=	mosquitto
X
XINSTALLS_SHLIB=	yes
X
XUSERS=		nobody
XGROUPS=		nogroup
X
X.include <bsd.port.mk>
f72442419f1d6f9d5de58aecf34da831
echo x - mosquitto/distinfo
sed 's/^X//' >mosquitto/distinfo << '6f1e2798e36c9e8ab0aa00735665da8e'
XSHA256 (mosquitto-1.3.1.tar.gz) = 1ee649cb80e0bd0aed8476349aa4c15c667507e2fc69540f18e3a1c599ed85fd
XSIZE (mosquitto-1.3.1.tar.gz) = 350381
6f1e2798e36c9e8ab0aa00735665da8e
echo c - mosquitto/files
mkdir -p mosquitto/files > /dev/null 2>&1
echo x - mosquitto/files/patch-ac
sed 's/^X//' >mosquitto/files/patch-ac << 'c7db0b394160e5df348b65cfb35e6a5a'
X*** lib/tls_mosq.c.orig	Tue Mar 25 08:52:40 2014
X--- lib/tls_mosq.c	Thu May 15 17:03:45 2014
X*************** POSSIBILITY OF SUCH DAMAGE.
X*** 36,41 ****
X--- 36,43 ----
X  #  include <arpa/inet.h>
X  #endif
X  
X+ #include<sys/socket.h>
X+ 
X  #include <string.h>
X  #include <openssl/conf.h>
X  #include <openssl/x509v3.h>
c7db0b394160e5df348b65cfb35e6a5a
echo x - mosquitto/files/patch-ab
sed 's/^X//' >mosquitto/files/patch-ab << 'd91f45ec45616f2c7dd27175b8224160'
X*** src/CMakeLists.txt.orig	Thu May 15 18:17:43 2014
X--- src/CMakeLists.txt	Thu May 15 18:21:23 2014
X*************** if (UNIX)
X*** 79,85 ****
X  	if (APPLE)
X  		set (MOSQ_LIBS ${MOSQ_LIBS} dl m)
X  	else (APPLE)
X! 		set (MOSQ_LIBS ${MOSQ_LIBS} rt dl m)
X  	endif (APPLE)
X  endif (UNIX)
X  
X--- 79,85 ----
X  	if (APPLE)
X  		set (MOSQ_LIBS ${MOSQ_LIBS} dl m)
X  	else (APPLE)
X! 		set (MOSQ_LIBS ${MOSQ_LIBS} rt m)
X  	endif (APPLE)
X  endif (UNIX)
X  
d91f45ec45616f2c7dd27175b8224160
echo x - mosquitto/files/patch-aa
sed 's/^X//' >mosquitto/files/patch-aa << '04c74e518777feef80feac6893a33938'
X*** CMakeLists.txt.orig	Tue Mar 25 08:52:40 2014
X--- CMakeLists.txt	Fri May 16 14:20:53 2014
X*************** cmake_minimum_required(VERSION 2.6)
X*** 8,13 ****
X--- 8,15 ----
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*************** else (WIN32)
X*** 40,46 ****
X  	set (LIBDIR lib${LIB_SUFFIX})
X  	set (INCLUDEDIR include)
X  	set (DATAROOTDIR share)
X! 	set (MANDIR ${DATAROOTDIR}/man)
X  	set (SHAREDIR ${DATAROOTDIR}/mosquitto)
X  endif (WIN32)
X  
X--- 42,48 ----
X  	set (LIBDIR lib${LIB_SUFFIX})
X  	set (INCLUDEDIR include)
X  	set (DATAROOTDIR share)
X! 	set (MANDIR man)
X  	set (SHAREDIR ${DATAROOTDIR}/mosquitto)
X  endif (WIN32)
X  
X*************** add_subdirectory(man)
X*** 71,74 ****
X  # Install config file
X  # ========================================
X  
X! install(FILES mosquitto.conf aclfile.example pskfile.example pwfile.example DESTINATION ${SYSCONFDIR})
X--- 73,77 ----
X  # Install config file
X  # ========================================
X  
X! file(RENAME mosquitto.conf mosquitto.conf.sample)
X! install(FILES mosquitto.conf.sample aclfile.example pskfile.example pwfile.example DESTINATION ${SYSCONFDIR})
04c74e518777feef80feac6893a33938
echo x - mosquitto/files/patch-ad
sed 's/^X//' >mosquitto/files/patch-ad << 'a7a39cffa72665c25ca03669f4c41c94'
X*** mosquitto.conf.orig	Tue Mar 25 08:52:40 2014
X--- mosquitto.conf	Fri May 16 15:13:37 2014
X***************
X*** 32,38 ****
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  
X  # When run as root, drop privileges to this user and its primary 
X  # group.
X--- 32,38 ----
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 /var/run/mosquitto.pid
X  
X  # When run as root, drop privileges to this user and its primary 
X  # group.
X***************
X*** 40,46 ****
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  
X  # The maximum number of QoS 1 and 2 messages currently inflight per 
X  # client.
X--- 40,46 ----
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 nobody
X  
X  # The maximum number of QoS 1 and 2 messages currently inflight per 
X  # client.
X***************
X*** 414,420 ****
X  # Note that if the broker is running as a Windows service it will default to
X  # "log_dest none" and neither stdout nor stderr logging is available.
X  # Use "log_dest none" if you wish to disable logging.
X! #log_dest stderr
X  
X  # Types of messages to log. Use multiple log_type lines for logging
X  # multiple types of messages.
X--- 414,420 ----
X  # Note that if the broker is running as a Windows service it will default to
X  # "log_dest none" and neither stdout nor stderr logging is available.
X  # Use "log_dest none" if you wish to disable logging.
X! log_dest syslog
X  
X  # Types of messages to log. Use multiple log_type lines for logging
X  # multiple types of messages.
a7a39cffa72665c25ca03669f4c41c94
echo x - mosquitto/files/mosquitto.in
sed 's/^X//' >mosquitto/files/mosquitto.in << 'cc8d37b3a9e5b7ed14abe7173e559ff8'
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.conf
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
Xcommand=%%PREFIX%%/sbin/${name}
Xpidfile=/var/run/${name}.pid
X
Xcommand_args="-d -c $mosquitto_config"
X
Xrun_rc_command "$1"
cc8d37b3a9e5b7ed14abe7173e559ff8
echo x - mosquitto/pkg-descr
sed 's/^X//' >mosquitto/pkg-descr << '133151eaf5f40aa2100c08ad5fd97fce'
XThis is a port of Mosquitto.
XMosquitto is an open source message broker / client / client library imprements 
Xthe MQTT protocol version 3.1.
X
XWWW: http://http://mosquitto.org/
133151eaf5f40aa2100c08ad5fd97fce
echo x - mosquitto/pkg-plist
sed 's/^X//' >mosquitto/pkg-plist << '9775cc41b12c1f282523eedeaeac2cbb'
Xsbin/mosquitto
Xbin/mosquitto_passwd
Xbin/mosquitto_pub
Xbin/mosquitto_sub
Xlib/libmosquitto.so
Xlib/libmosquitto.so.1
Xlib/libmosquitto.so.1.3.1
Xlib/libmosquittopp.so
Xlib/libmosquittopp.so.1
Xlib/libmosquittopp.so.1.3.1
Xinclude/mosquitto.h
Xinclude/mosquitto_plugin.h
Xinclude/mosquittopp.h
Xman/man1/mosquitto_passwd.1.gz
Xman/man1/mosquitto_pub.1.gz
Xman/man1/mosquitto_sub.1.gz
Xman/man3/libmosquitto.3.gz
Xman/man5/mosquitto.conf.5.gz
Xman/man7/mosquitto-tls.7.gz
Xman/man7/mqtt.7.gz
Xman/man8/mosquitto.8.gz
Xetc/mosquitto/aclfile.example
Xetc/mosquitto/pskfile.example
Xetc/mosquitto/pwfile.example
X@sample etc/mosquitto/mosquitto.conf.sample
X@dirrmtry etc/mosquitto
9775cc41b12c1f282523eedeaeac2cbb
exit
--- mosquitto.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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