$(call PKG_INIT_BIN, 2.1.0-rc1) $(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.gz $(PKG)_HASH:=aaabcb7d6e71c60e1c960ebb7f9499b2a55a2960ab65cfe2cbce5db57c1dec10 $(PKG)_SITE:=http://downloads.asterisk.org/pub/telephony/asterisk-gui $(PKG)_BUILD_PREREQ += uudecode $(PKG)_TARGET:=$($(PKG)_DEST_DIR)/usr/share/asterisk/static-http/index.html $(PKG)_CONFIGURE_PRE_CMDS += (cd debian/images; for f in *.uu; do uudecode -o ../../config/images/$$$${f/%.uu/} $$$$f; done); $(PKG_SOURCE_DOWNLOAD) $(PKG_UNPACKED) $(PKG_CONFIGURED_CONFIGURE) $($(PKG)_DIR)/.compiled: $($(PKG)_DIR)/.configured $(SUBMAKE) -C $(ASTERISK_GUI_DIR) @touch $@ $($(PKG)_TARGET): $($(PKG)_DIR)/.configured $(SUBMAKE) -C $(ASTERISK_GUI_DIR) \ DESTDIR="$(abspath $(ASTERISK_GUI_DEST_DIR))" \ ASTVARLIBDIR="$(abspath $(ASTERISK_GUI_DEST_DIR))/usr/share/asterisk" \ install (cd $(ASTERISK_GUI_DEST_DIR); $(RM) -r etc usr/share/asterisk/gui_backups usr/share/asterisk/static-http/config/private) @touch $@ $(pkg): $(pkg)-precompiled: $($(PKG)_TARGET) $(pkg)-clean: -$(SUBMAKE) -C $(ASTERISK_GUI_DIR) clean $(pkg)-uninstall: $(RM) -r $(ASTERISK_GUI_DEST_DIR)/usr/share/asterisk $(PKG_FINISH)