Given that 1.6 was an interim release, and it's highly compatible with 1.8.... 
why not just kill off 1.6.x support?


On 2/16/11 9:29 AM, [email protected] wrote:
Author: zandbelt
Date: 2011-02-16 18:29:50 +0100 (Wed, 16 Feb 2011)
New Revision: 25557

Added:
    packages/net/asterisk-addons-1.4.x/patches/030-mysql_include.patch
Modified:
    packages/net/asterisk-1.4.x/Makefile
    packages/net/asterisk-1.6.x/Makefile
    packages/net/asterisk-1.8.x/Makefile
    packages/net/asterisk-addons-1.4.x/Makefile
Log:
[packages] asterisk-*: allow headers for multiple versions to co-exist in 
staging

Modified: packages/net/asterisk-1.4.x/Makefile
===================================================================
--- packages/net/asterisk-1.4.x/Makefile        2011-02-16 15:26:08 UTC (rev 
25556)
+++ packages/net/asterisk-1.4.x/Makefile        2011-02-16 17:29:50 UTC (rev 
25557)
@@ -7,14 +7,16 @@

  include $(TOPDIR)/rules.mk

-PKG_NAME:=asterisk
+PKG_NAME:=asterisk14
  PKG_VERSION:=1.4.25.1
  PKG_RELEASE:=3

-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
  PKG_SOURCE_URL:=http://downloads.digium.com/pub/asterisk/releases/
  PKG_MD5SUM:=ca17be11559eb939ea16b8de98ddeefb

+PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
+
  PKG_BUILD_DEPENDS:= libopenh323 pwlib

  include $(INCLUDE_DIR)/package.mk
@@ -484,9 +486,9 @@
  endef

  define Build/InstallDev
-       $(INSTALL_DIR) $(1)/usr/include/asterisk/
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h 
$(1)/usr/include/asterisk/
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/
+       $(INSTALL_DIR) $(1)/usr/include/asterisk-1.4/include/asterisk/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h 
$(1)/usr/include/asterisk-1.4/include/asterisk/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h 
$(1)/usr/include/asterisk-1.4/include/
  endef



Modified: packages/net/asterisk-1.6.x/Makefile
===================================================================
--- packages/net/asterisk-1.6.x/Makefile        2011-02-16 15:26:08 UTC (rev 
25556)
+++ packages/net/asterisk-1.6.x/Makefile        2011-02-16 17:29:50 UTC (rev 
25557)
@@ -7,14 +7,16 @@

  include $(TOPDIR)/rules.mk

-PKG_NAME:=asterisk
+PKG_NAME:=asterisk16
  PKG_VERSION:=1.6.2.14
  PKG_RELEASE:=1

-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
  PKG_SOURCE_URL:=http://downloads.digium.com/pub/asterisk/releases/
  PKG_MD5SUM:=4f0414c9b2d449222b2fc7096cbaffe7

+PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
+
  include $(INCLUDE_DIR)/package.mk

  define Package/asterisk16/Default

Modified: packages/net/asterisk-1.8.x/Makefile
===================================================================
--- packages/net/asterisk-1.8.x/Makefile        2011-02-16 15:26:08 UTC (rev 
25556)
+++ packages/net/asterisk-1.8.x/Makefile        2011-02-16 17:29:50 UTC (rev 
25557)
@@ -7,14 +7,16 @@

  include $(TOPDIR)/rules.mk

-PKG_NAME:=asterisk
+PKG_NAME:=asterisk18
  PKG_VERSION:=1.8.2.3
  PKG_RELEASE:=1

-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz
  PKG_SOURCE_URL:=http://downloads.digium.com/pub/asterisk/releases/
  PKG_MD5SUM:=e394b63dd71c07497620dc12883e0b80

+PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
+
  include $(INCLUDE_DIR)/package.mk

  define Package/asterisk18/Default
@@ -36,7 +38,7 @@
  define Package/asterisk18
  $(call Package/asterisk18/Default)
    TITLE:=Complete open source PBX
-  DEPENDS:= +libopenssl +libncurses +libpopt +libpthread +zlib @!TARGET_avr32 
@!PACKAGE_asterisk14
+  DEPENDS:= +libopenssl +libncurses +libpopt +libpthread +zlib @!TARGET_avr32
  endef

  define Package/asterisk18/description
@@ -114,18 +116,6 @@
   Asterisk.
  endef

-define Package/asterisk18-res-rtp-asterisk
-$(call Package/asterisk18/Default)
-  TITLE:=RTP Support
-  DEPENDS:= +asterisk18
-endef
-
-define Package/asterisk18-res-rtp-asterisk/description
-$(call Package/asterisk18/Default/description)
- This package provides RTP support to Asterisk.
- It is needed by chan_sip.
-endef
-
  define Package/asterisk18-chan-gtalk
  $(call Package/asterisk18/Default)
    TITLE:=GTalk support
