- fix rc script (REQUIRE: LOGIN)

- fix permissions if asterisk is installed via the package.

Submitted by:	MAINTAINER
This commit is contained in:
Max Khon 2010-11-08 04:52:41 +00:00
parent d9ca8800cf
commit 9a87e44aa4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264221
3 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= asterisk
PORTVERSION= 1.6.2.13
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
@ -74,6 +74,8 @@ OPTIONS+= DAHDI "Enable DAHDI support" on
.endif
SUB_LIST+= ASTERISK_USER=${ASTERISK_USER}
PLIST_SUB+= ASTERISK_USER=${ASTERISK_USER}
PLIST_SUB+= ASTERISK_GROUP=${ASTERISK_GROUP}
.if !defined(WITH_H323)
PLIST_SUB+= WITH_H323="@comment "

View File

@ -1,7 +1,7 @@
#!/bin/sh
# PROVIDE: asterisk
# REQUIRE: DAEMON
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable asterisk:

View File

@ -1404,6 +1404,9 @@ spool/asterisk/voicemail/default/1234/en/unavail.gsm
@exec mkdir -p %D/spool/asterisk/voicemail/default/1234/en
@exec mkdir -p %D/spool/asterisk/tmp
@exec mkdir -p %D/db/asterisk
@exec chown -R %%ASTERISK_USER%%:%%ASTERISK_GROUP%% %D/db/asterisk
@exec chown -R %%ASTERISK_USER%%:%%ASTERISK_GROUP%% %D/spool/asterisk
@exec chown -R %%ASTERISK_USER%%:%%ASTERISK_GROUP%% %D/log/asterisk
@dirrm spool/asterisk/dictate
@dirrm spool/asterisk/meetme
@dirrm spool/asterisk/monitor