aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk10
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-04-14 13:23:49 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-04-14 13:23:49 +0000
commitb57ef5a660f86320a59a50ad3abf123fae1aee3c (patch)
tree2d1ab17ceb88f124287943a3eace41366f80f045 /net/asterisk10
parentc066ddf7264133779c25b84827e3326dd01f1030 (diff)
downloadports-b57ef5a660f86320a59a50ad3abf123fae1aee3c.tar.gz
ports-b57ef5a660f86320a59a50ad3abf123fae1aee3c.zip
Notes
Diffstat (limited to 'net/asterisk10')
-rw-r--r--net/asterisk10/Makefile4
-rw-r--r--net/asterisk10/files/asterisk.sh.in (renamed from net/asterisk10/files/asterisk.sh)4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/asterisk10/Makefile b/net/asterisk10/Makefile
index ce7f82474c8f..5802757f3e20 100644
--- a/net/asterisk10/Makefile
+++ b/net/asterisk10/Makefile
@@ -31,7 +31,7 @@ GNU_CONFIGURE= yes
CONFIGURE_WRKSRC= ${WRKSRC}/editline
USE_GMAKE= yes
USE_BISON= yes
-USE_RC_SUBR= yes
+USE_RC_SUBR= asterisk.sh
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
MKDIR="${MKDIR}" \
@@ -69,6 +69,6 @@ PLIST_SUB+= WITH_ZAPTEL=""
.endif
post-install:
- @${INSTALL_SCRIPT} ${FILESDIR}/asterisk.sh ${PREFIX}/etc/rc.d
+ @${INSTALL_SCRIPT} ${WRKDIR}/asterisk.sh ${PREFIX}/etc/rc.d
.include <bsd.port.post.mk>
diff --git a/net/asterisk10/files/asterisk.sh b/net/asterisk10/files/asterisk.sh.in
index deee10c0cbe4..10f0c4275c84 100644
--- a/net/asterisk10/files/asterisk.sh
+++ b/net/asterisk10/files/asterisk.sh.in
@@ -11,12 +11,12 @@
# asterisk_enable="YES"
#
-. /etc/rc.subr
+. %%RC_SUBR%%
name=asterisk
rcvar=`set_rcvar`
-command=/usr/local/sbin/asterisk
+command=%%PREFIX%%/sbin/asterisk
pidfile=/var/run/asterisk.pid
asterisk_enable=${asterisk_enable:-"NO"}