pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

initial version of mosquitto 1.4.9



Module Name:	pkgsrc-wip
Committed By:	Daniel Oelschlegel <amoibos%gmail.com@localhost>
Pushed By:	amoibos
Date:		Sun Aug 28 17:46:57 2016 +0000
Changeset:	7d41e9e1ed6fc39ef57110f1d1640b4b638c1c43

Added Files:
	mosquitto/DESCR
	mosquitto/Makefile
	mosquitto/PLIST
	mosquitto/distinfo
	mosquitto/patches/patch-aa
	mosquitto/patches/patch-ab
	mosquitto/patches/patch-ac
	mosquitto/patches/patch-ad
	mosquitto/patches/patch-ae
	mosquitto/patches/patch-af
	mosquitto/patches/patch-ag
	mosquitto/patches/patch-ah
	mosquitto/patches/patch-ai
	mosquitto/patches/patch-aj

Log Message:
initial version of mosquitto 1.4.9

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7d41e9e1ed6fc39ef57110f1d1640b4b638c1c43

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mosquitto/DESCR            |  6 ++++++
 mosquitto/Makefile         | 16 ++++++++++++++++
 mosquitto/PLIST            | 21 +++++++++++++++++++++
 mosquitto/distinfo         | 16 ++++++++++++++++
 mosquitto/patches/patch-aa | 25 +++++++++++++++++++++++++
 mosquitto/patches/patch-ab | 23 +++++++++++++++++++++++
 mosquitto/patches/patch-ac | 11 +++++++++++
 mosquitto/patches/patch-ad | 40 ++++++++++++++++++++++++++++++++++++++++
 mosquitto/patches/patch-ae | 36 ++++++++++++++++++++++++++++++++++++
 mosquitto/patches/patch-af | 13 +++++++++++++
 mosquitto/patches/patch-ag | 12 ++++++++++++
 mosquitto/patches/patch-ah | 24 ++++++++++++++++++++++++
 mosquitto/patches/patch-ai | 13 +++++++++++++
 mosquitto/patches/patch-aj | 13 +++++++++++++
 14 files changed, 269 insertions(+)

