+
+ # 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).tar.gz
+ cd $(DIR_SRC)/$(CHAN_CAPI) && make $(MAKETUNING)
+ cd $(DIR_SRC)/$(CHAN_CAPI) && make install
+ @rm -rf $(DIR_SRC)/$(CHAN_CAPI)
+
+ # build FAX stuff (TODO: get newer version... where to download source?)
+ cd $(DIR_SRC) && tar zxf $(DIR_DL)/agx-ast-addons-svn65.tgz
+ # bugfix: disable app_confcall (not supported with dahdi, but we can take meetme)
+ cd $(DIR_SRC)/agx-ast-addons && echo "project (agx-ast-addons-zaptel)" > ./app-dahdi/CMakeLists.txt
+ cd $(DIR_SRC)/agx-ast-addons && echo >> ./app-dahdi/CMakeLists.txt
+ # end bugfix
+ cd $(DIR_SRC)/agx-ast-addons && ./configure.sh
+ cd $(DIR_SRC)/agx-ast-addons && ./build.sh
+ @rm -rf $(DIR_SRC)/agx-ast-addons
+
+ # be sure all source is removed