Merge pull request #462 from micmac1/rtpp-up

rtpproxy: update to current snapshot
This commit is contained in:
John Crispin 2019-10-02 22:20:38 +02:00 committed by GitHub
commit e4b9a8aebe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 63 additions and 82 deletions

View file

@ -9,24 +9,21 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rtpproxy
PKG_VERSION:=2.1.0-20170914
PKG_RELEASE:=4
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/sippy/rtpproxy.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=589cc78cb8698b49aa408c6411c8720a2a0efe3c
PKG_MIRROR_HASH:=087b363a7e5f112fe0c601e147ac087f528a500a25340cbccc12d90935876137
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
PKG_SOURCE_DATE=2019-10-02
PKG_SOURCE_VERSION:=aa1f179e09097f467bc4726e3300014c1e35246f
PKG_RELEASE:=1
PKG_MIRROR_HASH:=7acc5f5bf2d4be23e9a2fad0c4e7576f172191c9f1b37104aee4d05dbdcac8fd
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_CHECK_FORMAT_SECURITY:=0
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILES:=COPYING
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
include $(INCLUDE_DIR)/package.mk
@ -40,7 +37,7 @@ endef
define Package/rtpproxy
$(call Package/rtpproxy/Default)
DEPENDS:=+libpthread +librt
DEPENDS:=+libatomic +libpthread +librt
TITLE:=RTP (Realtime Transport Protocol) proxy
MENU:=1
endef
@ -53,11 +50,17 @@ endef
define Package/rtpproxy-mod-acct-csv
$(call Package/rtpproxy/Default)
DEPENDS:=rtpproxy
TITLE:=RTPproxy accounting module
TITLE:=RTPproxy CSV accounting module
endef
CONFIGURE_VARS += \
ac_cv_lib_bcg729_initBcg729EncoderChannel=no
define Package/rtpproxy-mod-acct-rtcp-hep
$(call Package/rtpproxy/Default)
DEPENDS:=rtpproxy
TITLE:=RTPproxy RTCP HEP accounting module
endef
CONFIGURE_ARGS += \
--without-xsltproc
# Otherwise OpenWrt's CPPFLAGS are ignored
TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
@ -70,7 +73,7 @@ define Package/rtpproxy/install
$(INSTALL_BIN) ./files/rtpproxy.init $(1)/etc/init.d/rtpproxy
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/rtpproxy.config $(1)/etc/config/rtpproxy
$(INSTALL_CONF) ./files/rtpproxy.conf $(1)/etc/config/rtpproxy
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(INSTALL_BIN) ./files/rtpproxy.hotplug $(1)/etc/hotplug.d/iface/90-rtpproxy
@ -96,5 +99,30 @@ define Package/rtpproxy-mod-acct-csv/install
$(1)/usr/lib/rtpproxy
endef
define Package/rtpproxy-mod-acct-rtcp-hep/install
$(INSTALL_DIR) $(1)/usr/lib/rtpproxy
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/lib/rtpproxy/rtpp_acct_rtcp_hep.so \
$(1)/usr/lib/rtpproxy
endef
define Package/$(PKG_NAME)/Util
define Package/$(PKG_NAME)-util-$(1)
$(call Package/$(PKG_NAME)/Default)
DEPENDS:= $(PKG_NAME) $(patsubst +%,+PACKAGE_$(PKG_NAME)-util-$(1):%,$(2))
TITLE:=RTPproxy $(1) utility
endef
define Package/$(PKG_NAME)-util-$(1)/install
$$(INSTALL_DIR) $$(1)/usr/bin
$$(INSTALL_BIN) $$(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin
endef
$$(eval $$(call BuildPackage,$(PKG_NAME)-util-$(1)))
endef
$(eval $(call BuildPackage,rtpproxy))
$(eval $(call BuildPackage,rtpproxy-mod-acct-csv))
$(eval $(call BuildPackage,rtpproxy-mod-acct-rtcp-hep))
$(eval $(call Package/$(PKG_NAME)/Util,extractaudio,+bcg729 +libsndfile +libsrtp2))
$(eval $(call Package/$(PKG_NAME)/Util,makeann,+bcg729))

View file

@ -1,14 +0,0 @@
Index: rtpproxy-2.0.0/src/rtpp_util.c
===================================================================
--- rtpproxy-2.0.0.orig/src/rtpp_util.c
+++ rtpproxy-2.0.0/src/rtpp_util.c
@@ -28,7 +28,9 @@
#include <sys/time.h>
#include <sys/types.h>
+#ifdef __GLIBC__
#include <sys/sysctl.h>
+#endif
#include <sys/resource.h>
#include <errno.h>
#include <fcntl.h>

View file

@ -1,13 +0,0 @@
Index: rtpproxy-2.0.0/src/rtp.h
===================================================================
--- rtpproxy-2.0.0.orig/src/rtp.h
+++ rtpproxy-2.0.0/src/rtp.h
@@ -29,6 +29,8 @@
#ifndef _RTP_H_
#define _RTP_H_
+#include <endian.h>
+
/*
* RTP payload types
*/

View file

@ -1,16 +1,32 @@
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
@@ -5,7 +5,7 @@ include $(top_srcdir)/autosrc/Makefile.a
UCL_DIR=$(top_srcdir)/external/libucl
-bin_PROGRAMS=rtpproxy rtpproxy_debug
+bin_PROGRAMS=rtpproxy
BASE_SOURCES=main.c rtp.h rtpp_server.c rtpp_server.h \
rtpp_defines.h rtpp_log.h rtpp_record.c rtpp_record.h rtpp_session.h \
rtpp_util.c rtpp_util.h rtp.c rtp_resizer.c rtp_resizer.h rtpp_session.c \
noinst_PROGRAMS = rtpp_rzmalloc_perf rtpp_fintest
if BUILD_OBJCK
--- a/modules/acct_csv/Makefile.am
+++ b/modules/acct_csv/Makefile.am
@@ -1,4 +1,4 @@
@@ -1,6 +1,6 @@
include $(top_srcdir)/m4/memdeb.ami
-pkglib_LTLIBRARIES = rtpp_acct_csv.la rtpp_acct_csv_debug.la
+pkglib_LTLIBRARIES = rtpp_acct_csv.la
rtpp_acct_csv_la_SOURCES = rtpp_acct_csv.c
rtpp_acct_csv_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
--- a/modules/acct_rtcp_hep/Makefile.am
+++ b/modules/acct_rtcp_hep/Makefile.am
@@ -3,7 +3,7 @@ include $(top_srcdir)/m4/memdeb.ami
HEPSRCDIR=$(top_srcdir)/hepconnector
UCLSRCDIR=$(top_srcdir)/external/libucl
-pkglib_LTLIBRARIES = rtpp_acct_rtcp_hep.la rtpp_acct_rtcp_hep_debug.la
+pkglib_LTLIBRARIES = rtpp_acct_rtcp_hep.la
noinst_PROGRAMS = rtcp2json_test
rtcp2json_test_SOURCES = rtcp2json_test.c rtpp_sbuf.c rtcp2json.c

View file

@ -1,36 +0,0 @@
--- a/src/rtpp_record.c
+++ b/src/rtpp_record.c
@@ -48,6 +48,7 @@
#include <string.h>
#include <unistd.h>
+#include "config.h"
#include "rtp.h"
#include "rtp_packet.h"
#include "rtpp_log.h"
@@ -67,6 +68,7 @@
#include "rtpp_session.h"
#include "rtpp_stream.h"
#include "rtpp_time.h"
+#include "rtpp_util.h"
#include "rtpp_pipe.h"
#include "rtpp_netaddr.h"
--- a/modules/acct_csv/rtpp_acct_csv.c
+++ b/modules/acct_csv/rtpp_acct_csv.c
@@ -38,6 +38,7 @@
#include <string.h>
#include <unistd.h>
+#include "config.h"
#include "rtpp_ssrc.h"
#include "rtpa_stats.h"
#include "rtpp_monotime.h"
@@ -50,6 +51,7 @@
#include "rtpp_module.h"
#include "rtpp_netaddr.h"
#include "rtpp_network.h"
+#include "rtpp_util.h"
#include "rtpp_cfg_stable.h"
#define SSRC_STRLEN 11