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

(-)Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	asterisk
3
PORTNAME=	asterisk
4
PORTVERSION=	13.17.0
4
PORTVERSION=	13.17.0
5
PORTREVISION=	1
5
CATEGORIES=	net
6
CATEGORIES=	net
6
MASTER_SITES=	http://downloads.asterisk.org/pub/telephony/%SUBDIR%/:DEFAULT,g729
7
MASTER_SITES=	http://downloads.asterisk.org/pub/telephony/%SUBDIR%/:DEFAULT,g729
7
MASTER_SITE_SUBDIR=	asterisk/ \
8
MASTER_SITE_SUBDIR=	asterisk/ \
(-)files/asterisk.in (-2 / +18 lines)
Lines 17-22 Link Here
17
# 				Default is "-n"
17
# 				Default is "-n"
18
# asterisk_pidfile (string):	Location of the asterisk pid file
18
# asterisk_pidfile (string):	Location of the asterisk pid file
19
#				Default is /var/run/asterisk/asterisk.pid
19
#				Default is /var/run/asterisk/asterisk.pid
20
# asterisk_stopsleep (int):	Number of seconds to sleep before sending stop command
21
#				Default is 0, which disables it
20
#
22
#
21
23
22
. /etc/rc.subr
24
. /etc/rc.subr
Lines 31-36 Link Here
31
: ${asterisk_user:=%%ASTERISK_USER%%}
33
: ${asterisk_user:=%%ASTERISK_USER%%}
32
: ${asterisk_args=-n}
34
: ${asterisk_args=-n}
33
: ${asterisk_pidfile:=/var/run/asterisk/asterisk.pid}
35
: ${asterisk_pidfile:=/var/run/asterisk/asterisk.pid}
36
: ${asterisk_stopsleep:=0}
34
37
35
extra_commands=reload
38
extra_commands=reload
36
39
Lines 52-64 Link Here
52
55
53
asterisk_stop()
56
asterisk_stop()
54
{
57
{
55
	echo 'Stopping asterisk'
58
	if [ -z "$rc_pid" ]; then
59
		[ -n "$rc_fast" ] && return 0
60
		_run_rc_notrunning
61
		return 1
62
	fi
63
	echo 'Stopping asterisk.'
64
	if [ ${asterisk_stopsleep} > 0 ]; then
65
		sleep ${asterisk_stopsleep}
66
	fi
56
	$command -nqrx 'core stop now'
67
	$command -nqrx 'core stop now'
68
	wait_for_pids $rc_pid
57
}
69
}
58
70
59
asterisk_reload()
71
asterisk_reload()
60
{
72
{
61
	echo 'Reloading asterisk'
73
	if [ -z "$rc_pid" ]; then
74
		_run_rc_notrunning
75
		return 1
76
	fi
77
	echo 'Reloading asterisk.'
62
	$command -nqrx 'reload'
78
	$command -nqrx 'reload'
63
}
79
}
64
80

Return to bug 221271