@@ -235,9 +225,9 @@
  endef

  define Build/InstallDev
-       $(INSTALL_DIR) $(1)/usr/include/asterisk/
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h 
$(1)/usr/include/asterisk/
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/
+       $(INSTALL_DIR) $(1)/usr/include/asterisk-1.8/include/asterisk/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h 
$(1)/usr/include/asterisk-1.8/include/asterisk/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h 
$(1)/usr/include/asterisk-1.8/include/
  endef

  define Package/asterisk18/conffiles
@@ -264,7 +254,7 @@
        done
        $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
        for f in app_dial app_echo app_playback app_macro \
-               chan_sip \
+               chan_sip res_rtp \
                codec_ulaw codec_gsm \
                format_gsm format_pcm format_wav format_wav_gsm \
                pbx_config \
@@ -355,16 +345,6 @@
        $(INSTALL_BIN) 
$(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_musiconhold.so 
$(1)/usr/lib/asterisk/modules/
  endef

-define Package/asterisk18-res-rtp-asterisk/install
-       $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_rtp*.so 
$(1)/usr/lib/asterisk/modules/
-endef
-
-define Package/asterisk18-res-rtp-asterisk/install
-       $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/res_rtp*.so 
$(1)/usr/lib/asterisk/modules/
-endef
-
  define Package/asterisk18-chan-gtalk/conffiles
  /etc/asterisk/gtalk.conf
  /etc/asterisk/jabber.conf
@@ -413,7 +393,6 @@
  $(eval $(call BuildPackage,asterisk18-chan-iax2))
  $(eval $(call BuildPackage,asterisk18-cdr))
  $(eval $(call BuildPackage,asterisk18-res-musiconhold))
-$(eval $(call BuildPackage,asterisk18-res-rtp-asterisk))
  $(eval $(call BuildPackage,asterisk18-chan-gtalk))
  $(eval $(call BuildPackage,asterisk18-curl))
  $(eval $(call 
Buildasterisk18ModuleTemplate,app_authenticate,Authenticate,support for 
executing arbitrary authenticate commands))

Modified: packages/net/asterisk-addons-1.4.x/Makefile
===================================================================
--- packages/net/asterisk-addons-1.4.x/Makefile 2011-02-16 15:26:08 UTC (rev 
25556)
+++ packages/net/asterisk-addons-1.4.x/Makefile 2011-02-16 17:29:50 UTC (rev 
25557)
@@ -91,14 +91,11 @@
  endif

  CONFIGURE_ARGS += \
-       --with-asterisk="$(STAGING_DIR)/usr" \
+       --with-asterisk="$(STAGING_DIR)/usr/include/asterisk-1.4" \
        --with-bluetooth="$(STAGING_DIR)/usr" \
        --with-ncurses="$(STAGING_DIR)/usr" \
        --with-mysqlclient="$(STAGING_DIR)/usr" \
-
-CONFIGURE_VARS += \
-       ac_cv_file__usr_include_asterisk_channel_h="yes" \
-
+       
  define Build/Configure
        ( cd $(PKG_BUILD_DIR); ./bootstrap.sh )
        $(call Build/Configure/Default,,,)

Added: packages/net/asterisk-addons-1.4.x/patches/030-mysql_include.patch
===================================================================
--- packages/net/asterisk-addons-1.4.x/patches/030-mysql_include.patch          
                (rev 0)
+++ packages/net/asterisk-addons-1.4.x/patches/030-mysql_include.patch  
2011-02-16 17:29:50 UTC (rev 25557)
@@ -0,0 +1,16 @@
+--- asterisk-addons-1.4.8/configure.ac.org     2011-02-16 15:32:41.000000000 
+0100
++++ asterisk-addons-1.4.8/configure.ac 2011-02-16 15:36:05.000000000 +0100
+@@ -191,11 +191,13 @@
+ fi
+ if test x"${MYSQL_CONFIG}" != xNo; then
+    MYSQLCLIENT_libs=`mysql_config --libs`
++   MYSQLCLIENT_include=`mysql_config --include`
+
+    AC_CHECK_LIB([mysqlclient], [mysql_init], [], [], ${MYSQLCLIENT_libs})
+
+    if test "${ac_cv_lib_mysqlclient_mysql_init}" = "yes"; then
+       MYSQLCLIENT_LIB="${MYSQLCLIENT_libs}"
++      MYSQLCLIENT_INCLUDE="${MYSQLCLIENT_include}/.."
+       PBX_MYSQLCLIENT=1
+    elif test ! -z "${MYSQLCLIENT_MANDATORY}";
+    then


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to