- -$(STRIP) $(PKG_APP_DIR)/usr/sbin/asterisk
- -$(STRIP) $(PKG_APP_DIR)/usr/lib/asterisk/modules/*
- cp -a ./files/* $(PKG_APP_DIR)/
- find $(PKG_APP_DIR) -name CVS | xargs rm -rf
- chmod +x $(PKG_APP_DIR)/etc/init.d/*
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(PKG_APP_DIR) $(PACKAGE_DIR)
-
-$(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_APP)
- $(IPKG) install $(PKG_APP)
-
-$(PKG_MYSQL): asterisk-compile
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_MYSQL_DIR) control/$(PKG_NAME)-mysql.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(PKG_MYSQL_DIR)/usr/lib/asterisk/modules
- mkdir -p $(PKG_MYSQL_DIR)/etc/asterisk
- cp $(PKG_BUILD_DIR)/apps/app_sql_mysql.so $(PKG_MYSQL_DIR)/usr/lib/asterisk/modules/
- cp $(PKG_BUILD_DIR)/cdr/cdr_mysql.so $(PKG_MYSQL_DIR)/usr/lib/asterisk/modules/
- $(STRIP) $(PKG_MYSQL_DIR)/usr/lib/asterisk/modules/*
- echo /etc/asterisk/cdr_mysql.conf > $(PKG_MYSQL_DIR)/CONTROL/conffiles
- cp $(PKG_BUILD_DIR)/configs/cdr_mysql.conf.sample $(PKG_MYSQL_DIR)/etc/asterisk/cdr_mysql.conf
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(PKG_MYSQL_DIR) $(PACKAGE_DIR)
-
-$(IPKG_STATE_DIR)/info/$(PKG_NAME)-mysql.list: $(PKG_MYSQL)
- $(IPKG) install $(PKG_MYSQL)
-
-$(PKG_PGSQL): asterisk-compile
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_PGSQL_DIR) control/$(PKG_NAME)-pgsql.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(PKG_PGSQL_DIR)/usr/lib/asterisk/modules
- mkdir -p $(PKG_PGSQL_DIR)/etc/asterisk
- cp $(PKG_BUILD_DIR)/apps/app_sql_postgres.so $(PKG_PGSQL_DIR)/usr/lib/asterisk/modules/
- cp $(PKG_BUILD_DIR)/cdr/cdr_pgsql.so $(PKG_PGSQL_DIR)/usr/lib/asterisk/modules/
- $(STRIP) $(PKG_PGSQL_DIR)/usr/lib/asterisk/modules/*
- echo /etc/asterisk/cdr_pgsql.conf > $(PKG_PGSQL_DIR)/CONTROL/conffiles
- cp $(PKG_BUILD_DIR)/configs/cdr_pgsql.conf.sample $(PKG_PGSQL_DIR)/etc/asterisk/cdr_pgsql.conf
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(PKG_PGSQL_DIR) $(PACKAGE_DIR)
-
-$(IPKG_STATE_DIR)/info/$(PKG_NAME)-pgsql.list: $(PKG_PGSQL)
- $(IPKG) install $(PKG_PGSQL)
-
-$(PKG_SOUNDS): asterisk-compile
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_SOUNDS_DIR) control/$(PKG_NAME)-sounds.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(PKG_SOUNDS_DIR)/usr/lib/asterisk/sounds
- cp -a $(PKG_BUILD_DIR)/sounds/* $(PKG_SOUNDS_DIR)/usr/lib/asterisk/sounds/
- rm -f $(PKG_SOUNDS_DIR)/usr/lib/asterisk/sounds/*.mp3
- rm -f $(PKG_SOUNDS_DIR)/usr/lib/asterisk/sounds/vm-*
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(PKG_SOUNDS_DIR) $(PACKAGE_DIR)
-
-$(IPKG_STATE_DIR)/info/$(PKG_NAME)-sounds.list: $(PKG_SOUNDS)
- $(IPKG) install $(PKG_SOUNDS)
-
-$(PKG_SPEEX): asterisk-compile
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_SPEEX_DIR) control/$(PKG_NAME)-codec-speex.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(PKG_SPEEX_DIR)/usr/lib/asterisk/modules
- cp $(PKG_BUILD_DIR)/codecs/*speex.so $(PKG_SPEEX_DIR)/usr/lib/asterisk/modules
- $(STRIP) $(PKG_SPEEX_DIR)/usr/lib/asterisk/modules/*
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(PKG_SPEEX_DIR) $(PACKAGE_DIR)
-
-$(IPKG_STATE_DIR)/info/$(PKG_NAME)-speex.list: $(PKG_SPEEX)
- $(IPKG) install $(PKG_SPEEX)
-
-$(PKG_VOICEMAIL): asterisk-compile
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_VOICEMAIL_DIR) control/$(PKG_NAME)-voicemail.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- echo /etc/asterisk/voicemail.conf > $(PKG_VOICEMAIL_DIR)/CONTROL/conffiles
- mkdir -p $(PKG_VOICEMAIL_DIR)/etc/asterisk
- cp $(PKG_BUILD_DIR)/configs/voicemail.conf.sample $(PKG_VOICEMAIL_DIR)/etc/asterisk/voicemail.conf
- mkdir -p $(PKG_VOICEMAIL_DIR)/usr/lib/asterisk/modules
- cp $(PKG_BUILD_DIR)/apps/*voicemail.so $(PKG_VOICEMAIL_DIR)/usr/lib/asterisk/modules
- $(STRIP) $(PKG_VOICEMAIL_DIR)/usr/lib/asterisk/modules/*
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(PKG_VOICEMAIL_DIR) $(PACKAGE_DIR)
-
-$(IPKG_STATE_DIR)/info/$(PKG_NAME)-voicemail.list: $(PKG_VOICEMAIL)
- $(IPKG) install $(PKG_VOICEMAIL)
-
-source: $(DL_DIR)/$(PKG_SOURCE)
-prepare: $(PKG_BUILD_DIR)/.patched
-compile: $(COMPILE_TARGETS)
-install: $(INSTALL_TARGETS)
-
-clean:
- rm -rf $(PKG_BUILD_DIR)
- rm -f $(PKG_APP)
+ -$(STRIP) $(IDIR_ASTERISK)/usr/sbin/asterisk
+ -$(STRIP) $(IDIR_ASTERISK)/usr/lib/asterisk/modules/*
+ cp -a ./files/* $(IDIR_ASTERISK)/
+ find $(IDIR_ASTERISK) -name CVS | xargs rm -rf
+ chmod +x $(IDIR_ASTERISK)/etc/init.d/*
+ $(IPKG_BUILD) $(IDIR_ASTERISK) $(PACKAGE_DIR)
+
+$(IPKG_ASTERISK_MYSQL): asterisk-compile
+ mkdir -p $(IDIR_ASTERISK_MYSQL)/usr/lib/asterisk/modules
+ mkdir -p $(IDIR_ASTERISK_MYSQL)/etc/asterisk
+ cp $(PKG_BUILD_DIR)/apps/app_sql_mysql.so $(IDIR_ASTERISK_MYSQL)/usr/lib/asterisk/modules/
+ cp $(PKG_BUILD_DIR)/cdr/cdr_mysql.so $(IDIR_ASTERISK_MYSQL)/usr/lib/asterisk/modules/
+ $(STRIP) $(IDIR_ASTERISK_MYSQL)/usr/lib/asterisk/modules/*
+ cp $(PKG_BUILD_DIR)/configs/cdr_mysql.conf.sample $(IDIR_ASTERISK_MYSQL)/etc/asterisk/cdr_mysql.conf
+ $(IPKG_BUILD) $(IDIR_ASTERISK_MYSQL) $(PACKAGE_DIR)
+
+$(IPKG_ASTERISK_PGSQL): asterisk-compile
+ mkdir -p $(IDIR_ASTERISK_PGSQL)/usr/lib/asterisk/modules
+ mkdir -p $(IDIR_ASTERISK_PGSQL)/etc/asterisk
+ cp $(PKG_BUILD_DIR)/apps/app_sql_postgres.so $(IDIR_ASTERISK_PGSQL)/usr/lib/asterisk/modules/
+ cp $(PKG_BUILD_DIR)/cdr/cdr_pgsql.so $(IDIR_ASTERISK_PGSQL)/usr/lib/asterisk/modules/
+ $(STRIP) $(IDIR_ASTERISK_PGSQL)/usr/lib/asterisk/modules/*
+ cp $(PKG_BUILD_DIR)/configs/cdr_pgsql.conf.sample $(IDIR_ASTERISK_PGSQL)/etc/asterisk/cdr_pgsql.conf
+ $(IPKG_BUILD) $(IDIR_ASTERISK_PGSQL) $(PACKAGE_DIR)
+
+$(IPKG_ASTERISK_SOUNDS): asterisk-compile
+ mkdir -p $(IDIR_ASTERISK_SOUNDS)/usr/lib/asterisk/sounds
+ cp -a $(PKG_BUILD_DIR)/sounds/* $(IDIR_ASTERISK_SOUNDS)/usr/lib/asterisk/sounds/
+ rm -f $(IDIR_ASTERISK_SOUNDS)/usr/lib/asterisk/sounds/*.mp3
+ rm -f $(IDIR_ASTERISK_SOUNDS)/usr/lib/asterisk/sounds/vm-*
+ $(IPKG_BUILD) $(IDIR_ASTERISK_SOUNDS) $(PACKAGE_DIR)
+
+$(IPKG_ASTERISK_SPEEX): asterisk-compile
+ mkdir -p $(IDIR_ASTERISK_SPEEX)/usr/lib/asterisk/modules
+ cp $(PKG_BUILD_DIR)/codecs/*speex.so $(IDIR_ASTERISK_SPEEX)/usr/lib/asterisk/modules
+ $(STRIP) $(IDIR_ASTERISK_SPEEX)/usr/lib/asterisk/modules/*
+ $(IPKG_BUILD) $(IDIR_ASTERISK_SPEEX) $(PACKAGE_DIR)
+
+$(IPKG_ASTERISK_VOICEMAIL): asterisk-compile
+ mkdir -p $(IDIR_ASTERISK_VOICEMAIL)/etc/asterisk
+ cp $(PKG_BUILD_DIR)/configs/voicemail.conf.sample $(IDIR_ASTERISK_VOICEMAIL)/etc/asterisk/voicemail.conf
+ mkdir -p $(IDIR_ASTERISK_VOICEMAIL)/usr/lib/asterisk/modules
+ cp $(PKG_BUILD_DIR)/apps/*voicemail.so $(IDIR_ASTERISK_VOICEMAIL)/usr/lib/asterisk/modules
+ $(STRIP) $(IDIR_ASTERISK_VOICEMAIL)/usr/lib/asterisk/modules/*
+ $(IPKG_BUILD) $(IDIR_ASTERISK_VOICEMAIL) $(PACKAGE_DIR)