aboutsummaryrefslogtreecommitdiff
path: root/misc/dahdi
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2010-03-18 13:57:26 +0000
committerMax Khon <fjoe@FreeBSD.org>2010-03-18 13:57:26 +0000
commitc21b25560323213bdf2d449235c321b56d70945e (patch)
tree9dc7687515d781aed5ac46242698068cea261b4c /misc/dahdi
parent11c7c9cfc07b467569d2198dfcf9980d7a3be6a1 (diff)
downloadports-c21b25560323213bdf2d449235c321b56d70945e.tar.gz
ports-c21b25560323213bdf2d449235c321b56d70945e.zip
Fix getting dahdi_enable value in rc.d script.
Notes
Notes: svn path=/head/; revision=251207
Diffstat (limited to 'misc/dahdi')
-rw-r--r--misc/dahdi/Makefile2
-rw-r--r--misc/dahdi/files/dahdi.in5
2 files changed, 5 insertions, 2 deletions
diff --git a/misc/dahdi/Makefile b/misc/dahdi/Makefile
index b5b221246ebf..71ce4c4caa9a 100644
--- a/misc/dahdi/Makefile
+++ b/misc/dahdi/Makefile
@@ -7,7 +7,7 @@
PORTNAME= dahdi
PORTVERSION= ${DAHDI_VERSION:S/-//g}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= misc kld
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= fjoe
diff --git a/misc/dahdi/files/dahdi.in b/misc/dahdi/files/dahdi.in
index 7bbcece0f891..ad50745924f2 100644
--- a/misc/dahdi/files/dahdi.in
+++ b/misc/dahdi/files/dahdi.in
@@ -23,12 +23,15 @@
. %%RC_SUBR%%
name="dahdi"
+rcvar=`set_rcvar`
+
start_cmd="dahdi_start"
stop_cmd="dahdi_stop"
load_rc_config $name
+: ${dahdi_enable="NO"}
+: ${dahdi_modules="dahdi"}
kmod_dir=%%PREFIX%%/lib/dahdi
-dahdi_modules=${dahdi_modules:-dahdi}
# reverse list
dahdi_modules_unload=""
for m in ${dahdi_modules}; do