summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-07-01 18:45:17 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-07-01 18:45:17 +0000
commit34b190435f9a168494c38f500d97794e610438ed (patch)
tree1601384ce8cbec634d7b9905c82532e9aeb9be89 /Makefile
parent50340e3c5e0208527a78e5b53b9d6d6f0aea3585 (diff)
Add the remaining files and changes needed to get 'make config' to be functional.
(closes issue #12968) Reported by: dimas git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4497 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 62df857..3cc1e99 100644
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,6 @@ ifdef INITRD_DIR
INIT_TARGET := $(DESTDIR)$(INITRD_DIR)/dahdi
COPY_INITD := install -D dahdi.init $(INIT_TARGET)
endif
-RCCONF_DIR := $(firstword $(wildcard /etc/sysconfig /etc/default))
NETSCR_DIR := $(firstword $(wildcard /etc/sysconfig/network-scripts ))
ifdef NETSCR_DIR
@@ -199,25 +198,23 @@ install-modules: modules
[ `id -u` = 0 ] && /sbin/depmod -a $(KVERS) || :
config:
+ install -d $(DESTDIR)/etc/dahdi
+ install -D -m 644 system.conf.sample $(DESTDIR)/etc/dahdi/system.conf
ifdef COPY_INITD
$(COPY_INITD)
+ install -D -m 644 init.conf.sample $(DESTDIR)/etc/dahdi/init.conf
+ifdef ADD_INITD
+ $(ADD_INITD)
endif
-ifdef RCCONF_DIR
- ifeq (,$(wildcard $(DESTDIR)$(RCCONF_DIR)/dahdi))
- install -D -m 644 dahdi.sysconfig $(DESTDIR)$(RCCONF_DIR)/dahdi
- endif
endif
ifdef COPY_NETSCR
$(COPY_NETSCR)
endif
-ifdef ADD_INITD
- $(ADD_INITD)
-endif
@echo "DAHDI has been configured."
@echo ""
@echo "If you have any DAHDI hardware it is now recommended to "
- @echo "edit /etc/default/dahdi or /etc/sysconfig/dahdi and set there an "
- @echo "optimal value for the variable MODULES."
+ @echo "edit /etc/dahdi/init.conf and set an optimal value for"
+ @echo " the variable MODULES."
@echo ""
@echo "I think that the DAHDI hardware you have on your system is:"
@kernel/xpp/utils/dahdi_hardware || true