contrib/mosquitto/Pkgfile

31 lines
756 B
Plaintext

# Description: MQTT compatible server and client libraries
# URL: http://www.mosquitto.org
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
#
# Depends on: cmake c-ares
name=mosquitto
version=1.3.1
release=2
source=(http://mosquitto.org/files/source/$name-$version.tar.gz
https://raw.github.com/binarybucks/mqttitude/master/tools/TLS/generate-CA.sh)
build() {
cd $name-$version
mkdir build && cd build
# Build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
# Package
make DESTDIR=$PKG install
mkdir $PKG/etc/mosquitto/TLS/
install -m755 $SRC/generate-CA.sh $PKG/etc/mosquitto/TLS/generate-CA.sh
# Cleanup
rm -rf $PKG/etc/mosquitto/*.example
chown -R root:root $PKG
}