summaryrefslogtreecommitdiff
path: root/misc/dahdi-kmod/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/dahdi-kmod/files')
-rw-r--r--misc/dahdi-kmod/files/dahdi.in60
-rw-r--r--misc/dahdi-kmod/files/patch-tools-Makefile24
2 files changed, 0 insertions, 84 deletions
diff --git a/misc/dahdi-kmod/files/dahdi.in b/misc/dahdi-kmod/files/dahdi.in
deleted file mode 100644
index ba9f2720c685..000000000000
--- a/misc/dahdi-kmod/files/dahdi.in
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: dahdi
-# REQUIRE: NETWORKING
-# KEYWORD: shutdown
-# BEFORE: asterisk
-#
-# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
-# to enable this service:
-#
-# dahdi_enable (bool): YES/NO (default: NO)
-# dahdi_modules (list of strings): dahdi modules to load at boot (default: dahdi)
-# Valid modules are: dahdi, wct4xxp, wcb4xxp
-#
-# Example:
-#
-# dahdi_enable="YES"
-# dahdi_modules="wct4xxp"
-#
-
-. /etc/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
-# reverse list
-dahdi_modules_unload=""
-for m in ${dahdi_modules}; do
- dahdi_modules_unload="$m ${dahdi_modules_unload}"
-done
-
-dahdi_start()
-{
- echo -n " ${name}"
-
- kldconfig -mf ${kmod_dir}
- for m in ${dahdi_modules}; do
- kldload $m || exit 1
- done
- %%PREFIX%%/sbin/dahdi_cfg
-}
-
-dahdi_stop()
-{
- echo -n " ${name}"
- for m in ${dahdi_modules_unload}; do
- kldunload $m
- done
-}
-
-run_rc_command "$1"
diff --git a/misc/dahdi-kmod/files/patch-tools-Makefile b/misc/dahdi-kmod/files/patch-tools-Makefile
deleted file mode 100644
index 48028dd64066..000000000000
--- a/misc/dahdi-kmod/files/patch-tools-Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
---- tools/Makefile.orig 2010-04-01 22:45:47.000000000 +0700
-+++ tools/Makefile 2010-06-01 17:18:37.000000000 +0700
-@@ -27,7 +27,7 @@
- endif
-
- SUBDIRS_UTILS_ALL:= ppp
--SUBDIRS_UTILS := xpp
-+#SUBDIRS_UTILS := xpp
-
- OPTFLAGS=-O2
- CFLAGS+=-I. $(OPTFLAGS) -g -fPIC -Wall -DBUILDING_TONEZONE #-DTONEZONE_DRIVER
-@@ -229,10 +229,8 @@
- install -d $(DESTDIR)$(MAN_DIR)
- install -m 644 $(MAN_PAGES) $(DESTDIR)$(MAN_DIR)/
- endif
--ifeq (,$(wildcard $(DESTDIR)$(CONFIG_FILE)))
-- $(INSTALL) -d $(DESTDIR)$(CONFIG_DIR)
-- $(INSTALL) -m 644 system.conf.sample $(DESTDIR)$(CONFIG_FILE)
--endif
-+ $(INSTALL) -d -m 755 $(DESTDIR)$(CONFIG_DIR)
-+ $(INSTALL) -m 644 system.conf.sample $(DESTDIR)$(CONFIG_FILE).sample
-
- install-libs: libs
- $(INSTALL) -d -m 755 $(DESTDIR)/$(LIB_DIR)