View | Details | Raw Unified | Return to bug 258089
Collapse All | Expand All

(-)b/net/mosquitto/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	mosquitto
3
PORTNAME=	mosquitto
4
PORTVERSION=	2.0.10
4
PORTVERSION=	2.0.10
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	net
6
CATEGORIES=	net
7
MASTER_SITES=	https://mosquitto.org/files/source/
7
MASTER_SITES=	https://mosquitto.org/files/source/
8
8
(-)b/net/mosquitto/files/mosquitto.in (-12 / +5 lines)
Lines 19-24 Link Here
19
name=mosquitto
19
name=mosquitto
20
rcvar=mosquitto_enable
20
rcvar=mosquitto_enable
21
21
22
load_rc_config $name
23
22
mosquitto_enable=${mosquitto_enable:="NO"}
24
mosquitto_enable=${mosquitto_enable:="NO"}
23
mosquitto_config=${mosquitto_config:="%%PREFIX%%/etc/mosquitto/mosquitto.conf"}
25
mosquitto_config=${mosquitto_config:="%%PREFIX%%/etc/mosquitto/mosquitto.conf"}
24
mosquitto_user=${mosquitto_user:="nobody"}
26
mosquitto_user=${mosquitto_user:="nobody"}
Lines 28-44 command_args="-c ${mosquitto_config} -d" Link Here
28
pidfile=${mosquitto_pidfile:-"/var/run/mosquitto.pid"}
30
pidfile=${mosquitto_pidfile:-"/var/run/mosquitto.pid"}
29
required_files=${mosquitto_config}
31
required_files=${mosquitto_config}
30
32
31
extra_commands="reload"
33
extra_commands=reload
32
stop_postcmd=stop_postcmd
34
stop_postcmd="rm -f $pidfile"
33
stop_postcmd()
35
start_precmd="install -o ${mosquitto_user} -m 644 /dev/null ${pidfile}"
34
{
35
  rm -f $pidfile
36
}
37
start_precmd=start_precmd
38
start_precmd()
39
{
40
	install -o ${mosquitto_user} -m 644 /dev/null ${pidfile}
41
}
42
36
43
load_rc_config $name
44
run_rc_command "$1"
37
run_rc_command "$1"

Return to bug 258089