+$(IPKG_ASTERISK_MINI):
+ install -d -m0755 $(IDIR_ASTERISK_MINI)/etc/asterisk
+ for f in asterisk enum extconfig extensions features iax iaxprov logger manager modules musiconhold rtp sip; do \
+ $(CP) $(PKG_INSTALL_DIR)/etc/asterisk/$$f.conf $(IDIR_ASTERISK_MINI)/etc/asterisk/ ; \
+ done
+ install -m0644 ./files/modules.conf $(IDIR_ASTERISK)/etc/asterisk/
+ $(SED) 's|/var/lib/asterisk|/usr/lib/asterisk|g' $(PKG_INSTALL_DIR)/etc/asterisk/musiconhold.conf
+ install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/firmware $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/
+ install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/keys
+ install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/modules
+ for f in chan_iax2 chan_local chan_sip codec_gsm codec_ulaw format_gsm format_pcm format_wav \
+ format_wav_gsm pbx_config res_features res_musiconhold; do \
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/$$f.so $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/modules/ ; \
+ done
+ install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/mohmp3
+ install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/lib/asterisk/sounds
+ install -d -m0755 $(IDIR_ASTERISK_MINI)/usr/sbin
+ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/asterisk $(IDIR_ASTERISK_MINI)/usr/sbin/
+ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/safe_asterisk $(IDIR_ASTERISK_MINI)/usr/sbin/
+ install -d -m0755 $(IDIR_ASTERISK_MINI)/etc/default
+ install -m0644 ./files/asterisk.default $(IDIR_ASTERISK_MINI)/etc/default/asterisk
+ install -d -m0755 $(IDIR_ASTERISK_MINI)/etc/init.d
+ install -m0755 ./files/asterisk.init $(IDIR_ASTERISK_MINI)/etc/init.d/asterisk
+ ln -sf asterisk $(IDIR_ASTERISK_MINI)/etc/init.d/S60asterisk
+ $(RSTRIP) $(IDIR_ASTERISK_MINI)
+ $(IPKG_BUILD) $(IDIR_ASTERISK_MINI) $(PACKAGE_DIR)
+