+
+ # 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
+ @rm -rf $(DIR_APP) $(DIR_SRC)/asterisk-*
+
+ # remember backup-location
+ install -v -m 644 $(DIR_SRC)/config/backup/includes/asterisk /var/ipfire/backup/addons/includes/asterisk
+
+ # generate softlink (or asterisk will not work properly)
+ ln -sf /var/ipfire/asterisk /etc/asterisk
+
+ # make asterisk start with reboot
+ ln -sf /etc/rc.d/init.d/asterisk /etc/rc.d/rc0.d/K30asterisk
+ ln -sf /etc/rc.d/init.d/asterisk /etc/rc.d/rc6.d/K30asterisk
+ ln -sf /etc/rc.d/init.d/asterisk /etc/rc.d/rc3.d/S30asterisk
+
+ # all done