diffs:
diff --git a/mosquitto/DESCR b/mosquitto/DESCR
new file mode 100644
index 0000000..f67a6ea
--- /dev/null
+++ b/mosquitto/DESCR
@@ -0,0 +1,6 @@
+Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that
+implements the MQTT protocol versions 3.1 and 3.1.1 MQTT provides a
+lightweight method of carrying out messaging using a publish/subscribe model.
+This makes it suitable for "Internet of Things" messaging such as with low power
+sensors or mobile devices such as phones, embedded computers or
+microcontrollers like the Arduino.
diff --git a/mosquitto/Makefile b/mosquitto/Makefile
new file mode 100644
index 0000000..ec846ff
--- /dev/null
+++ b/mosquitto/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD$
+PKGNAME=	mosquitto-1.4.9
+DISTNAME=	${PKGNAME}
+CATEGORIES=	net
+MASTER_SITES=	http://mosquitto.org/files/source/
+
+MAINTAINER=	amoibos%gmail.com@localhost
+HOMEPAGE=	http://mosquitto.org/
+COMMENT=	Open Source MQTT broker
+LICENSE=	eclipse-license
+
+USE_LANGUAGES+=	c c++
+USE_TOOLS+=	cmake gmake
+
+.include "../../net/libcares/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mosquitto/PLIST b/mosquitto/PLIST
new file mode 100644
index 0000000..082b72f
--- /dev/null
+++ b/mosquitto/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD$
+bin/mosquitto_passwd
+bin/mosquitto_pub
+bin/mosquitto_sub
+lib/libmosquitto.a
+lib/libmosquitto.so.1
+lib/libmosquittopp.so.1
+man/man1/mosquitto.passwd.1
+man/man1/mosquitto.pub.1
+man/man1/mosquitto.sub.1
+man/man3/libmosquitto.3
+man/man5/mosquitto.conf.5
+man/man7/mosquitto-tls.7
+man/man7/mqtt.7
+man/man8/mosquitto.8
+sbin/mosquitto
+share/examples/mosquitto/
+share/examples/mosquitto/aclfile.example
+share/examples/mosquitto/mosquitto.conf
+share/examples/mosquitto/pskfile.example
+share/examples/mosquitto/pwfile.example
diff --git a/mosquitto/distinfo b/mosquitto/distinfo
new file mode 100644
index 0000000..9816c34
--- /dev/null
+++ b/mosquitto/distinfo
@@ -0,0 +1,16 @@
+$NetBSD$
+
+SHA1 (mosquitto-1.4.9.tar.gz) = 6b3be417f35a882e18ee3c8b6591ac6ee5e1b42e
+RMD160 (mosquitto-1.4.9.tar.gz) = 2a7492ed28a5a72a0d2f3e133f5cbe2eb447efeb
+SHA512 (mosquitto-1.4.9.tar.gz) = 5994159d9a8da248a877f3032f36ca9a865d9b4efaafac329620864049992a77d414e02252cbbfef89ea2c37dc761b1885a89e19fc8e82b2a42d38f31e761d4d
+Size (mosquitto-1.4.9.tar.gz) = 325712 bytes
+SHA1 (patch-aa) = 9da33768dd0c5c4aa4277153ed5b3d8c5c3f2070
+SHA1 (patch-ab) = 8bf4c0d2a8dd1baaa6fffabba75c75f2fc604daf
+SHA1 (patch-ac) = 0a9dc86ff84ea0d8cadce12c77c6dd2e7bf010f1
+SHA1 (patch-ad) = 079cb84d6756c59187a8f66d963a710e3f7a0604
+SHA1 (patch-ae) = d915e26afcba074c6b6d31e73b6cb5001e2ede39
+SHA1 (patch-af) = 4f797b6339f2a7f91466c78bf6fb33c9101b20e3
+SHA1 (patch-ag) = 45b7e547857458c69805b517dda799cf483ae822
+SHA1 (patch-ah) = 25929631f5ee924105e194c55219c93d8e9824ac
+SHA1 (patch-ai) = 1251819d0ccc96b7b307023365a7edbc11906ddf
+SHA1 (patch-aj) = 6ea887e67976e0a6907a06220bb9d730f2e7c6a1
diff --git a/mosquitto/patches/patch-aa b/mosquitto/patches/patch-aa
new file mode 100644
index 0000000..97b2feb
--- /dev/null
+++ b/mosquitto/patches/patch-aa
@@ -0,0 +1,25 @@
+$NetBSD$
+
+--- CMakeLists.txt.orig	2016-06-02 21:20:22.000000000 +0000
++++ CMakeLists.txt	2016-08-28 15:50:53.430205374 +0000
+@@ -37,18 +40,12 @@
+ else (WIN32)
+ 	set (BINDIR bin)
+ 	set (SBINDIR sbin)
+-	if ("${CMAKE_INSTALL_PREFIX}" STREQUAL /usr)
+-		set (SYSCONFDIR /etc/mosquitto)
+-	else ("${CMAKE_INSTALL_PREFIX}" STREQUAL /usr)
+-		set (SYSCONFDIR etc/mosquitto)
+-	endif ("${CMAKE_INSTALL_PREFIX}" STREQUAL /usr)
+ 	
+ 	set (LIBDIR lib${LIB_SUFFIX})
+-	set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIBDIR}")
+ 	set (INCLUDEDIR include)
+ 	set (DATAROOTDIR share)
+-	set (MANDIR "${DATAROOTDIR}/man")
+-	set (SHAREDIR "${DATAROOTDIR}/mosquitto")
++	set (MANDIR "man")
++	set (SYSCONFDIR "${DATAROOTDIR}/examples/mosquitto")
+ endif (WIN32)
+ 
+ option(WITH_TLS
diff --git a/mosquitto/patches/patch-ab b/mosquitto/patches/patch-ab
new file mode 100644
index 0000000..23f7502
--- /dev/null
+++ b/mosquitto/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD$
+
+--- lib/CMakeLists.txt.orig	2016-06-02 21:20:22.000000000 +0000
++++ lib/CMakeLists.txt	2016-08-28 14:00:33.700421980 +0000
+@@ -43,9 +43,9 @@
+ 
+ set (LIBRARIES ${OPENSSL_LIBRARIES} ${PTHREAD_LIBRARIES})
+ 
+-if (UNIX AND NOT APPLE)
++if (UNIX AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
+ 	set (LIBRARIES ${LIBRARIES} rt)
+-endif (UNIX AND NOT APPLE)
++endif (UNIX AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
+ 
+ if (WIN32)
+ 	set (LIBRARIES ${LIBRARIES} ws2_32)
+@@ -73,6 +73,3 @@
+ install(TARGETS libmosquitto RUNTIME DESTINATION "${BINDIR}" LIBRARY DESTINATION "${LIBDIR}")
+ install(FILES mosquitto.h DESTINATION "${INCLUDEDIR}")
+ 
+-if (UNIX)
+-	install(CODE "EXEC_PROGRAM(/sbin/ldconfig)")
+-endif (UNIX)
diff --git a/mosquitto/patches/patch-ac b/mosquitto/patches/patch-ac
new file mode 100644
index 0000000..c562501
--- /dev/null
+++ b/mosquitto/patches/patch-ac
@@ -0,0 +1,11 @@
+$NetBSD$
+
+--- lib/cpp/CMakeLists.txt.orig	2016-06-02 21:20:22.000000000 +0000
++++ lib/cpp/CMakeLists.txt	2016-08-28 14:01:52.611842007 +0000
+@@ -13,6 +13,3 @@
+ install(TARGETS mosquittopp RUNTIME DESTINATION "${BINDIR}" LIBRARY DESTINATION "${LIBDIR}")
+ install(FILES mosquittopp.h DESTINATION "${INCLUDEDIR}")
+ 
+-if (UNIX)
+-	install(CODE "EXEC_PROGRAM(/sbin/ldconfig)")
+-endif (UNIX)
diff --git a/mosquitto/patches/patch-ad b/mosquitto/patches/patch-ad
new file mode 100644
index 0000000..27800f1
--- /dev/null
+++ b/mosquitto/patches/patch-ad
@@ -0,0 +1,40 @@
+$NetBSD$
+
+--- mosquitto.conf.orig	2016-06-02 21:20:22.000000000 +0000
++++ mosquitto.conf	2016-08-28 15:28:28.495612360 +0000
+@@ -32,7 +32,7 @@
+ # This should be set to /var/run/mosquitto.pid if mosquitto is
+ # being run automatically on boot with an init script and 
+ # start-stop-daemon or similar.
+-#pid_file
++pid_file /var/run/mosquitto.pid
+ 
+ # When run as root, drop privileges to this user and its primary 
+ # group.
+@@ -40,7 +40,7 @@
+ # If run as a non-root user, this setting has no effect.
+ # Note that on Windows this has no effect and so mosquitto should 
+ # be started by the user you wish it to run as.
+-#user mosquitto
++user mosquitto
+ 
+ # The maximum number of QoS 1 and 2 messages currently inflight per 
+ # client.
+@@ -133,7 +133,7 @@
+ #bind_address
+ 
+ # Port to use for the default listener.
+-#port 1883
++port 1883
+ 
+ # The maximum number of client connections to allow. This is 
+ # a per listener setting.
+@@ -461,7 +461,7 @@
+ # Note that if the broker is running as a Windows service it will default to
+ # "log_dest none" and neither stdout nor stderr logging is available.
+ # Use "log_dest none" if you wish to disable logging.
+-#log_dest stderr
++log_dest syslog
+ 
+ # If using syslog logging (not on Windows), messages will be logged to the
+ # "daemon" facility by default. Use the log_facility option to choose which of
diff --git a/mosquitto/patches/patch-ae b/mosquitto/patches/patch-ae
new file mode 100644
index 0000000..8dbe440
--- /dev/null
+++ b/mosquitto/patches/patch-ae
@@ -0,0 +1,36 @@
+$NetBSD$
+
+--- src/CMakeLists.txt.orig	2016-06-02 21:20:22.000000000 +0000
++++ src/CMakeLists.txt	2016-08-28 14:13:03.999103447 +0000
+@@ -85,6 +85,8 @@
+ if (UNIX)
+ 	if (APPLE)
+ 		set (MOSQ_LIBS ${MOSQ_LIBS} dl m)
++	elseif (${CMAKE_SYSTEM_NAME} MATCHES "NetBSD")
++		set (MOSQ_LIBS ${MOSQ_LIBS} m)
+ 	else (APPLE)
+ 		set (MOSQ_LIBS ${MOSQ_LIBS} rt dl m)
+ 	endif (APPLE)
+@@ -101,10 +103,11 @@
+ # Simple detect libuuid
+ if(NOT APPLE)
+ 	FIND_PATH(UUID_HEADER uuid/uuid.h)
+-	if (UUID_HEADER)
++	FIND_LIBRARY(UUID_LIBRARY NAMES uuid)
++	IF (UUID_HEADER AND UUID_LIBRARY)
+ 		add_definitions(-DWITH_UUID)
+-		set (MOSQ_LIBS ${MOSQ_LIBS} uuid)
+-	endif (UUID_HEADER)
++		set (MOSQ_LIBS ${MOSQ_LIBS} ${UUID_LIBRARY})
++	endif ()
+ endif(NOT APPLE)
+ 
+ target_link_libraries(mosquitto ${MOSQ_LIBS})
+@@ -126,7 +129,3 @@
+ 	install(TARGETS mosquitto_passwd RUNTIME DESTINATION "${BINDIR}" LIBRARY DESTINATION "${LIBDIR}")
+ endif (${WITH_TLS} STREQUAL ON)
+ 
+-if (UNIX)
+-	install(CODE "EXEC_PROGRAM(/sbin/ldconfig)")
+-endif (UNIX)
+-
diff --git a/mosquitto/patches/patch-af b/mosquitto/patches/patch-af
new file mode 100644
index 0000000..694c832
--- /dev/null
+++ b/mosquitto/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- lib/memory_mosq.h.orig	2016-06-02 21:20:22.000000000 +0000
++++ lib/memory_mosq.h	2016-08-28 14:30:34.000000000 +0000
+@@ -20,7 +20,7 @@
+ #include <stdio.h>
+ #include <sys/types.h>
+ 
+-#if defined(WITH_MEMORY_TRACKING) && defined(WITH_BROKER) && !defined(WIN32) && !defined(__SYMBIAN32__) && !defined(__ANDROID__) && !defined(__UCLIBC__) && !defined(__OpenBSD__)
++#if defined(WITH_MEMORY_TRACKING) && defined(WITH_BROKER) && !defined(WIN32) && !defined(__SYMBIAN32__) && !defined(__ANDROID__) && !defined(__UCLIBC__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
+ #define REAL_WITH_MEMORY_TRACKING
+ #endif
+ 
diff --git a/mosquitto/patches/patch-ag b/mosquitto/patches/patch-ag
new file mode 100644
index 0000000..5a38032
--- /dev/null
+++ b/mosquitto/patches/patch-ag
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- lib/tls_mosq.c.orig	2016-06-02 21:20:22.000000000 +0000
++++ lib/tls_mosq.c	2016-08-28 14:31:56.000000000 +0000
+@@ -20,6 +20,7 @@
+ #  include <winsock2.h>
+ #  include <ws2tcpip.h>
+ #else
++#  include <sys/socket.h>
+ #  include <arpa/inet.h>
+ #  include <sys/socket.h>
+ #endif
diff --git a/mosquitto/patches/patch-ah b/mosquitto/patches/patch-ah
new file mode 100644
index 0000000..baf2807
--- /dev/null
+++ b/mosquitto/patches/patch-ah
@@ -0,0 +1,24 @@
+$NetBSD$
+
+--- config.mk.orig	2016-06-02 21:20:22.000000000 +0000
++++ config.mk	2016-08-28 15:27:03.968104814 +0000
+@@ -115,7 +115,7 @@
+ BROKER_CFLAGS:=${LIB_CFLAGS} ${CPPFLAGS} -DVERSION="\"${VERSION}\"" -DTIMESTAMP="\"${TIMESTAMP}\"" -DWITH_BROKER
+ CLIENT_CFLAGS:=${CFLAGS} ${CPPFLAGS} -I../lib -DVERSION="\"${VERSION}\""
+ 
+-ifneq ($(or $(findstring $(UNAME),FreeBSD), $(findstring $(UNAME),OpenBSD)),)
++ifneq ($(or $(findstring $(UNAME),FreeBSD), $(findstring $(UNAME),OpenBSD), $(findstring $(UNAME),NetBSD)),)
+ 	BROKER_LIBS:=-lm
+ else
+ 	BROKER_LIBS:=-ldl -lm
+@@ -241,7 +241,7 @@
+ endif
+ 
+ INSTALL?=install
+-prefix=/usr/local
+-mandir=${prefix}/share/man
+-localedir=${prefix}/share/locale
++prefix=${PREFIX}
++mandir=${PREFIX}/share/man
++localedir=${PREFIX}/share/locale
+ STRIP?=strip
diff --git a/mosquitto/patches/patch-ai b/mosquitto/patches/patch-ai
new file mode 100644
index 0000000..6a32a9c
--- /dev/null
+++ b/mosquitto/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- src/net.c.orig	2016-06-02 21:20:22.000000000 +0000
++++ src/net.c	2016-08-28 15:15:07.413097823 +0000
+@@ -35,7 +35,7 @@
+ #include <tcpd.h>
+ #endif
+ 
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ #  include <netinet/in.h>
+ #  include <sys/socket.h>
+ #endif
diff --git a/mosquitto/patches/patch-aj b/mosquitto/patches/patch-aj
new file mode 100644
index 0000000..1b0b91f
--- /dev/null
+++ b/mosquitto/patches/patch-aj
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- lib/net_mosq.c.orig	2016-06-02 21:20:22.000000000 +0000
++++ lib/net_mosq.c	2016-08-28 15:15:43.540861477 +0000
+@@ -34,7 +34,7 @@
+ #include <sys/endian.h>
+ #endif
+ 
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__NetBSD__)
+ #  include <netinet/in.h>
+ #endif
+ 


Home | Main Index | Thread Index | Old Index