net/rtpproxy: add new CSV accounting module

Can be loaded by rtpproxy with -dso command line parameter.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper 2018-02-17 10:16:21 +01:00
parent a4462a7432
commit dea8fc71bd

View file

@ -29,13 +29,24 @@ PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/rtpproxy define Package/rtpproxy/Default
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
SUBMENU:=Telephony SUBMENU:=Telephony
URL:=http://www.rtpproxy.org/
endef
define Package/rtpproxy
$(call Package/rtpproxy/Default)
DEPENDS:=+libpthread +librt DEPENDS:=+libpthread +librt
TITLE:=RTP (Realtime Transport Protocol) proxy TITLE:=RTP (Realtime Transport Protocol) proxy
URL:=http://www.rtpproxy.org/ MENU:=1
endef
define Package/rtpproxy-mod-acct_csv
$(call Package/rtpproxy/Default)
DEPENDS:=rtpproxy
TITLE:=RTPproxy accounting module
endef endef
CONFIGURE_VARS += \ CONFIGURE_VARS += \
@ -52,4 +63,11 @@ define Package/rtpproxy/install
$(INSTALL_BIN) ./files/rtpproxy.config $(1)/etc/config/rtpproxy $(INSTALL_BIN) ./files/rtpproxy.config $(1)/etc/config/rtpproxy
endef endef
define Package/rtpproxy-mod-acct_csv/install
$(INSTALL_DIR) $(1)/usr/lib/rtpproxy
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/rtpproxy/rtpp_acct_csv.so \
$(1)/usr/lib/rtpproxy
endef
$(eval $(call BuildPackage,rtpproxy)) $(eval $(call BuildPackage,rtpproxy))
$(eval $(call BuildPackage,rtpproxy-mod-acct_csv))