[Asterisk-Users] Small patch to zaptel Makefile

John Morris
Wed, 18 Aug 2004 14:35:41 -0000

Minor fix.  I'm using this in my RPM specfile.

     John


--- ./zaptel-1.0-RC1/Makefile.bigu  2004-07-16 17:09:07.000000000 -0500
+++ ./zaptel-1.0-RC1/Makefile   2004-08-18 16:28:45.000000000 -0500
@@@ -316,10 +318,10 @@
         elif [ -d $(INSTALL_PREFIX)/etc/init.d ]; then \
                 install -m 755 zaptel.init
$(INSTALL_PREFIX)/etc/init.d/zaptel;\
  \
         fi
-       if [ ! -f /etc/sysconfig/zaptel ]; then \
+       if [ ! -f $(INSTALL_PREFIX)/etc/sysconfig/zaptel ]; then \
                 install -m 644 zaptel.sysconfig
$(INSTALL_PREFIX)/etc/sysconfig\
/zaptel; \
         fi
-       if [ -d /etc/sysconfig/network-scripts ]; then \
+       if [ -d $(INSTALL_PREFIX)/etc/sysconfig/network-scripts ]; then \
                 install -m 755 ifup-hdlc
$(INSTALL_PREFIX)/etc/sysconfig/networ\
k-scripts/ifup-hdlc; \
         fi