[asterisk-commits] trunk r9052 - in /trunk: ./ agi/ apps/ cdr/
channels/ codecs/ formats/ funcs/...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Feb 1 11:39:43 MST 2006
Author: mogorman
Date: Wed Feb 1 12:39:41 2006
New Revision: 9052
URL: http://svn.digium.com/view/asterisk?rev=9052&view=rev
Log:
Allows for user to uninstall asterisk binaries
bug 6177
Modified:
trunk/Makefile
trunk/agi/Makefile
trunk/apps/Makefile
trunk/cdr/Makefile
trunk/channels/Makefile
trunk/codecs/Makefile
trunk/formats/Makefile
trunk/funcs/Makefile
trunk/pbx/Makefile
trunk/res/Makefile
trunk/stdtime/Makefile
trunk/utils/Makefile
Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Wed Feb 1 12:39:41 2006
@@ -912,3 +912,37 @@
if cmp -s .cleancount .lastclean ; then echo ; else \
$(MAKE) clean; cp -f .cleancount .lastclean;\
fi
+
+_uninstall:
+ rm -f $(DESTDIR)$(MODULES_DIR)/*
+ rm -f $(DESTDIR)$(ASTSBINDIR)/*asterisk*
+ rm -f $(DESTDIR)$(ASTSBINDIR)/astgenkey
+ rm -f $(DESTDIR)$(ASTSBINDIR)/autosupport
+ rm -rf $(DESTDIR)$(ASTHEADERDIR)
+ rm -rf $(DESTDIR)$(ASTVARLIBDIR)/sounds
+ rm -rf $(DESTDIR)$(ASTVARLIBDIR)/firmware
+ rm -rf $(DESTDIR)$(ASTMANDIR)/man8
+ for x in $(SUBDIRS); do $(MAKE) -C $$x uninstall || exit 1 ; done
+
+uninstall: _uninstall
+ @echo " +--------- Asterisk Uninstall Complete -----+"
+ @echo " + Asterisk binaries, sounds, man pages, +"
+ @echo " + headers, modules, and firmware builds, +"
+ @echo " + have all been uninstalled. +"
+ @echo " + +"
+ @echo " + To remove ALL traces of Asterisk, +"
+ @echo " + including configuration, spool +"
+ @echo " + directories, and logs, run the following +"
+ @echo " + command: +"
+ @echo " + +"
+ @echo " + $(MAKE) uninstall-all +"
+ @echo " +-------------------------------------------+"
+
+
+uninstall-all: _uninstall
+ rm -rf $(DESTDIR)$(ASTLIBDIR)
+ rm -rf $(DESTDIR)$(ASTVARLIBDIR)
+ rm -rf $(DESTDIR)$(ASTSPOOLDIR)
+ rm -rf $(DESTDIR)$(ASTETCDIR)
+ rm -rf $(DESTDIR)$(ASTLOGDIR)
+
Modified: trunk/agi/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/agi/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/agi/Makefile (original)
+++ trunk/agi/Makefile Wed Feb 1 12:39:41 2006
@@ -30,6 +30,9 @@
mkdir -p $(DESTDIR)$(AGI_DIR)
for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done
+uninstall:
+ for x in $(AGIS); do rm -f $(DESTDIR)$(AGI_DIR)/$$x ; done
+
eagi-test: eagi-test.o
$(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS)
Modified: trunk/apps/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/apps/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/apps/Makefile (original)
+++ trunk/apps/Makefile Wed Feb 1 12:39:41 2006
@@ -92,6 +92,8 @@
rm -f $(DESTDIR)$(MODULES_DIR)/app_datetime.so
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so
+uninstall:
+
app_curl.so: app_curl.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)
Modified: trunk/cdr/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/cdr/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/cdr/Makefile (original)
+++ trunk/cdr/Makefile Wed Feb 1 12:39:41 2006
@@ -112,6 +112,8 @@
install: all
for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+uninstall:
+
clean:
rm -f *.so *.o .depend
Modified: trunk/channels/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/channels/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/channels/Makefile (original)
+++ trunk/channels/Makefile Wed Feb 1 12:39:41 2006
@@ -234,6 +234,8 @@
for x in $(CHANNEL_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
if ! [ -f chan_iax.so ]; then rm -f $(DESTDIR)$(MODULES_DIR)/chan_iax.so ; fi
+uninstall:
+
depend: .depend
.depend:
@@ -241,4 +243,3 @@
env:
env
-
Modified: trunk/codecs/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/codecs/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/codecs/Makefile (original)
+++ trunk/codecs/Makefile Wed Feb 1 12:39:41 2006
@@ -134,6 +134,8 @@
install: all
for x in $(CODECS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+uninstall:
+
depend: .depend
.depend:
Modified: trunk/formats/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/formats/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/formats/Makefile (original)
+++ trunk/formats/Makefile Wed Feb 1 12:39:41 2006
@@ -58,6 +58,8 @@
install: all
for x in $(FORMAT_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+uninstall:
+
depend: .depend
.depend:
Modified: trunk/funcs/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/funcs/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/funcs/Makefile (original)
+++ trunk/funcs/Makefile Wed Feb 1 12:39:41 2006
@@ -75,6 +75,8 @@
install: all
for x in $(FUNCS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+uninstall:
+
ifneq ($(wildcard .depend),)
include .depend
endif
Modified: trunk/pbx/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/pbx/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/pbx/Makefile (original)
+++ trunk/pbx/Makefile Wed Feb 1 12:39:41 2006
@@ -70,6 +70,8 @@
install: all
for x in $(PBX_LIBS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+uninstall:
+
depend: .depend
.depend:
Modified: trunk/res/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/res/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/res/Makefile (original)
+++ trunk/res/Makefile Wed Feb 1 12:39:41 2006
@@ -83,6 +83,8 @@
echo "*** it if you want to use MusicOnHold ***";\
fi
+uninstall:
+
res_crypto.so: res_crypto.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CRYPTO_LIBS)
Modified: trunk/stdtime/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/stdtime/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/stdtime/Makefile (original)
+++ trunk/stdtime/Makefile Wed Feb 1 12:39:41 2006
@@ -7,6 +7,8 @@
ranlib $@
install:
+
+uninstall:
clean:
rm -f libtime.a *.o test .depend
Modified: trunk/utils/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/utils/Makefile?rev=9052&r1=9051&r2=9052&view=diff
==============================================================================
--- trunk/utils/Makefile (original)
+++ trunk/utils/Makefile Wed Feb 1 12:39:41 2006
@@ -40,6 +40,9 @@
fi; \
done
+uninstall:
+ for x in $(TARGET); do rm -f $$x $(DESTDIR)$(ASTSBINDIR)/$$x; done
+
clean:
rm -f *.o astman smsq stereorize streamplayer check_expr .depend
rm -f ast_expr2.o ast_expr2f.o
More information about the asterisk-commits
mailing list