summaryrefslogtreecommitdiffstats
path: root/net/asterisk14
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-04-14 13:23:49 +0000
committervs <vs@FreeBSD.org>2005-04-14 13:23:49 +0000
commit3e6000f57879f3baa7770b5b5f05a61d5df7ab30 (patch)
tree332dc6fed9f3580a03636b60978f98987b661ee7 /net/asterisk14
parentcfbe8b3e75a0c0c0b7255af42d870e0c3df8fd1b (diff)
downloadFreeBSD-ports-3e6000f57879f3baa7770b5b5f05a61d5df7ab30.zip
FreeBSD-ports-3e6000f57879f3baa7770b5b5f05a61d5df7ab30.tar.gz
Handle rc.subr correctly
Based on PR: ports/79246 Submitted by: Ari Maniatis Approved by: maintainer
Diffstat (limited to 'net/asterisk14')
-rw-r--r--net/asterisk14/Makefile4
-rw-r--r--net/asterisk14/files/asterisk.sh.in (renamed from net/asterisk14/files/asterisk.sh)4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/asterisk14/Makefile b/net/asterisk14/Makefile
index ce7f824..5802757 100644
--- a/net/asterisk14/Makefile
+++ b/net/asterisk14/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/asterisk14/files/asterisk.sh b/net/asterisk14/files/asterisk.sh.in
index deee10c..10f0c42 100644
--- a/net/asterisk14/files/asterisk.sh
+++ b/net/asterisk14/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"}
OpenPOWER on IntegriCloud