diff options
Diffstat (limited to 'net/asterisk')
| -rw-r--r-- | net/asterisk/Makefile | 6 | ||||
| -rw-r--r-- | net/asterisk/files/asterisk.in | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/net/asterisk/Makefile b/net/asterisk/Makefile index 0e7338717476..a2b93ac9eeeb 100644 --- a/net/asterisk/Makefile +++ b/net/asterisk/Makefile @@ -3,7 +3,7 @@ PORTNAME= asterisk PORTVERSION= 1.8.32.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net MASTER_SITES= http://downloads.asterisk.org/pub/telephony/%SUBDIR%/:main,g729 MASTER_SITE_SUBDIR= asterisk/:main \ @@ -54,8 +54,8 @@ CONFLICTS_INSTALL= asterisk*-11* asterisk*-13* OPTIONS_DEFINE= BACKTRACE CURL EXCHANGE FREETDS H323 JABBER LUA LDAP \ MP3PLAYER OOH323 RADIUS SNMP SPANDSP SRTP SYSINFO -OPTIONS_DEFAULT= BACKTRACE CURL FREETDS GSM H323 JABBER LUA NEWT ODBC PGSQL RADIUS SNMP SPEEX \ - SQLITE VORBIS +OPTIONS_DEFAULT= BACKTRACE CURL FREETDS GSM H323 JABBER LUA NEWT ODBC \ + PGSQL RADIUS SNMP SPANDSP SPEEX SQLITE VORBIS OPTIONS_DEFINE_i386= DAHDI OPTIONS_DEFINE_amd64= DAHDI diff --git a/net/asterisk/files/asterisk.in b/net/asterisk/files/asterisk.in index b8e24b5ee78b..e2d997ecc201 100644 --- a/net/asterisk/files/asterisk.in +++ b/net/asterisk/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' |
