include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=rtpengine
-PKG_VERSION:=8.5.3.2
-PKG_RELEASE:=2
+PKG_VERSION:=10.5.2.6
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-mr$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/sipwise/rtpengine/tar.gz/mr$(PKG_VERSION)?
-PKG_HASH:=7f463f1f23067d7f69c334e04710348ce95cd637c340724b3042d44083ccba07
+PKG_HASH:=6f6d5cc2ebf27b6361ed2bd2f86a0ca74103503fd1a14af69ed423dba8340bc4
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-mr$(PKG_VERSION)
# errors.
PKG_BUILD_PARALLEL:=0
-PKG_BUILD_DEPENDS:=gperf/host
+PKG_BUILD_DEPENDS:=gperf/host perl/host
# With below variable set, $(PKG_SYMVERS_DIR)/rtpengine.symvers gets generated
# from kernel-module/Module.symvers.
+libevent2-pthreads \
+libhiredis \
+libip4tc \
+ +libmosquitto \
+libopenssl \
+libpcap \
+libpcre \
+ +libwebsockets-openssl \
+xmlrpc-c-client \
+zlib
+bcg729 \
+libffmpeg-full \
+libmariadb \
- +libspandsp
+ +libspandsp3
RECORDING_DEPENDS := \
+ +bcg729 \
+glib2 \
+libffmpeg-full \
+libmariadb \
+libopenssl
-RTPENGINE_USERID:=$(PKG_NAME)=378:$(PKG_NAME)=378
+RTPENGINE_USERID:=378
+RTPENGINE_GROUPID:=$(RTPENGINE_USERID)
+RTPENGINE_USER:=$(PKG_NAME)=$(RTPENGINE_USERID):$(PKG_NAME)=$(RTPENGINE_GROUPID)
define Package/rtpengine/Default
URL:=https://github.com/sipwise/rtpengine
CATEGORY:=Network
SECTION:=net
SUBMENU:=Telephony
- USERID:=$(RTPENGINE_USERID)
+ USERID:=$(RTPENGINE_USER)
endef
define Package/rtpengine/description/Template
$(INSTALL_CONF) ./files/rtpengine.conf $(1)/etc/config/rtpengine
$(INSTALL_DIR) $(1)/etc/rtpengine
- $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/rtpengine.sample.conf \
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/rtpengine.conf \
$(1)/etc/rtpengine/rtpengine.conf
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
CATEGORY:=Network
SECTION:=net
SUBMENU:=Telephony
- USERID:=$(RTPENGINE_USERID)
+ USERID:=$(RTPENGINE_USER)
DEPENDS:=$(patsubst +%,+PACKAGE_rtpengine-recording:%,$(RECORDING_DEPENDS))
endef
$(1)/etc/config/rtpengine-recording
$(INSTALL_DIR) $(1)/etc/rtpengine
- $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/rtpengine-recording.sample.conf \
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/rtpengine-recording.conf \
$(1)/etc/rtpengine/rtpengine-recording.conf
endef
FILES:=$(PKG_BUILD_DIR)/kernel-module/xt_RTPENGINE.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoProbe,xt_RTPENGINE)
DEPENDS := \
+ +PACKAGE_kmod-ipt-rtpengine:kmod-crypto-aead \
+PACKAGE_kmod-ipt-rtpengine:kmod-crypto-hash \
+PACKAGE_kmod-ipt-rtpengine:kmod-ipt-core
MODPARAMS.xt_RTPENGINE := \
- proc_uid=$(PKG_NAME) \
- proc_gid=$(PKG_NAME)
+ proc_uid=$(RTPENGINE_USERID) \
+ proc_gid=$(RTPENGINE_GROUPID)
+ USERID:=$(RTPENGINE_USER)
+endef
+
+define KernelPackage/ipt-rtpengine/conffiles
+/etc/modules.d/ipt-rtpengine
endef
define KernelPackage/ipt-rtpengine/description
cd "$(PKG_BUILD_DIR)" && \
$(FIND) . -maxdepth 2 -name "*Makefile" | \
xargs -I{} $(SED) \
- '/shell which dpkg-/s/dpkg/OpenWrt-has-no-dpkg/' {}
+ '/shell which dpkg-/s/dpkg/OpenWrt-has-no-dpkg/' {} && \
+ $(SED) 's|#!/usr/bin/perl|#!$(STAGING_DIR_HOSTPKG)/usr/bin/perl|' \
+ utils/const_str_hash
endif
endef