From e6d8d5fece9d0aebddd792642c91dc8a1de19c6f Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Tue, 21 Nov 2017 21:52:41 +0100 Subject: [PATCH] asterisk-15.x: add calendar integration This adds support for the following calendars: - CalDAV - MS Exchange Web Service - MS Exchange - iCalendar Signed-off-by: Sebastian Kemper --- net/asterisk-15.x/Makefile | 46 ++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/net/asterisk-15.x/Makefile b/net/asterisk-15.x/Makefile index 69d2056..7e3847e 100644 --- a/net/asterisk-15.x/Makefile +++ b/net/asterisk-15.x/Makefile @@ -194,8 +194,6 @@ CONFIGURE_ARGS+= \ --without-isdnnet \ --without-misdn \ --without-nbs \ - --without-neon \ - --without-neon29 \ --with-pjproject="$(STAGING_DIR)/usr" \ --without-pjproject-bundled \ --with-libedit="$(STAGING_DIR)/usr" \ @@ -212,7 +210,6 @@ CONFIGURE_ARGS+= \ --without-pwlib \ --without-radius \ $(if $(CONFIG_PACKAGE_$(PKG_NAME)-res-fax-spandsp),--with-spandsp="$(STAGING_DIR)/usr",--without-spandsp) \ - $(if $(CONFIG_PACKAGE_$(PKG_NAME)-res-xmpp),--with-iksemel="$(STAGING_DIR)/usr",--without-iksemel) \ --without-sdl \ --without-sqlite \ --with-sqlite3="$(STAGING_DIR)/usr" \ @@ -227,9 +224,46 @@ CONFIGURE_ARGS+= \ --with-sounds-cache="$(DL_DIR)" \ --enable-xmldoc +# res-calendar-ews requires both neon and neon29 detection +ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-caldav)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-ews)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-exchange)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-icalendar),) +CONFIGURE_ARGS+= \ + --without-neon +endif + +ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-caldav)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-exchange)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-icalendar),) +CONFIGURE_ARGS+= \ + --without-ical +else +CONFIGURE_ARGS+= \ + --with-ical="$(STAGING_DIR)/usr" +endif + +ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-ews),) +CONFIGURE_ARGS+= \ + --without-neon29 +endif + +ifeq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-exchange)$(CONFIG_PACKAGE_$(PKG_NAME)-res-xmpp),) +CONFIGURE_ARGS+= \ + --without-iksemel +else +CONFIGURE_ARGS+= \ + --with-iksemel="$(STAGING_DIR)/usr" +endif + CONFIGURE_VARS += \ ac_cv_path_ac_pt_CONFIG_LIBXML2=$(STAGING_DIR)/host/bin/xml2-config +ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-caldav)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-ews)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-exchange)$(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-icalendar),) +CONFIGURE_VARS += \ + ac_cv_path_CONFIG_NEON=$(STAGING_DIR)/usr/bin/neon-config +endif + +ifneq ($(CONFIG_PACKAGE_$(PKG_NAME)-res-calendar-ews),) +CONFIGURE_VARS += \ + ac_cv_path_CONFIG_NEON29=$(STAGING_DIR)/usr/bin/neon-config +endif + MAKE_FLAGS+= \ ASTDATADIR="/usr/share/asterisk" \ DESTDIR="$(PKG_INSTALL_DIR)" @@ -401,7 +435,11 @@ $(eval $(call BuildAsterisk15Module,pjsip,pjsip channel,the channel pjsip,+aster $(eval $(call BuildAsterisk15Module,res-adsi,Provide ADSI,Analog Display Services Interface capability,,,res_adsi,,)) $(eval $(call BuildAsterisk15Module,res-ael-share,Shareable AEL code,support for shareable AEL code mainly between internal and external modules,,,res_ael_share,,)) $(eval $(call BuildAsterisk15Module,res-agi,Asterisk Gateway Interface,Support for the Asterisk Gateway Interface extension,+asterisk15-res-speech,,res_agi,,)) -$(eval $(call BuildAsterisk15Module,res-calendar,Calendaring API,Calendaring support (ICal and Google Calendar),,calendar.conf,res_calendar,,)) +$(eval $(call BuildAsterisk15Module,res-calendar,Calendar API,the calendar API,,calendar.conf,res_calendar,,)) +$(eval $(call BuildAsterisk15Module,res-calendar-caldav,CalDAV calendar,CalDAV calendar integration,+asterisk15-res-calendar +libical +libneon +libxml2,,res_calendar_caldav,,)) +$(eval $(call BuildAsterisk15Module,res-calendar-ews,EWS calendar,MS Exchange Web Service calendar integration,+asterisk15-res-calendar +libneon,,res_calendar_ews,,)) +$(eval $(call BuildAsterisk15Module,res-calendar-exchange,Exchange calendar,MS Exchange calendar integration,+asterisk15-res-calendar +libical +libiksemel +libneon,,res_calendar_exchange,,)) +$(eval $(call BuildAsterisk15Module,res-calendar-icalendar,iCalendar calendar,iCalendar calendar integration,+asterisk15-res-calendar +libical +libneon,,res_calendar_icalendar,,)) $(eval $(call BuildAsterisk15Module,res-clioriginate,Calls via CLI,Originate calls via the CLI,,,res_clioriginate,,)) $(eval $(call BuildAsterisk15Module,res-hep,HEPv3 API,Routines for integration with Homer using HEPv3,,,res_hep,,)) $(eval $(call BuildAsterisk15Module,res-hep-pjsip,PJSIP HEPv3 Logger,PJSIP logging with Homer,+asterisk15-res-hep +asterisk15-pjsip,,res_hep_pjsip,,))