#
-# Copyright (C) 2006-2013 OpenWrt.org
+# Copyright (C) 2006-2014 OpenWrt.org
# Copyright (C) 2006-2011 SMBPhone
#
# This is free software, licensed under the GNU General Public License v2.
#
include $(TOPDIR)/rules.mk
-include $(INCLUDE_DIR)/uclibc++.mk
-RELEASEVER:=5.0.0
+RELEASEVER:=6.0.0
PKG_NAME:=yate
PKG_VERSION:=$(RELEASEVER)-1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://yate.null.ro/tarballs/yate5/
-PKG_MD5SUM:=6113bce2b81b402431c61d1f777e09a6
+PKG_SOURCE_URL:=http://yate.null.ro/tarballs/yate6/
+PKG_HASH:=0ab76015651db8076031277b2003c23bd5d9eb940491801f30a6dc3c226c1817
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=COPYING
+PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
+
+PKG_FIXUP:=autoreconf
+
PKG_INSTALL:=1
+include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)/Default
define Package/$(PKG_NAME)
$(call Package/yate/Default)
DEPENDS:=+libpthread $(CXX_DEPENDS)
- TITLE:=Yet Another Telphony Engine
+ TITLE:=Yet Another Telephony Engine
MENU:=1
endef
endef
define Package/$(PKG_NAME)/Default/description
- Is a next-generation telephony engine focused on the VoIP and PSTN. It does
+ Is a next-generation telephony engine focused on the VoIP and PSTN. It does
SIP, H.323, IAX, PSTN, and more.
endef
-define Package/$(PKG_NAME)-scripts-php
- $(call Package/yate/Default)
- DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +php5 +php5-cli
- TITLE:= PHP Scripts and script libraries for Yate
-endef
-
define Package/$(PKG_NAME)-scripts-perl
$(call Package/yate/Default)
- DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +microperl
+ DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +perlbase-data
TITLE:= Perl module for Yate
endef
-define Package/$(PKG_NAME)-scripts-python
- $(call Package/yate/Default)
- DEPENDS += $(PKG_NAME) $(PKG_NAME)-mod-extmodule +python-mini
- TITLE:= Python module for Yate
-endef
-
define Package/$(PKG_NAME)-sounds
$(call Package/yate/Default)
DEPENDS += $(PKG_NAME)
TITLE := Basic Yate Server
endef
+ifneq ($(CONFIG_USE_MUSL),)
+ LIBNSL:=
+else
+ LIBNSL:=-lnsl
+endif
+
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include $(if $(CONFIG_BIG_ENDIAN),-DBIGENDIAN,)
CONFIGURE_ARGS+= \
--with-libpq="$(STAGING_DIR)/usr" \
--with-mysql="$(STAGING_DIR)/usr" \
--without-wphwec \
- --with-libgsm="$(STAGING_DIR)/usr/include/gsm" \
- --with-libspeex="$(STAGING_DIR)/usr/include" \
+ --without-libgsm \
--without-amrnb \
--with-spandsp="$(STAGING_DIR)/usr/include" \
--without-pwlib \
--without-openh323 \
- --with-openssl="$(STAGING_DIR)/usr" \
+ --with-openssl \
--with-zlib="$(STAGING_DIR)/usr" \
--without-libqt4 \
--without-qtstatic \
CONFIGURE_VARS+= \
LDFLAGS="$$$$LDFLAGS -nodefaultlibs" \
- LIBS="-lc -luClibc++ -lpthread -lresolv -ldl -lm -lc $(LIBGCC_S)"
+ LIBS="-lc -luClibc++ -lpthread -lresolv -ldl -lm -lc $(LIBGCC_S) $(LIBNSL)"
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib
- for yatelib in "" sig mgcp jabber script; do \
+ for yatelib in "" asn sig mgcp jabber script; do \
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libyate$$$${yatelib}.so.$(RELEASEVER) $(1)/usr/lib ;\
$(LN) ./libyate$$$${yatelib}.so.$(RELEASEVER) $(1)/usr/lib/libyate$$$${yatelib}.so ;\
done
$(INSTALL_BIN) ./files/yate.init $(1)/etc/init.d/yate
endef
-define Package/$(PKG_NAME)-scripts-php/install
- $(INSTALL_DIR) $(1)/usr/share/yate/scripts
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/leavemail.php $(1)/usr/share/yate/scripts/
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/queue_in.php $(1)/usr/share/yate/scripts/
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/queue_out.php $(1)/usr/share/yate/scripts/
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/route.php $(1)/usr/share/yate/scripts/
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/voicemail.php $(1)/usr/share/yate/scripts/
- $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libvoicemail.php $(1)/usr/share/yate/scripts/
- $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyatechan.php $(1)/usr/share/yate/scripts/
- $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyateivr.php $(1)/usr/share/yate/scripts/
- $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyate.php $(1)/usr/share/yate/scripts/
-endef
-
define Package/$(PKG_NAME)-scripts-perl/install
$(INSTALL_DIR) $(1)/usr/share/yate/scripts
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/Yate.pm $(1)/usr/share/yate/scripts/
-endef
-
-define Package/$(PKG_NAME)-scripts-python/install
- $(INSTALL_DIR) $(1)/usr/share/yate/scripts
- $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/yate/scripts/libyate.py $(1)/usr/share/yate/scripts/
+ $(INSTALL_BIN) ./files/banbrutes.pl $(1)/usr/share/yate/scripts/
endef
define Package/$(PKG_NAME)-sounds/install
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)-collection-basic))
-$(eval $(call BuildPackage,$(PKG_NAME)-scripts-php))
$(eval $(call BuildPackage,$(PKG_NAME)-scripts-perl))
-$(eval $(call BuildPackage,$(PKG_NAME)-scripts-python))
$(eval $(call BuildPackage,$(PKG_NAME)-sounds))
$(eval $(call BuildPlugin,accfile,server,SIP or H.323 client (from file),))
$(eval $(call BuildPlugin,alsachan,client,ALSA Sound Channel,+alsa-lib))
$(eval $(call BuildPlugin,dumbchan,,Dummy Channel,))
$(eval $(call BuildPlugin,enumroute,,ENUM Routing,))
$(eval $(call BuildPlugin,eventlogs,server,Write events and alarms to log files,))
-$(eval $(call BuildPlugin,extmodule,,External Module Handler,))
+$(eval $(call BuildPlugin,extmodule,,External Module Handler,,/usr/share/yate/scripts/echo.sh))
$(eval $(call BuildPlugin,faxchan,,Spandsp Fax Channel,+libspandsp))
$(eval $(call BuildPlugin,filetransfer,,File Transfer Driver,))
-$(eval $(call BuildPlugin,gsmcodec,,GSM Codec,+libgsm))
$(eval $(call BuildPlugin,gvoice,,Google Voice support,))
-$(eval $(call BuildPlugin,h323chan,,Open H.323 Channel,+libopenh323 @BROKEN)) # libopenh323 doesn't create package or stagin_dir includes or libs
$(eval $(call BuildPlugin,heartbeat,server,Linux-HA compatible heartbeat,))
$(eval $(call BuildPlugin,ilbccodec,,iLBC Codec,))
$(eval $(call BuildPlugin,ilbcwebrtc,,iLBC Codec from the WebRTC project,))
$(eval $(call BuildPlugin,javascript,,Routing using the embedded Javascript language,))
$(eval $(call BuildPlugin,jbfeatures,jabber,Jabber Server Features,))
$(eval $(call BuildPlugin,lateroute,server,Last Chance Routing,))
-$(eval $(call BuildPlugin,lksctp,server,SCTP sockets using linux kernel,@BROKEN))
$(eval $(call BuildPlugin,mgcpca,server,Media Gateway Control Protocol Agent,))
$(eval $(call BuildPlugin,mgcpgw,server,Media Gateway Control Protocol Gateway,))
$(eval $(call BuildPlugin,moh,,On Hold (music) Generator,))
$(eval $(call BuildPlugin,sigtransport,server,SIGTRAN (SS7 over IP) connection provider,))
$(eval $(call BuildPlugin,sip_cnam_lnp,sip,Query CNAM and LNP databases using SIP INVITE,))
$(eval $(call BuildPlugin,sipfeatures,server,SIP Features (SUBSCRIBE/NOTIFY),))
-$(eval $(call BuildPlugin,speexcodec,,Speex Codec,+libspeex))
$(eval $(call BuildPlugin,subscription,server,Subcription handler and presence notifier,))
$(eval $(call BuildPlugin,tdmcard,server,TDM Cards Signalling and Data Driver,@BROKEN)) # Missing TDM libraries
$(eval $(call BuildPlugin,tonedetect,,Detectors for Various Tones,))