asterisk-15.x: add utilities
Adds the command line tools that ship with Asterisk as optional packages. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
a0ae867468
commit
752f59916c
2 changed files with 63 additions and 0 deletions
|
@ -67,6 +67,11 @@ define Package/asterisk15/install/sounds
|
|||
$(CP) $(PKG_INSTALL_DIR)/usr/share/asterisk/sounds/en/$(2) $(1)/usr/share/asterisk/sounds/
|
||||
endef
|
||||
|
||||
define Package/asterisk15/install/util-conffile
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/asterisk/$(2) $(1)/etc
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/config
|
||||
source "$(SOURCE)/Config.in"
|
||||
endef
|
||||
|
@ -99,6 +104,32 @@ $(foreach b,$(8),$(call Package/asterisk15/install/sbin,$$(1),$(b));)
|
|||
$$(eval $$(call BuildPackage,asterisk15-$(1)))
|
||||
endef
|
||||
|
||||
define BuildAsterisk15Util
|
||||
define Package/asterisk15-util-$(1)
|
||||
$$(call Package/asterisk15/Default)
|
||||
TITLE:=$(1) utility
|
||||
DEPENDS:=asterisk15 $(patsubst +%,+PACKAGE_asterisk15-util-$(1):%,$(3))
|
||||
ifneq ($$(CONFIG_PACKAGE_asterisk15-util-$(1)),)
|
||||
AST_ENABLE+=$(1)
|
||||
endif
|
||||
endef
|
||||
|
||||
define Package/asterisk15-util-$(1)/conffiles
|
||||
$(subst $(space),$(newline),$(foreach c,$(4),/etc/$(c)))
|
||||
endef
|
||||
|
||||
define Package/asterisk15-util-$(1)/description
|
||||
$(2)
|
||||
endef
|
||||
|
||||
define Package/asterisk15-util-$(1)/install
|
||||
$(call Package/asterisk15/install/sbin,$$(1),$(1))
|
||||
$(foreach c,$(4),$(call Package/asterisk15/install/util-conffile,$$(1),$(c));)
|
||||
endef
|
||||
|
||||
$$(eval $$(call BuildPackage,asterisk15-util-$(1)))
|
||||
endef
|
||||
|
||||
define Package/asterisk15/Default
|
||||
SUBMENU:=Telephony
|
||||
SECTION:=net
|
||||
|
@ -642,3 +673,25 @@ $(eval $(call BuildAsterisk15Module,res-timing-pthread,pthread Timing Interface,
|
|||
$(eval $(call BuildAsterisk15Module,res-timing-timerfd,Timerfd Timing Interface,Timing interface provided by Linux kernel,,,res_timing_timerfd,,))
|
||||
$(eval $(call BuildAsterisk15Module,res-xmpp,XMPP client and component module,reference module for interfacting Asterisk directly as a client or component with XMPP server,+libiksemel +libopenssl,xmpp.conf,res_xmpp,,))
|
||||
$(eval $(call BuildAsterisk15Module,voicemail,Voicemail,voicemail related modules,+asterisk15-res-adsi +asterisk15-res-smdi,voicemail.conf,app_voicemail,vm-*,))
|
||||
|
||||
################################
|
||||
# AST utils
|
||||
# Params:
|
||||
# 1 - Utility name
|
||||
# 2 - Description
|
||||
# 3 - Dependencies
|
||||
# 4 - Configuration files
|
||||
################################
|
||||
# $(eval $(call BuildAsterisk15Util,Utility,Description,Dependencies,Configuration Files))
|
||||
|
||||
$(eval $(call BuildAsterisk15Util,aelparse,Check extensions.ael file.,,))
|
||||
$(eval $(call BuildAsterisk15Util,astcanary,Assures Asterisk no threads have gone missing.,,))
|
||||
$(eval $(call BuildAsterisk15Util,astdb2sqlite3,Convert astdb to SQLite 3.,,))
|
||||
$(eval $(call BuildAsterisk15Util,astdb2bdb,Convert astdb back to Berkeley DB 1.86.,,))
|
||||
$(eval $(call BuildAsterisk15Util,check_expr,Expression checker [older version].,,))
|
||||
$(eval $(call BuildAsterisk15Util,check_expr2,Expression checker [newer version].,,))
|
||||
$(eval $(call BuildAsterisk15Util,conf2ael,Convert .conf to .ael.,,))
|
||||
$(eval $(call BuildAsterisk15Util,muted,Listens for AMI events. Mutes soundcard during call.,,muted.conf))
|
||||
$(eval $(call BuildAsterisk15Util,smsq,Send messages from command line.,,))
|
||||
$(eval $(call BuildAsterisk15Util,stereorize,Merge two mono WAV-files to one stereo WAV-file.,,))
|
||||
$(eval $(call BuildAsterisk15Util,streamplayer,A utility for reading from a raw TCP stream [MOH source].,,))
|
||||
|
|
10
net/asterisk-15.x/patches/056-fix-check_expr2-build.patch
Normal file
10
net/asterisk-15.x/patches/056-fix-check_expr2-build.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- a/utils/Makefile
|
||||
+++ b/utils/Makefile
|
||||
@@ -182,7 +182,6 @@ check_expr2: $(ASTTOPDIR)/main/ast_expr2
|
||||
$(CC) -g -o check_expr2 ast_expr2fz.o ast_expr2z.o -lm
|
||||
$(ECHO_PREFIX) echo " [RM] ast_expr2fz.o ast_expr2z.o"
|
||||
rm ast_expr2z.o ast_expr2fz.o
|
||||
- ./check_expr2 expr2.testinput
|
||||
|
||||
smsq: smsq.o strcompat.o
|
||||
smsq: LIBS+=$(POPT_LIB)
|
Loading…
Reference in a new issue