[svn-commits] tzafrir: branch 1.4 r2772 - /branches/1.4/Makefile

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Jul 22 12:46:41 CDT 2007


Author: tzafrir
Date: Sun Jul 22 12:46:40 2007
New Revision: 2772

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2772
Log:
Revert initd config file installation to the greeddy one of before
zaptel 1.2.19/1.4.4 - install on both /etc/default/zaptel and
/etc/sysconfig/zaptel .

Closes 0010257 .
(From branches/1.2 r2771)

Modified:
    branches/1.4/Makefile

Modified: branches/1.4/Makefile
URL: http://svn.digium.com/view/zaptel/branches/1.4/Makefile?view=diff&rev=2772&r1=2771&r2=2772
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Sun Jul 22 12:46:40 2007
@@ -204,15 +204,6 @@
 ifneq (,$(NET_SCR_DIR))
   NETSCR_TARGET	:= $(DESTDIR)$(NETSCR_DIR)/ifup-hdlc
   COPY_NETSCR	:= install -D ifup-hdlc $(NETSCR_TARGET)
-endif
-
-RCCONF_DIR	:= $(firstword $(wildcard /etc/default /etc/sysconfig))
-ifneq (,$(RCCONF_DIR))
-  RCCONF_TARGET	:= $(DESTDIR)$(RCCONF_DIR)/zaptel
-  # Let's not step over an existing config file:
-  ifeq (,$(wildcard $(RCCONF_TARGET)))
-    COPY_RCCONF	:= install -D -m 644 zaptel.sysconfig $(RCCONF_TARGET)
-  endif
 endif
 
 ifneq ($(wildcard .version),)
@@ -540,8 +531,15 @@
 ifneq (,$(COPY_INITD))
 	$(COPY_INITD)
 endif
-ifneq (,$(COPY_RCCONF))
-	$(COPY_RCCONF)
+ifneq (,$(wildcard /etc/default))
+  ifeq (,$(wildcard $(DESTDIR)/etc/default/zaptel))
+	install -D -m 644 zaptel.sysconfig $(DESTDIR)/etc/default/zaptel
+  endif
+endif
+ifneq (,$(wildcard /etc/sysconfig))
+  ifeq (,$(wildcard $(DESTDIR)/etc/sysconfig/zaptel))
+	install -D -m 644 zaptel.sysconfig $(DESTDIR)/etc/sysconfig/zaptel
+  endif
 endif
 ifneq (,$(COPY_NETSCR))
 	$(COPY_NETSCR)
@@ -551,12 +549,10 @@
 endif
 	@echo "Zaptel has been configured."
 	@echo ""
-ifneq (,$(COPY_RCCONF))
 	@echo "If you have any zaptel hardware it is now recommended to "
-	@echo "edit $(RCCONF_TARGET) and set there an optimal value for "
-	@echo "the variable MODULES ."
+	@echo "edit /etc/default/zaptel or /etc/sysconfig/zaptel and set there an "
+	@echo "optimal value for the variable MODULES ."
 	@echo ""
-endif
 	@echo "I think that the zaptel hardware you have on your system is:"
 	@xpp/utils/zaptel_hardware || true
 




More information about the svn-commits mailing list