Add rc script taken from the 1.8 update diff sent to ports@ by sthen@.
sthen@ ok.
This commit is contained in:
parent
bc62fd27e4
commit
e1d81e418e
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.96 2010/11/20 19:56:47 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.97 2011/01/04 22:35:46 fgsch Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
COMMENT-main= open source multi-protocol PBX and telephony toolkit
|
||||
@ -7,6 +7,7 @@ VER= 1.6.2.14
|
||||
CORESOUNDS= 1.4.19
|
||||
DISTNAME= asterisk-${VER:S/rc/-rc/}
|
||||
PKGNAME-main= asterisk-${VER}
|
||||
REVISION-main = 0
|
||||
|
||||
CATEGORIES= telephony
|
||||
|
||||
|
@ -1,9 +1,2 @@
|
||||
Simplified sample configuration is provided in ${SYSCONFDIR}/asterisk;
|
||||
the full set is available in ${PREFIX}/share/examples/asterisk/default.
|
||||
|
||||
To have Asterisk start at boot time, you may insert the following
|
||||
into /etc/rc.local:
|
||||
|
||||
if [ -x ${PREFIX}/sbin/safe_asterisk ]; then
|
||||
echo -n ' asterisk'; ${PREFIX}/sbin/safe_asterisk
|
||||
fi
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.33 2010/11/16 21:58:52 sthen Exp $
|
||||
@comment $OpenBSD: PLIST-main,v 1.34 2011/01/04 22:35:47 fgsch Exp $
|
||||
@conflict asterisk-sounds-<=1.2.1p2
|
||||
@conflict asterisk-ogg-*
|
||||
@conflict chan_unistim-*
|
||||
@ -1691,3 +1691,5 @@ share/examples/asterisk/voicemail/default/1234/en/busy.gsm
|
||||
share/examples/asterisk/voicemail/default/1234/en/unavail.gsm
|
||||
@owner _asterisk
|
||||
@sample /var/spool/asterisk/voicemail/default/1234/en/unavail.gsm
|
||||
@owner
|
||||
@rcscript ${RCDIR}/asterisk
|
||||
|
17
telephony/asterisk/pkg/asterisk.rc
Normal file
17
telephony/asterisk/pkg/asterisk.rc
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: asterisk.rc,v 1.1 2011/01/04 22:35:47 fgsch Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/asterisk"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_start() {
|
||||
${TRUEPREFIX}/sbin/safe_asterisk > /dev/null
|
||||
}
|
||||
|
||||
rc_stop() {
|
||||
${daemon} -rx "core stop now"
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user