diff options
Diffstat (limited to 'net/asterisk13')
| -rw-r--r-- | net/asterisk13/Makefile | 3 | ||||
| -rw-r--r-- | net/asterisk13/files/asterisk.in | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/net/asterisk13/Makefile b/net/asterisk13/Makefile index 0dbb072111dd..0e51bc96b9bb 100644 --- a/net/asterisk13/Makefile +++ b/net/asterisk13/Makefile @@ -2,6 +2,7 @@ PORTNAME= asterisk PORTVERSION= 13.7.0 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://downloads.asterisk.org/pub/telephony/%SUBDIR%/:main,g729 MASTER_SITE_SUBDIR= asterisk/:main \ @@ -59,7 +60,7 @@ OPTIONS_DEFINE= ASTVERSION BACKTRACE CURL EXCHANGE FREETDS LDAP LUA \ MP3PLAYER OOH323 PJSIP PORTAUDIO RADIUS SNMP \ SPANDSP SRTP SYSINFO XMPP OPTIONS_DEFAULT= CURL FREETDS GCC GSM LUA MP3PLAYER NEWT ODBC PGSQL PJSIP \ - PORTAUDIO RADIUS SNMP SPEEX SQLITE2 VORBIS \ + PORTAUDIO RADIUS SNMP SPANDSP SPEEX SQLITE2 VORBIS \ XMPP OPTIONS_DEFINE_i386= DAHDI diff --git a/net/asterisk13/files/asterisk.in b/net/asterisk13/files/asterisk.in index b8e24b5ee78b..e2d997ecc201 100644 --- a/net/asterisk13/files/asterisk.in +++ b/net/asterisk13/files/asterisk.in @@ -34,6 +34,7 @@ load_rc_config $name extra_commands=reload +start_precmd=asterisk_precmd stop_cmd=asterisk_stop reload_cmd=asterisk_reload @@ -41,6 +42,14 @@ command="%%PREFIX%%/sbin/asterisk" command_args="${asterisk_args} -F -U ${asterisk_user}" pidfile=${asterisk_pidfile} +asterisk_precmd() +{ + local rundir=${asterisk_pidfile%/*} + if [ ! -d $rundir ] ; then + install -d -m 0755 -o asterisk -g asterisk $rundir + fi +} + asterisk_stop() { echo 'Stopping asterisk' |
