Changeset 32564


Ignore:
Timestamp:
2012-07-01T13:04:03+02:00 (6 years ago)
Author:
jow
Message:

Update mosquitto to 0.15

Includes support for the luci-app-mosquitto package, if installed.

Signed-off-by: Karl Palsson <karlp@…>

Location:
packages/net/mosquitto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/mosquitto/Makefile

    r31376 r32564  
    1010 
    1111PKG_NAME:=mosquitto 
    12 PKG_VERSION:=0.14.4 
     12PKG_VERSION:=0.15 
    1313PKG_RELEASE:=1 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1616PKG_SOURCE_URL:=http://mosquitto.org/files/source/ 
    17 PKG_MD5SUM:=88750338c2096671c01cf7e461d5c06d 
     17PKG_MD5SUM:=7ae0ac38f1f379578ab5530e5dc7269e 
    1818 
    1919include $(INCLUDE_DIR)/package.mk 
  • packages/net/mosquitto/files/mosquitto.init

    r31376 r32564  
    22# Basic init script for mosquitto 
    33# April 2012, OpenWrt.org 
     4# Provides support for the luci-app-mosquitto package, if installed 
    45 
    56START=80 
    67APP=`which mosquitto` 
     8USE_UCI_CONFIG=$(uci -q get mosquitto.owrt.use_uci) 
     9if [ $? -eq 1 ]; then 
     10    USE_UCI_CONFIG=0 
     11fi 
    712 
    813SERVICE_DAEMONIZE=1 
     
    1116start() { 
    1217        user_exists mosquitto 200 || user_add mosquitto 200 
    13         service_start $APP -c /etc/mosquitto/mosquitto.conf 
     18        if [ "$USE_UCI_CONFIG" -eq 1 ]; then 
     19            CONF=/tmp/mosquitto.converted.$$.conf 
     20            mosquitto.uci.convert -f $CONF 
     21        else 
     22            CONF=/etc/mosquitto/mosquitto.conf 
     23        fi 
     24        service_start $APP -c $CONF 
    1425} 
    1526 
Note: See TracChangeset for help on using the changeset viewer.