80 lines
2.2 KiB
Bash
80 lines
2.2 KiB
Bash
# Template file for 'mosquitto'
|
|
pkgname=mosquitto
|
|
version=1.4.11
|
|
revision=3
|
|
build_style=gnu-makefile
|
|
make_build_args="WITH_TLS_PSK=no WITH_WEBSOCKETS=yes" # PSK not supported by libressl
|
|
make_install_args="prefix=/usr"
|
|
conf_files="/etc/mosquitto/mosquitto.conf"
|
|
makedepends="libressl-devel libuuid-devel c-ares-devel libwebsockets-devel"
|
|
short_desc="MQTT version 3.1/3.1.1 compatible message broker"
|
|
maintainer="Lukas Braun <koomi@hackerspace-bamberg.de>"
|
|
license="epl-v10, edl-v10"
|
|
homepage="http://mosquitto.org/"
|
|
distfiles="http://mosquitto.org/files/source/mosquitto-${version}.tar.gz"
|
|
checksum=ca47533bbc1b7c5e15d6e5d96d3efc59677f2515b6692263c34b7c48f33280c5
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
post_extract() {
|
|
sed -i 's/-lanl//' config.mk
|
|
}
|
|
esac
|
|
pre_install() {
|
|
sed -i 's,sbin,bin,g' */Makefile
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
vlicense epl-v10
|
|
vlicense edl-v10
|
|
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}
|
|
}
|
|
|
|
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
|
|
vmove usr/include/mosquitto_plugin.h
|
|
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
|
|
}
|
|
}
|