asterisk-chan-dongle: update for Asterisk 18 LTS
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
87e982a3a5
commit
fee0cc861b
1 changed files with 9 additions and 29 deletions
|
@ -13,7 +13,7 @@ PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/wdoekes/asterisk-chan-dongle.git
|
PKG_SOURCE_URL:=https://github.com/wdoekes/asterisk-chan-dongle.git
|
||||||
PKG_SOURCE_VERSION:=328b2b7ded3b3c59c2e6c7e7afca6b0ac6f146ce
|
PKG_SOURCE_VERSION:=328b2b7ded3b3c59c2e6c7e7afca6b0ac6f146ce
|
||||||
PKG_SOURCE_DATE=2020-05-28
|
PKG_SOURCE_DATE=2020-05-28
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
PKG_MIRROR_HASH:=b0af444840340722ecee111a7b1f819de441acf290799ae11bc18e16569c6388
|
PKG_MIRROR_HASH:=b0af444840340722ecee111a7b1f819de441acf290799ae11bc18e16569c6388
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
|
@ -28,40 +28,24 @@ include $(INCLUDE_DIR)/package.mk
|
||||||
# asterisk-chan-dongle needs iconv
|
# asterisk-chan-dongle needs iconv
|
||||||
include $(INCLUDE_DIR)/nls.mk
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
||||||
define Package/asterisk-chan-dongle/Default
|
define Package/asterisk-chan-dongle
|
||||||
SUBMENU:=Telephony
|
SUBMENU:=Telephony
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
URL:=https://github.com/wdoekes/asterisk-chan-dongle
|
URL:=https://github.com/wdoekes/asterisk-chan-dongle
|
||||||
DEPENDS:=$(ICONV_DEPENDS) +libsqlite3
|
DEPENDS:=asterisk $(ICONV_DEPENDS) +libsqlite3
|
||||||
TITLE:=Huawei UMTS 3G dongle support
|
TITLE:=Huawei UMTS 3G dongle support
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/asterisk16-chan-dongle
|
define Package/asterisk-chan-dongle/description
|
||||||
$(call Package/asterisk-chan-dongle/Default)
|
|
||||||
DEPENDS+=asterisk16
|
|
||||||
VARIANT:=asterisk16
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/description/Default
|
|
||||||
Asterisk channel driver for Huawei UMTS 3G dongle.
|
Asterisk channel driver for Huawei UMTS 3G dongle.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
Package/asterisk16-chan-dongle/description = $(Package/description/Default)
|
|
||||||
|
|
||||||
ifeq ($(BUILD_VARIANT),asterisk16)
|
|
||||||
CHAN_DONGLE_AST_HEADERS:=$(STAGING_DIR)/usr/include/asterisk-16/include
|
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS+= \
|
||||||
--with-astversion=16
|
--with-asterisk=$(STAGING_DIR)/usr/include \
|
||||||
endif
|
--with-astversion=18 \
|
||||||
|
|
||||||
CONFIGURE_ARGS+= \
|
|
||||||
--with-asterisk=$(CHAN_DONGLE_AST_HEADERS) \
|
|
||||||
--with-iconv=$(ICONV_PREFIX)/include
|
--with-iconv=$(ICONV_PREFIX)/include
|
||||||
|
|
||||||
TARGET_CFLAGS+= \
|
|
||||||
-I$(CHAN_DONGLE_AST_HEADERS)
|
|
||||||
|
|
||||||
MAKE_FLAGS+=LD="$(TARGET_CC)"
|
MAKE_FLAGS+=LD="$(TARGET_CC)"
|
||||||
|
|
||||||
CONFIGURE_VARS += \
|
CONFIGURE_VARS += \
|
||||||
|
@ -69,19 +53,15 @@ CONFIGURE_VARS += \
|
||||||
ac_cv_type_size_t=yes \
|
ac_cv_type_size_t=yes \
|
||||||
ac_cv_type_ssize_t=yes
|
ac_cv_type_ssize_t=yes
|
||||||
|
|
||||||
define Package/conffiles/Default
|
define Package/asterisk-chan-dongle/conffiles
|
||||||
/etc/asterisk/dongle.conf
|
/etc/asterisk/dongle.conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
Package/asterisk16-chan-dongle/conffiles = $(Package/conffiles/Default)
|
define Package/asterisk-chan-dongle/install
|
||||||
|
|
||||||
define Package/Install/Default
|
|
||||||
$(INSTALL_DIR) $(1)/etc/asterisk
|
$(INSTALL_DIR) $(1)/etc/asterisk
|
||||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/dongle.conf $(1)/etc/asterisk
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/dongle.conf $(1)/etc/asterisk
|
||||||
$(INSTALL_DIR) $(1)$(MODULES_DIR)
|
$(INSTALL_DIR) $(1)$(MODULES_DIR)
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_dongle.so $(1)$(MODULES_DIR)
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chan_dongle.so $(1)$(MODULES_DIR)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
Package/asterisk16-chan-dongle/install = $(Package/Install/Default)
|
$(eval $(call BuildPackage,asterisk-chan-dongle))
|
||||||
|
|
||||||
$(eval $(call BuildPackage,asterisk16-chan-dongle))
|
|
||||||
|
|
Loading…
Reference in a new issue