aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk16
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-04-14 21:23:49 +0800
committervs <vs@FreeBSD.org>2005-04-14 21:23:49 +0800
commit3e6000f57879f3baa7770b5b5f05a61d5df7ab30 (patch)
tree332dc6fed9f3580a03636b60978f98987b661ee7 /net/asterisk16
parentcfbe8b3e75a0c0c0b7255af42d870e0c3df8fd1b (diff)
downloadfreebsd-ports-gnome-3e6000f57879f3baa7770b5b5f05a61d5df7ab30.tar.gz
freebsd-ports-gnome-3e6000f57879f3baa7770b5b5f05a61d5df7ab30.tar.zst
freebsd-ports-gnome-3e6000f57879f3baa7770b5b5f05a61d5df7ab30.zip
Handle rc.subr correctly
Based on PR: ports/79246 Submitted by: Ari Maniatis Approved by: maintainer
Diffstat (limited to 'net/asterisk16')
-rw-r--r--net/asterisk16/Makefile4
-rw-r--r--net/asterisk16/files/asterisk.sh.in (renamed from net/asterisk16/files/asterisk.sh)4
2 files changed, 4 insertions, 4 deletions
diff --git a/net/asterisk16/Makefile b/net/asterisk16/Makefile
index ce7f82474c8f..5802757f3e20 100644
--- a/net/asterisk16/Makefile
+++ b/net/asterisk16/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/asterisk16/files/asterisk.sh b/net/asterisk16/files/asterisk.sh.in
index deee10c0cbe4..10f0c4275c84 100644
--- a/net/asterisk16/files/asterisk.sh
+++ b/net/asterisk16/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"}