2015-02-20 20:07:05 +01:00
|
|
|
# Template file for 'mosquitto'
|
|
|
|
pkgname=mosquitto
|
2015-09-19 13:10:40 +02:00
|
|
|
version=1.4.4
|
|
|
|
revision=1
|
2015-02-20 20:07:05 +01:00
|
|
|
build_style=gnu-makefile
|
|
|
|
make_build_args="WITH_TLS_PSK=no" # not supported by libressl
|
|
|
|
make_install_args="prefix=/usr"
|
|
|
|
conf_files="/etc/mosquitto/mosquitto.conf"
|
2015-04-03 16:55:28 +02:00
|
|
|
makedepends="libressl-devel libuuid-devel c-ares-devel"
|
2015-02-20 20:07:05 +01:00
|
|
|
short_desc="MQTT version 3.1/3.1.1 compatible message broker"
|
|
|
|
maintainer="Lukas Braun <koomi@hackerspace-bamberg.de>"
|
2015-09-19 14:07:29 +02:00
|
|
|
license="epl-v10, edl-v10"
|
2015-02-20 20:07:05 +01:00
|
|
|
homepage="http://mosquitto.org/"
|
|
|
|
distfiles="http://mosquitto.org/files/source/mosquitto-${version}.tar.gz"
|
2015-09-19 13:10:40 +02:00
|
|
|
checksum=c643c7123708aadcd29287dda7b5ce7c910f75b02956a8fc4fe65ad2ea767a5f
|
2015-02-20 20:07:05 +01:00
|
|
|
|
2015-06-02 17:46:17 +02:00
|
|
|
pre_install() {
|
|
|
|
sed -i 's,sbin,bin,g' */Makefile
|
|
|
|
}
|
2015-02-22 08:37:37 +01:00
|
|
|
post_install() {
|
2015-09-19 14:07:29 +02:00
|
|
|
vlicense LICENSE.txt
|
|
|
|
vlicense epl-v10
|
|
|
|
vlicense edl-v10
|
2015-02-22 08:37:37 +01:00
|
|
|
mv ${DESTDIR}/etc/${pkgname}/${pkgname}.conf.example \
|
|
|
|
${DESTDIR}/etc/${pkgname}/${pkgname}.conf
|
|
|
|
vmkdir usr/share/examples/${pkgname}
|
|
|
|
mv ${DESTDIR}/etc/${pkgname}/*.example \
|
|
|
|
${DESTDIR}/usr/share/examples/${pkgname}
|
|
|
|
}
|
|
|
|
|
2015-02-20 20:07:05 +01:00
|
|
|
mosquitto-clients_package() {
|
|
|
|
short_desc="Mosquitto command line MQTT clients"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/mosquitto_pub
|
|
|
|
vmove usr/bin/mosquitto_sub
|
|
|
|
vmove usr/share/man/man1/mosquitto_pub.1
|
|
|
|
vmove usr/share/man/man1/mosquitto_sub.1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libmosquitto_package() {
|
|
|
|
short_desc="MQTT version 3.1/3.1.1 client library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libmosquitto.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libmosquitto-devel_package() {
|
|
|
|
short_desc="MQTT version 3.1/3.1.1 client library - development files"
|
|
|
|
depends="libmosquitto-${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/mosquitto.h
|
2015-02-22 08:37:37 +01:00
|
|
|
vmove usr/include/mosquitto_plugin.h
|
2015-02-20 20:07:05 +01:00
|
|
|
vmove usr/lib/libmosquitto.so
|
|
|
|
vmove usr/share/man/man3/libmosquitto.3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libmosquittopp_package() {
|
|
|
|
short_desc="MQTT version 3.1/3.1.1 C++ client library"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libmosquittopp.so.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libmosquittopp-devel_package() {
|
|
|
|
short_desc="MQTT version 3.1/3.1.1 C++ client library - development files"
|
|
|
|
depends="libmosquittopp-${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include/mosquittopp.h
|
|
|
|
vmove usr/lib/libmosquittopp.so
|
|
|
|
}
|
|
|
|
}
|