+
+ # remove build directories
+ @rm -rf $(DIR_APP) $(DIR_SRC)/asterisk-*
+
+ # copy additional ipfire scripts for asterisk
+ -mkdir -p /var/ipfire/asterisk
+ cp -vrf $(DIR_SRC)/config/asterisk/* /var/ipfire/asterisk/
+ chmod o+w /var/ipfire/asterisk
+ chown nobody:nobody -R /var/ipfire/asterisk
+ ln -f -s /var/ipfire/asterisk/wakeup/wakeup.sh /etc/fcron.minutely/wakeup.sh
+
+ # build and install chan capi (needed for isdn)
+ cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(CHAN_CAPI).tgz
+ cd $(DIR_SRC)/chan-capi-HEAD && sed -i -e 's/^CFLAGS+=-Wno-unused-but-set-variable$$//' Makefile
+ cd $(DIR_SRC)/chan-capi-HEAD && make $(MAKETUNING)
+ cd $(DIR_SRC)/chan-capi-HEAD && make install
+ @rm -rf $(DIR_SRC)/chan-capi-HEAD
+
+ # be sure all source is removed